|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AttributedFigure
org.jhotdraw.draw.TextFigure
org.jhotdraw.samples.net.figures.NodeFigure
public class NodeFigure
NodeFigure.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.TextFigure |
|---|
origin |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, decorator, listenerList |
| Constructor Summary | |
|---|---|
NodeFigure()
Creates a new instance. |
|
| Method Summary | |
|---|---|
NodeFigure |
clone()
Returns a clone of the figure. |
java.util.Collection<Handle> |
createHandles(int detailLevel)
Creates handles used to manipulate the figure. |
protected void |
drawConnectors(java.awt.Graphics2D g)
|
Connector |
findCompatibleConnector(Connector c,
boolean isStart)
Gets a compatible connector. |
Connector |
findConnector(java.awt.geom.Point2D.Double p,
ConnectionFigure figure)
Returns the Figures connector for the specified location. |
java.awt.geom.Rectangle2D.Double |
getFigureDrawBounds()
|
int |
getLayer()
Gets the layer of the figure. |
void |
setAttribute(AttributeKey key,
java.lang.Object newValue)
Sets an attribute of the figure. |
| Methods inherited from class org.jhotdraw.draw.TextFigure |
|---|
basicSetBounds, basicTransform, contains, drawFill, drawStroke, drawText, getBounds, getFillColor, getFont, getFontSize, getInsets, getLabelFor, getPreferredSize, getRestoreData, getTabSize, getText, getTextColor, getTextColumns, getTextLayout, getTool, invalidate, isEditable, read, restoreTo, setEditable, setFontSize, setText, validate, write |
| Methods inherited from class org.jhotdraw.draw.AttributedFigure |
|---|
applyAttributesTo, basicSetAttribute, drawFigure, getAttribute, getAttributeKey, getAttributes, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, setAttributeEnabled, setAttributes, writeAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Figure |
|---|
addFigureListener, addNotify, addUndoableEditListener, basicSetAttribute, canConnect, changed, draw, findFigureInside, getActions, getAttribute, getAttributes, getCursor, getDecomposition, getDecorator, getDrawBounds, getEndPoint, getStartPoint, getTooltip, handleDrop, handleMouseClick, includes, isConnectorsVisible, isInteractive, isVisible, remap, removeFigureListener, removeNotify, removeUndoableEditListener, requestRemove, setConnectorsVisible, setDecorator, setVisible, willChange |
| Constructor Detail |
|---|
public NodeFigure()
| Method Detail |
|---|
public java.util.Collection<Handle> createHandles(int detailLevel)
Figure
createHandles in interface FigurecreateHandles in class TextFiguredetailLevel - The detail level of the handles. Usually this is 0 for
bounding box handles and 1 for point handles.
Handlepublic java.awt.geom.Rectangle2D.Double getFigureDrawBounds()
getFigureDrawBounds in class TextFigure
public Connector findConnector(java.awt.geom.Point2D.Double p,
ConnectionFigure figure)
AbstractFigure
findConnector in interface FigurefindConnector in class AbstractFigurep - the location of the connector.figure - The prototype used to create a connection or null if
unknown. This allows for specific connectors for different
connection figures.ChopBoxConnector
public Connector findCompatibleConnector(Connector c,
boolean isStart)
Figure
findCompatibleConnector in interface FigurefindCompatibleConnector in class AbstractFigurepublic NodeFigure clone()
Figure
clone in interface Figureclone in class TextFigureprotected void drawConnectors(java.awt.Graphics2D g)
drawConnectors in class AttributedFigurepublic int getLayer()
FigureFigureListener.figureChanged event to
its figure listeners.
FIXME - Replace int value by a Layer object.
getLayer in interface FiguregetLayer in class AbstractFigure
public void setAttribute(AttributeKey key,
java.lang.Object newValue)
AttributedFigure
setAttribute in interface FiguresetAttribute in class AttributedFigure
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||