CH.ifa.draw.samples.net
Class NodeFigure
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractFigure
-
- CH.ifa.draw.figures.AttributeFigure
-
- CH.ifa.draw.figures.TextFigure
-
- CH.ifa.draw.samples.net.NodeFigure
-
- All Implemented Interfaces:
- Figure, FigureChangeListener, TextHolder, Storable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
public class NodeFigure extends TextFigure
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
-
-
Constructor Summary
Constructors Constructor and Description NodeFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ConnectorconnectorAt(int x, int y)Returns the Figures connector for the specified location.voidconnectorVisibility(boolean isVisible)Sets whether the connectors should be visible.booleancontainsPoint(int x, int y)Checks if a point is inside the figure.java.awt.RectangledisplayBox()Gets the display box of a figure.voiddraw(java.awt.Graphics g)Draws the figure in the given graphics.java.util.Vectorhandles()Returns the handles of a Figure that can be used to manipulate some of its attributes.-
Methods inherited from class CH.ifa.draw.figures.TextFigure
acceptsTyping, basicDisplayBox, changed, connect, createCurrentFont, disconnect, drawBackground, drawFrame, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getAttribute, getFont, getText, moveBy, overlayColumns, read, readOnly, release, setAttribute, setCurrentFontName, setCurrentFontSize, setCurrentFontStyle, setFont, setReadOnly, setText, textDisplayBox, write
-
Methods inherited from class CH.ifa.draw.figures.AttributeFigure
getDefaultAttribute, getFillColor, getFrameColor
-
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, clone, connectedTextLocator, connectionInsets, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, isEmpty, listener, removeFigureChangeListener, removeFromContainer, size, willChange
-
-
-
-
Method Detail
-
displayBox
public java.awt.Rectangle displayBox()
Description copied from class:AbstractFigureGets the display box of a figure.- Specified by:
displayBoxin interfaceFigure- Overrides:
displayBoxin classTextFigure- See Also:
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
-
containsPoint
public boolean containsPoint(int x, int y)Description copied from class:AbstractFigureChecks if a point is inside the figure.- Specified by:
containsPointin interfaceFigure- Overrides:
containsPointin classAbstractFigure
-
draw
public void draw(java.awt.Graphics g)
Description copied from class:AttributeFigureDraws the figure in the given graphics. Draw is a template method calling drawBackground followed by drawFrame.- Specified by:
drawin interfaceFigure- Overrides:
drawin classAttributeFigure- Parameters:
g- the Graphics to draw into
-
handles
public java.util.Vector handles()
Description copied from class:AbstractFigureReturns the handles of a Figure that can be used to manipulate some of its attributes.- Specified by:
handlesin interfaceFigure- Overrides:
handlesin classTextFigure- Returns:
- a Vector of handles
- See Also:
Handle
-
connectorVisibility
public void connectorVisibility(boolean isVisible)
Description copied from class:AbstractFigureSets whether the connectors should be visible. By default they are not visible and- Specified by:
connectorVisibilityin interfaceFigure- Overrides:
connectorVisibilityin classAbstractFigure
-
connectorAt
public Connector connectorAt(int x, int y)
Description copied from class:AbstractFigureReturns the Figures connector for the specified location. By default a ChopBoxConnector is returned.- Specified by:
connectorAtin interfaceFigure- Overrides:
connectorAtin classAbstractFigure- See Also:
ChopBoxConnector
-
-
DataMelt 3.0 © DataMelt by jWork.ORG