|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.figures.AttributeFigure
org.jhotdraw.contrib.ComponentFigure
Field Summary |
Fields inherited from interface org.jhotdraw.framework.Figure |
POPUP_MENU |
Constructor Summary | |
ComponentFigure(java.awt.Component newComponent)
|
Method Summary | |
void |
basicDisplayBox(java.awt.Point origin,
java.awt.Point corner)
Changes the display box of a figure. |
protected void |
basicMoveBy(int dx,
int dy)
Moves the figure. |
java.awt.Rectangle |
displayBox()
Gets the display box of a figure |
void |
draw(java.awt.Graphics g)
Draws the figure. |
java.awt.Component |
getComponent()
Getter for property component. |
HandleEnumeration |
handles()
Returns the handles used to manipulate the figure. |
protected void |
setComponent(java.awt.Component newComponent)
Setter for property component. |
Methods inherited from class org.jhotdraw.figures.AttributeFigure |
drawBackground, drawFrame, getAttribute, getAttribute, getDefaultAttribute, getDefaultAttribute, getFillColor, getFrameColor, initDefaultAttribute, read, setAttribute, setAttribute, setDefaultAttribute, write |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, includes, invalidate, invalidateRectangle, isEmpty, listener, moveBy, release, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentFigure(java.awt.Component newComponent)
newComponent
- a lightweight componentMethod Detail |
public void basicDisplayBox(java.awt.Point origin, java.awt.Point corner)
basicDisplayBox
in interface Figure
basicDisplayBox
in class AbstractFigure
origin
- the new origincorner
- the new cornerdisplayBox()
protected void basicMoveBy(int dx, int dy)
basicMoveBy
in class AbstractFigure
AbstractFigure.moveBy(int, int)
public java.awt.Rectangle displayBox()
displayBox
in interface Figure
displayBox
in class AbstractFigure
basicDisplayBox(java.awt.Point, java.awt.Point)
public HandleEnumeration handles()
handles
in interface Figure
handles
in class AbstractFigure
Handle
public java.awt.Component getComponent()
protected void setComponent(java.awt.Component newComponent)
newComponent
- New value of property component.public void draw(java.awt.Graphics g)
draw
in interface Figure
draw
in class AttributeFigure
g
- the Graphics to draw into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |