com.rolemodelsoft.drawlet.examples.graphnode
Class ArrowGraphNode

java.lang.Object
  |
  +--com.rolemodelsoft.drawlet.basics.AbstractPaintable
        |
        +--com.rolemodelsoft.drawlet.basics.AbstractFigure
              |
              +--com.rolemodelsoft.drawlet.shapes.AbstractShape
                    |
                    +--com.rolemodelsoft.drawlet.shapes.FilledShape
                          |
                          +--com.rolemodelsoft.drawlet.shapes.AbstractRectangleShape
                                |
                                +--com.rolemodelsoft.drawlet.shapes.rectangles.RectangleShape
                                      |
                                      +--com.rolemodelsoft.drawlet.examples.graphnode.GraphNode
                                            |
                                            +--com.rolemodelsoft.drawlet.examples.graphnode.ArrowGraphNode

public class ArrowGraphNode
extends GraphNode

Here is an example of a GraphNode with Arrows.

See Also:
Serialized Form

Fields inherited from class com.rolemodelsoft.drawlet.examples.graphnode.GraphNode
renderer, string, textColor
 
Fields inherited from class com.rolemodelsoft.drawlet.shapes.AbstractRectangleShape
height, width, x, y
 
Fields inherited from class com.rolemodelsoft.drawlet.shapes.FilledShape
fillColor, lineColor
 
Fields inherited from class com.rolemodelsoft.drawlet.basics.AbstractFigure
listeners, locationListeners
 
Constructor Summary
ArrowGraphNode()
           
 
Method Summary
protected  ConnectedLineCreationHandle basicNewLineCreationHandle()
          Answer a new line creation handle
 Locator requestConnection(Figure requestor, int x, int y)
          Answers a Locator corresponding to a significant point on the receiver that will serve as a connection to the other figure.
 
Methods inherited from class com.rolemodelsoft.drawlet.examples.graphnode.GraphNode
changedShape, changedSize, defaultHeight, defaultString, defaultTextColor, defaultWidth, editTool, getHandles, getLabelBounds, getRenderer, getString, getStyle, getTextColor, paint, paintText, resetSizeCache, setString, setStyle, setTextColor
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.rectangles.RectangleShape
paintFilled, paintStrokes
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.AbstractRectangleShape
basicMove, basicReshape, basicResize, basicTranslate, defaultX, defaultY, getBounds, getSize
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.FilledShape
defaultFillColor, defaultLineColor, getFillColor, getLineColor, isOpaque, isStroked, setFillColor, setLineColor
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.AbstractShape
resetBoundsCache, reshapedPolygon, reshapedPolygon, setBounds, setSize
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.AbstractFigure
addPropertyChangeListener, addRelatedLocationListener, changedLocation, contains, contains, contains, deleteLocationListeners, disconnect, duplicate, duplicateIn, estimatedDuplicateSize, figureFromLocator, fireLocationChange, firePropertyChange, firePropertyChange, fireRelationChange, fireShapeChange, fireSizeChange, getLocation, getLocator, intersects, intersects, isObsolete, isWithin, isWithin, locatorAt, move, move, postDuplicate, relatedLocationListeners, removePropertyChangeListener, removeRelatedLocationListener, resetLocationCache, setSize, translate
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.AbstractPaintable
getBottom, getHeight, getLeft, getRight, getTop, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowGraphNode

public ArrowGraphNode()
Method Detail

basicNewLineCreationHandle

protected ConnectedLineCreationHandle basicNewLineCreationHandle()
Answer a new line creation handle
Overrides:
basicNewLineCreationHandle in class GraphNode

requestConnection

public Locator requestConnection(Figure requestor,
                                 int x,
                                 int y)
Answers a Locator corresponding to a significant point on the receiver that will serve as a connection to the other figure. By default, make it the middle of the receiver. Subclasses may wish to do something more meaningful.
Overrides:
requestConnection in class GraphNode
Parameters:
x - the x coordinate of the requested locator
y - the y coordinate of the requested locator