edu.umd.cfar.lamp.viper.gui.canvas
Class PBoxNode

java.lang.Object
  extended byedu.umd.cs.piccolo.PNode
      extended byedu.umd.cs.piccolo.nodes.PPath
          extended byedu.umd.cfar.lamp.viper.gui.canvas.AttributablePPathAdapter
              extended byedu.umd.cfar.lamp.viper.gui.canvas.PBoxNode
All Implemented Interfaces:
Attributable, java.lang.Cloneable, java.awt.print.Printable, java.io.Serializable
Direct Known Subclasses:
BboxNode, OboxNode

public abstract class PBoxNode
extends AttributablePPathAdapter
implements Attributable

Common subclass of box attribute display nodes.

Author:
davidm
See Also:
Serialized Form

Field Summary
protected  Attribute attr
           
protected  ViperViewMediator mediator
           
 
Fields inherited from class edu.umd.cs.piccolo.nodes.PPath
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_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PBoxNode(ViperViewMediator mediator)
           
 
Method Summary
abstract  void bold(CanvasDir dir)
           
 Attribute getAttribute()
           
abstract  double getBoxHeight()
           
abstract  java.awt.geom.Point2D[] getBoxPts()
           
abstract  double getBoxWidth()
           
 java.awt.geom.Point2D getCenterPt()
           
 void setAttribute(Attribute attr)
           
abstract  void setCenterBolded(boolean bold)
           
abstract  void setPath(BoxInformation box)
           
abstract  void unbold()
           
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.canvas.AttributablePPathAdapter
getDisplayProperties, getHandleDisplayProperties, getHighlightDisplayProperties, resetStyle, setDisplayProperties, setHandleDisplayProperties, setHighlightDisplayProperties
 
Methods inherited from class edu.umd.cs.piccolo.nodes.PPath
append, closePath, createEllipse, createPolyline, createPolyline, createRectangle, curveTo, endResizeBounds, getPathBoundsWithStroke, getPathReference, getStroke, getStrokePaint, intersects, lineTo, moveTo, paint, paramString, quadTo, reset, setBounds, setPathTo, setPathToEllipse, setPathToPolyline, setPathToPolyline, setPathToRectangle, setStroke, setStrokePaint, startResizeBounds, updateBoundsFromPath
 
Methods inherited from class edu.umd.cs.piccolo.PNode
addActivity, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToTransform, animateToTransparency, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperty, getClientPropertyKeysIterator, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInverseTransform, getListenerList, getLocalToGlobalTransform, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, moveToBack, moveToBack, moveToFront, moveToFront, offset, paintAfterChildren, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, position, print, print, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaintFrom, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, toImage, toImage, toString, transformBy, translate, validateFullBounds, validateFullPaint
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.umd.cfar.lamp.viper.gui.canvas.datatypes.Attributable
getUpdatedAttribute, setDisplayProperties, setHandleDisplayProperties, setHighlightDisplayProperties
 

Field Detail

attr

protected Attribute attr

mediator

protected ViperViewMediator mediator
Constructor Detail

PBoxNode

public PBoxNode(ViperViewMediator mediator)
Method Detail

setAttribute

public void setAttribute(Attribute attr)
Specified by:
setAttribute in interface Attributable

getAttribute

public Attribute getAttribute()
Specified by:
getAttribute in interface Attributable

getCenterPt

public java.awt.geom.Point2D getCenterPt()
Returns:

setCenterBolded

public abstract void setCenterBolded(boolean bold)

getBoxPts

public abstract java.awt.geom.Point2D[] getBoxPts()

getBoxWidth

public abstract double getBoxWidth()

getBoxHeight

public abstract double getBoxHeight()

setPath

public abstract void setPath(BoxInformation box)

bold

public abstract void bold(CanvasDir dir)

unbold

public abstract void unbold()