|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AbstractAttributedFigure
org.jhotdraw.draw.AbstractAttributedDecoratedFigure
org.jhotdraw.draw.TextFigure
org.jhotdraw.samples.net.figures.NodeFigure
public class NodeFigure
NodeFigure.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.TextFigure |
|---|
editable, origin, textLayout |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, listenerList |
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Fields inherited from interface org.jhotdraw.draw.Figure |
|---|
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY |
| Constructor Summary | |
|---|---|
NodeFigure()
Creates a new instance. |
|
| Method Summary | ||
|---|---|---|
NodeFigure |
clone()
Returns a clone of the figure, with clones of all aggregated figures, such as children and decorators. |
|
java.util.Collection<Handle> |
createHandles(int detailLevel)
Creates handles used to manipulate the figure. |
|
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.util.Collection<Connector> |
getConnectors(ConnectionFigure prototype)
Returns all connectors of this Figure for the specified prototype of a ConnectionFigure. |
|
java.awt.geom.Rectangle2D.Double |
getFigureDrawingArea()
Gets the drawing area without taking the decorator into account. |
|
int |
getLayer()
AbstractFigure always returns 0. |
|
protected void |
readDecorator(DOMInput in)
|
|
|
set(AttributeKey<T> key,
T newValue)
Sets an attribute of the figure. |
|
protected void |
writeDecorator(DOMOutput out)
|
|
| Methods inherited from class org.jhotdraw.draw.TextFigure |
|---|
drawFill, drawStroke, drawText, figureContains, getBaseline, getBounds, getFillColor, getFont, getFontSize, getInsets, getLabelFor, getPreferredSize, getTabSize, getText, getTextColor, getTextColumns, getTextLayout, getTool, getTransformRestoreData, invalidate, isEditable, isTextOverflow, read, restoreTransformTo, setBounds, setEditable, setFontSize, setText, transform, validate, write |
| Methods inherited from class org.jhotdraw.draw.AbstractAttributedDecoratedFigure |
|---|
contains, draw, drawDecorator, drawFigure, getDecorator, getDrawingArea, setDecorator, updateDecoratorBounds |
| Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure |
|---|
applyAttributesTo, get, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributes |
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| 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, addPropertyChangeListener, changed, contains, draw, findFigureInside, get, getActions, getAttributes, getAttributesRestoreData, getCursor, getDecomposition, getDrawingArea, getEndPoint, getStartPoint, getToolTipText, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, removePropertyChangeListener, requestRemove, restoreAttributesTo, willChange |
| Constructor Detail |
|---|
public NodeFigure()
| Method Detail |
|---|
public java.util.Collection<Connector> getConnectors(ConnectionFigure prototype)
FigureThis is used by connection tools and connection handles to visualize the connectors when the user is about to create a ConnectionFigure to this Figure.
getConnectors in interface FiguregetConnectors in class AbstractFigureprototype - The prototype used to create a connection or null if
unknown. This allows for specific connectors for different
connection figures.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. The value -1 is used
by the SelectAreaTracker and the HandleTracker to highlight figures, over which the mouse
pointer is hovering.
Handlepublic java.awt.geom.Rectangle2D.Double getFigureDrawingArea()
TextFigure
getFigureDrawingArea 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.ChopRectangleConnector
public Connector findCompatibleConnector(Connector c,
boolean isStart)
Figure
findCompatibleConnector in interface FigurefindCompatibleConnector in class AbstractFigurepublic NodeFigure clone()
Figure
clone in interface Figureclone in class TextFigurepublic int getLayer()
AbstractFigure
getLayer in interface FiguregetLayer in class AbstractFigure
protected void writeDecorator(DOMOutput out)
throws java.io.IOException
writeDecorator in class AbstractAttributedDecoratedFigurejava.io.IOException
protected void readDecorator(DOMInput in)
throws java.io.IOException
readDecorator in class AbstractAttributedDecoratedFigurejava.io.IOException
public <T> void set(AttributeKey<T> key,
T newValue)
AbstractAttributedFigure
set in interface Figureset in class AbstractAttributedFigureAttributeKey.set(org.jhotdraw.draw.Figure, T)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||