com.hp.hpl.guess.piccolo
Class GuessTextNode

java.lang.Object
  extended byedu.umd.cs.piccolo.PNode
      extended byedu.umd.cs.piccolo.nodes.PText
          extended bycom.hp.hpl.guess.piccolo.GuessTextNode
All Implemented Interfaces:
Cloneable, GraphElementListener, GuessPNode, NodeListener, Printable, Serializable

public class GuessTextNode
extends PText
implements GuessPNode

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.umd.cs.piccolo.PNode
PNode.PSceneGraphDelegate
 
Field Summary
 HashSet hulls
           
static int ZOOM_SIZE
           
 
Fields inherited from class edu.umd.cs.piccolo.nodes.PText
DEFAULT_FONT, DEFAULT_GREEK_THRESHOLD, PROPERTY_CODE_FONT, PROPERTY_CODE_TEXT, PROPERTY_FONT, PROPERTY_TEXT
 
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
GuessTextNode(Node owner, double x, double y, GFrame frame, int style)
           
 
Method Summary
 void addHullListener(ConvexHullNode chn)
           
 void centerDisplay()
           
 Object get(String field)
           
 Point2D[] getAllPorts()
           
 double getDrawHeight()
           
 double getDrawWidth()
           
 String getLabel()
           
 Node getOwner()
           
 Paint getPaint()
           
 Point2D[] getPrefPorts()
           
 int getStyle()
           
 void highlight(boolean state)
           
 void inTransition(double x, double y)
           
 void keyTyped(PInputEvent aEvent)
           
 void label(boolean state)
           
 void mouseClicked(PInputEvent aEvent)
           
 void mouseEntered(PInputEvent aEvent)
           
 void mouseExited(PInputEvent aEvent)
           
 void moveDone(double x, double y)
           
 void paint(PPaintContext apc)
           
 void paintInternal(PPaintContext apc)
           
 void removeHullListener(ConvexHullNode chn)
           
 void set(String field, Object o)
           
 boolean setBounds(Rectangle2D newBounds)
           
 void setColor(Color c)
           
 void setLabel(String label)
           
 void setLocation(double x1, double y1)
           
 void setLocation(double x1, double y1, double width, double height)
           
 void setPaint(Color c)
           
 void setShape(Shape shp, int style)
           
 void setSize(double width, double height)
           
 void setStyle(int s)
           
 
Methods inherited from class edu.umd.cs.piccolo.nodes.PText
getFont, getGreekThreshold, getJustification, getText, getTextPaint, isConstrainHeightToTextHeight, isConstrainWidthToTextWidth, recomputeLayout, setConstrainHeightToTextHeight, setConstrainWidthToTextWidth, setFont, setGreekThreshold, setJustification, setText, setTextPaint
 
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, endResizeBounds, 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, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, intersects, 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, setChildPaintInvalid, setChildrenPickable, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toImage, toString, transformBy, translate, validateFullPaint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.guess.piccolo.GuessPNode
getHeight, getWidth, getX, getY
 

Field Detail

ZOOM_SIZE

public static int ZOOM_SIZE

hulls

public HashSet hulls
Constructor Detail

GuessTextNode

public GuessTextNode(Node owner,
                     double x,
                     double y,
                     GFrame frame,
                     int style)
Method Detail

getOwner

public Node getOwner()
Specified by:
getOwner in interface GuessPNode

getStyle

public int getStyle()
Specified by:
getStyle in interface GuessPNode

setStyle

public void setStyle(int s)
Specified by:
setStyle in interface GuessPNode

setBounds

public boolean setBounds(Rectangle2D newBounds)

setPaint

public void setPaint(Color c)

setColor

public void setColor(Color c)
Specified by:
setColor in interface GuessPNode

getPaint

public Paint getPaint()
Specified by:
getPaint in interface GuessPNode

setShape

public void setShape(Shape shp,
                     int style)
Specified by:
setShape in interface GuessPNode

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

setLocation

public void setLocation(double x1,
                        double y1,
                        double width,
                        double height)
Specified by:
setLocation in interface NodeListener

setLocation

public void setLocation(double x1,
                        double y1)
Specified by:
setLocation in interface NodeListener

setSize

public void setSize(double width,
                    double height)

mouseEntered

public void mouseEntered(PInputEvent aEvent)
Specified by:
mouseEntered in interface GuessPNode

mouseExited

public void mouseExited(PInputEvent aEvent)
Specified by:
mouseExited in interface GuessPNode

highlight

public void highlight(boolean state)
Specified by:
highlight in interface GraphElementListener

getDrawWidth

public double getDrawWidth()
Specified by:
getDrawWidth in interface GuessPNode

getDrawHeight

public double getDrawHeight()
Specified by:
getDrawHeight in interface GuessPNode

label

public void label(boolean state)

paintInternal

public void paintInternal(PPaintContext apc)

paint

public void paint(PPaintContext apc)

moveDone

public void moveDone(double x,
                     double y)
Specified by:
moveDone in interface GuessPNode

inTransition

public void inTransition(double x,
                         double y)
Specified by:
inTransition in interface GuessPNode

keyTyped

public void keyTyped(PInputEvent aEvent)

mouseClicked

public void mouseClicked(PInputEvent aEvent)
Specified by:
mouseClicked in interface GuessPNode

centerDisplay

public void centerDisplay()
Specified by:
centerDisplay in interface GuessPNode

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

addHullListener

public void addHullListener(ConvexHullNode chn)
Specified by:
addHullListener in interface GuessPNode

removeHullListener

public void removeHullListener(ConvexHullNode chn)
Specified by:
removeHullListener in interface GuessPNode

getAllPorts

public Point2D[] getAllPorts()
Specified by:
getAllPorts in interface GuessPNode

getPrefPorts

public Point2D[] getPrefPorts()
Specified by:
getPrefPorts in interface GuessPNode