com.hp.hpl.guess.piccolo
Class GuessTextNode
java.lang.Object
edu.umd.cs.piccolo.PNode
edu.umd.cs.piccolo.nodes.PText
com.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
| 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.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 |
ZOOM_SIZE
public static int ZOOM_SIZE
hulls
public HashSet hulls
GuessTextNode
public GuessTextNode(Node owner,
double x,
double y,
GFrame frame,
int style)
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