public class Actor extends GNode
GraphObject.Kind, GraphObject.ObjectIDComparator| Modifier and Type | Field and Description | 
|---|---|
| protected static float | horizontalStretch | 
| protected static float | maxWidthToHeightRatio | 
| protected static float | verticalStretchexpansion percentage vertically for drawing diamond; e.g., 0.1 means expand by 10% | 
borderOutlineWidth, dashpattern, descriptors, mark, myedges, showBoringDebugInfoFont, typeLabelbackColor, defaultDim, defaultSelectColor, defaultWrapColumns, defaultWrapLabels, displayRect3D, foreColor, highlightColor, history, isSelected, labelFont, myKind, objectID, objectMargin, ownerGraph, TerritorialLimit, textLabel, textLabelLowerLeftPt| Constructor and Description | 
|---|
| Actor()Instantiates a default actor with default label "f". | 
| Modifier and Type | Method and Description | 
|---|---|
| void | adjustCustomDisplayRect()Performs whatever custom adjustments that any sub-classes want. | 
| void | draw(Graphics2D g,
    boolean printing)The basic rendering method for this actor. | 
| void | drawBorder(Graphics2D g,
          Color borderColor)Draws the actor border, in a given color. | 
| Shape | getShape()Actor's shape is a diamond that is inscribed within its displayRect. | 
| void | selfCleanup()Performs whatever dusting and cleaning is needed when the actor goes away. | 
| void | setCenter(Point2D.Double p)Set the center point of this actor to the given point. | 
| void | setDisplayRect(Rectangle2D.Double r)Overrides super class's method so that we can adjust the display rect to account for odd shape | 
| void | setTextLabel(String label)Sets the label of this actor, editing characters if any are illegal. | 
abandonObject, adjustEdges, attachGEdge, CGIFStringGNodeEdges, clearDescriptors, deleteGEdge, drawActivated, drawDebuggingInfo, finalize, getDisplayRect, getEdges, getLinkedNodes, getLinkedNodes, getSize, getTypeDescriptor, getTypeDescriptors, getTypeLabel, isActive, isChanged, setActive, setCenter, setChanged, setTypeDescriptor, setTypeDescriptors, setTypeLabel, setTypeLabeladdHistoryRecord, commitToKnowledgeBase, findDominantContext, forceMove, forgetObject, getBestFontMetrics, getCenter, getColor, getDepth, getDim, getDisplayRect3D, getHistory, getLabelFont, getMinimumContentSize, getObjectLocator, getOutermostGraph, getOwnerFrame, getOwnerGraph, getShapeForDrawing, getTextLabel, getTextLabelSize, getUpperLeft, getWrapColumns, getWrapLabels, isNegated, isNegativelyNested, listToString, listToStringXML, putInCorrectContext, putInCorrectContext, resizeIfNecessary, resizeIfNecessary, setBackground, setCenterOnly, setColor, setColor, setDepth, setDim, setDim, setDisplayRect, setDisplayRect3D, setForeground, setLabelFont, setNegated, setOwnerGraph, setTextLabel, setTextLabel, setUpperLeft, setUpperLeft, toString, unCommitFromKnowledgeBaseprotected static final float verticalStretch
protected static final float horizontalStretch
protected static final float maxWidthToHeightRatio
public void setCenter(Point2D.Double p)
public void setDisplayRect(Rectangle2D.Double r)
setDisplayRect in class GraphObjectr - the rectangle of the object.public Shape getShape()
getShape in class GraphObjectGraphObject.getShape()public void draw(Graphics2D g,
                 boolean printing)
public void drawBorder(Graphics2D g,
                       Color borderColor)
drawBorder in class GNodeg - The graphics context on which to drawborderColor - the color of the wide border.
        Uses the actor's already-set position and size to decide where to drawpublic void setTextLabel(String label)
setTextLabel in class GraphObjectlabel - The new label for this actor.public void adjustCustomDisplayRect()
GraphObjectadjustCustomDisplayRect in class GraphObjectpublic void selfCleanup()
selfCleanup in class GraphObject