|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.figures.AttributeFigure
CH.ifa.draw.figures.TextFigure
org.openbp.cockpit.modeler.figures.generic.MoveableTitleFigure
public class MoveableTitleFigure
Moveable text figure that is connected to a given display object (the client) and displays either the name or the display text of the object. The figure extends the default JHotDraw text figure, thus supporting figure movement and resizing.
| Field Summary |
|---|
| Fields inherited from interface CH.ifa.draw.framework.Figure |
|---|
POPUP_MENU |
| Constructor Summary | |
|---|---|
MoveableTitleFigure()
Constructor. |
|
MoveableTitleFigure(DisplayObject client)
Constructor. |
|
| Method Summary | |
|---|---|
DisplayObject |
getClient()
Gets the the display object we are connected with. |
java.lang.String |
getTitleFormat()
Gets the title format. |
boolean |
isVerboseDisplay()
Gets the flag if the display text or the object name should be displayed if there is no display name of the client object. |
void |
setClient(DisplayObject client)
Sets the the display object we are connected with. |
void |
setTitleFormat(java.lang.String titleFormat)
Sets the title format. |
void |
setVerboseDisplay(boolean verboseDisplay)
Sets the flag if the display text or the object name should be displayed if there is no display name of the client object. |
void |
updateFigure()
Synchronizes this figure with its provider, i\.e\. the object that is represented by the figure. |
| Methods inherited from class CH.ifa.draw.figures.TextFigure |
|---|
acceptsTyping, basicDisplayBox, basicMoveBy, changed, connect, createCurrentFont, disconnect, displayBox, drawBackground, drawFrame, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getAttribute, getFont, getText, handles, moveBy, overlayColumns, read, readOnly, release, setAttribute, setCurrentFontName, setCurrentFontSize, setCurrentFontStyle, setFont, setReadOnly, setText, textDisplayBox, updateLocation, write |
| Methods inherited from class CH.ifa.draw.figures.AttributeFigure |
|---|
draw, getDefaultAttribute, getFillColor, getFrameColor |
| Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
|---|
addFigureChangeListener, addToContainer, canConnect, center, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getZValue, includes, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, setZValue, size, willChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.generic.TitleFigure |
|---|
getText, setText |
| Methods inherited from interface CH.ifa.draw.framework.Figure |
|---|
addFigureChangeListener, addToContainer, basicDisplayBox, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange |
| Methods inherited from interface CH.ifa.draw.util.Storable |
|---|
read, write |
| Constructor Detail |
|---|
public MoveableTitleFigure()
public MoveableTitleFigure(DisplayObject client)
client - The display object we are connected with| Method Detail |
|---|
public void updateFigure()
UpdatableFigure
updateFigure in interface UpdatableFigureUpdatableFigure.updateFigure()public DisplayObject getClient()
TitleFigure
getClient in interface TitleFigureTitleFigure.getClient()public void setClient(DisplayObject client)
TitleFigure
setClient in interface TitleFigureTitleFigure.setClient(DisplayObject client)public java.lang.String getTitleFormat()
TitleFigureDisplayObjectDisplayObject
getTitleFormat in interface TitleFigureTitleFigure.getTitleFormat()public void setTitleFormat(java.lang.String titleFormat)
TitleFigureDisplayObjectDisplayObject
setTitleFormat in interface TitleFigureTitleFigure.setTitleFormat(String titleFormat)public boolean isVerboseDisplay()
TitleFigure
isVerboseDisplay in interface TitleFigureTitleFigure.isVerboseDisplay()public void setVerboseDisplay(boolean verboseDisplay)
TitleFigure
setVerboseDisplay in interface TitleFigureTitleFigure.setVerboseDisplay(boolean verboseDisplay)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||