public class Arrow extends GEdge
GEdge.Direction
GraphObject.Kind, GraphObject.ObjectIDComparator
arrowEndPoint1, arrowEndPoint2, arrowHeadShape, arrowPoint, edgeAttributes, fromObj, fromPt, midPoint, toObj, toPt
backColor, defaultDim, defaultSelectColor, defaultWrapColumns, defaultWrapLabels, displayRect3D, foreColor, highlightColor, history, isSelected, labelFont, myKind, objectID, objectMargin, ownerGraph, TerritorialLimit, textLabel, textLabelLowerLeftPt
Constructor and Description |
---|
Arrow()
Instantiates a link arrow from nowhere to nowhere.
|
Arrow(GraphObject FromOne,
GraphObject ToOne)
Instantiates a link arrow from one graph object to another.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g,
boolean printing)
Draws the link arrow on its graphic context.
|
abandonObject, areLinked, commitToKnowledgeBase, detachFromGNodes, drawArrowHead, drawBorder, finalize, findClippingPoint, findClippingPointRectangle, findClippingPointShape, getArrowHeadHeight, getArrowHeadWidth, getEdgeThickness, getLength, getObjectShapeForClipping, getShape, howLinked, initializeArrowHead, linkedTo, makeArrowPoints, makeArrowPoints, placeEdge, setArrowHeadHeight, setArrowHeadWidth, setColor, setEdgeThickness, toString, unCommitFromKnowledgeBase
addHistoryRecord, adjustCustomDisplayRect, findDominantContext, forceMove, forgetObject, getBestFontMetrics, getCenter, getColor, getDepth, getDim, getDisplayRect, getDisplayRect3D, getHistory, getLabelFont, getMinimumContentSize, getObjectLocator, getOutermostGraph, getOwnerFrame, getOwnerGraph, getShapeForDrawing, getTextLabel, getTextLabelSize, getUpperLeft, getWrapColumns, getWrapLabels, isNegated, isNegativelyNested, listToString, listToStringXML, putInCorrectContext, putInCorrectContext, resizeIfNecessary, resizeIfNecessary, selfCleanup, setBackground, setCenter, setCenterOnly, setColor, setDepth, setDim, setDim, setDisplayRect, setDisplayRect, setDisplayRect3D, setForeground, setLabelFont, setNegated, setOwnerGraph, setTextLabel, setTextLabel, setTextLabel, setUpperLeft, setUpperLeft
public Arrow()
public Arrow(GraphObject FromOne, GraphObject ToOne)
FromOne
- starting object for the link arrowToOne
- ending object for the link arrowpublic void draw(Graphics2D g, boolean printing)
draw
in class GraphObject
g
- graphics context on which to draw the link arrowprinting
- if true, inhibits drawing the selection tick on the link
arrow