com.hp.hpl.guess.piccolo
Class GuessPEdge

java.lang.Object
  extended byedu.umd.cs.piccolo.PNode
      extended byedu.umd.cs.piccolo.nodes.PPath
          extended bycom.hp.hpl.guess.piccolo.GuessPEdge
All Implemented Interfaces:
Cloneable, EdgeListener, GraphElementListener, Printable, Serializable

public class GuessPEdge
extends PPath
implements EdgeListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.umd.cs.piccolo.PNode
PNode.PSceneGraphDelegate
 
Field Summary
static int ARROW_BOTH
           
static int ARROW_END
           
static int ARROW_NONE
           
static int ARROW_START
           
 
Fields inherited from class edu.umd.cs.piccolo.nodes.PPath
PROPERTY_CODE_PATH, PROPERTY_CODE_STROKE, PROPERTY_CODE_STROKE_PAINT, PROPERTY_PATH, PROPERTY_STROKE, PROPERTY_STROKE_PAINT
 
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
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
GuessPEdge(Edge owner, GFrame frame)
           
GuessPEdge(Shape aShape, Edge owner, GFrame frame)
           
 
Method Summary
static String[] breakupLines(String text)
           
 void centerDisplay()
           
 Object get(String field)
           
 Paint getColor()
           
 double getLineWidth()
           
 Edge getOwner()
           
 void highlight(boolean state)
           
 void highlightOld(boolean state)
           
 void mouseClicked(PInputEvent aEvent)
           
 void mouseEntered(PInputEvent aEvent)
           
 void mouseExited(PInputEvent aEvent)
           
 void paint(PPaintContext apc)
           
 void paintLabel(Graphics2D g, float labelX, float labelY, Font font)
           
 void readjust()
           
 void readjustJiggle(boolean upd)
          this is a special method that "twists" the edge around a central control point so that
 void set(String field, Object o)
           
 void setColor(Color clr)
           
 void setLabel(String str)
           
 void setLabelVisible(boolean state)
           
 void setLineWidth(double width)
           
 void setShape(Shape aShape)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

GuessPEdge

public GuessPEdge(Edge owner,
                  GFrame frame)

GuessPEdge

public GuessPEdge(Shape aShape,
                  Edge owner,
                  GFrame frame)
Method Detail

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)