com.hp.hpl.guess.piccolo
Class GuessPEdge
java.lang.Object
edu.umd.cs.piccolo.PNode
edu.umd.cs.piccolo.nodes.PPath
com.hp.hpl.guess.piccolo.GuessPEdge
- All Implemented Interfaces:
- Cloneable, EdgeListener, GraphElementListener, Printable, Serializable
- public class GuessPEdge
- extends PPath
- implements EdgeListener
- See Also:
- Serialized Form
| Fields inherited from class edu.umd.cs.piccolo.PNode |
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATE |
| Methods inherited from class edu.umd.cs.piccolo.nodes.PPath |
append, closePath, createEllipse, createLine, createPolyline, createPolyline, createRectangle, curveTo, endResizeBounds, getPathBoundsWithStroke, getPathReference, getStroke, getStrokePaint, intersects, lineTo, moveTo, quadTo, reset, setPathTo, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setStroke, setStrokePaint, startResizeBounds, updateBoundsFromPath |
| Methods inherited from class edu.umd.cs.piccolo.PNode |
addActivity, addAttribute, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, findIntersectingNodes, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsReference, getChild, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientProperty, getClientPropertyKeysEnumeration, getClientPropertyKeysIterator, getDoubleAttribute, getFullBounds, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, moveInBackOf, moveInFrontOf, moveToBack, moveToFront, offset, parentToLocal, parentToLocal, parentToLocal, position, print, print, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setChildPaintInvalid, setChildrenPickable, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, toImage, toImage, toImage, toString, transformBy, translate, validateFullPaint |
ARROW_NONE
public static final int ARROW_NONE
- See Also:
- Constant Field Values
ARROW_START
public static final int ARROW_START
- See Also:
- Constant Field Values
ARROW_END
public static final int ARROW_END
- See Also:
- Constant Field Values
ARROW_BOTH
public static final int ARROW_BOTH
- See Also:
- Constant Field Values
GuessPEdge
public GuessPEdge(Edge owner,
GFrame frame)
GuessPEdge
public GuessPEdge(Shape aShape,
Edge owner,
GFrame frame)
getOwner
public Edge getOwner()
set
public void set(String field,
Object o)
- Specified by:
set in interface GraphElementListener
get
public Object get(String field)
- Specified by:
get in interface GraphElementListener
setShape
public void setShape(Shape aShape)
setLineWidth
public void setLineWidth(double width)
setColor
public void setColor(Color clr)
highlight
public void highlight(boolean state)
- Specified by:
highlight in interface GraphElementListener
mouseEntered
public void mouseEntered(PInputEvent aEvent)
mouseExited
public void mouseExited(PInputEvent aEvent)
getColor
public Paint getColor()
getLineWidth
public double getLineWidth()
mouseClicked
public void mouseClicked(PInputEvent aEvent)
centerDisplay
public void centerDisplay()
highlightOld
public void highlightOld(boolean state)
readjust
public void readjust()
- Specified by:
readjust in interface EdgeListener
readjustJiggle
public void readjustJiggle(boolean upd)
- this is a special method that "twists" the edge
around a central control point so that
- Parameters:
upd - we can twist it up or down
setLabel
public void setLabel(String str)
setLabelVisible
public void setLabelVisible(boolean state)
breakupLines
public static String[] breakupLines(String text)
paintLabel
public void paintLabel(Graphics2D g,
float labelX,
float labelY,
Font font)
paint
public void paint(PPaintContext apc)