edu.umd.cfar.lamp.viper.gui.data.obox
Class OboxNode

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
                  extended byedu.umd.cfar.lamp.viper.gui.data.obox.OboxNode
All Implemented Interfaces:
Attributable, java.lang.Cloneable, java.awt.print.Printable, java.io.Serializable

public class OboxNode
extends PBoxNode
implements Attributable

Author:
clin To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.umd.cfar.lamp.viper.gui.canvas.PBoxNode
attr, 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
OboxNode(ViperViewMediator mediator)
           
 
Method Summary
 void bold(CanvasDir dir)
           
 void boldNorthHandle()
           
 void boldRightHandle()
           
 double getAngleInRadians()
           
 double getBoxHeight()
          Can't use getWidth() since PNode already defines it
 java.awt.geom.Point2D[] getBoxPts()
           
 double getBoxWidth()
          Can't use getWidth() since PNode already defines it
 java.awt.geom.Point2D[] getNorthHandlePts()
           
 java.awt.geom.Point2D[] getRightHandlePts()
           
 java.lang.Object getUpdatedAttribute()
          synchronize the PNode with the Attribute
protected  void resetStyle()
          Called by the setDisplayProperties methods, and whenever the style needs changing.
 void setAngleInRadians(double angleIn)
           
 void setCenterBolded(boolean bold)
           
 void setCornerRadius(int val)
           
 void setPath(BoxInformation box)
           
 void setWidthAndHeight(double widthIn, double heightIn)
           
 void unbold()
          Makes all bolding "blank" so it doesn't highlight
 void updateObox()
           
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.canvas.PBoxNode
getAttribute, getCenterPt, setAttribute
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.canvas.AttributablePPathAdapter
getDisplayProperties, getHandleDisplayProperties, getHighlightDisplayProperties, 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
getAttribute, setAttribute, setDisplayProperties, setHandleDisplayProperties, setHighlightDisplayProperties
 

Constructor Detail

OboxNode

public OboxNode(ViperViewMediator mediator)
Method Detail

resetStyle

protected void resetStyle()
Description copied from class: AttributablePPathAdapter
Called by the setDisplayProperties methods, and whenever the style needs changing.

Specified by:
resetStyle in class AttributablePPathAdapter

getBoxPts

public java.awt.geom.Point2D[] getBoxPts()
Specified by:
getBoxPts in class PBoxNode

getRightHandlePts

public java.awt.geom.Point2D[] getRightHandlePts()

getNorthHandlePts

public java.awt.geom.Point2D[] getNorthHandlePts()

getBoxWidth

public double getBoxWidth()
Can't use getWidth() since PNode already defines it

Specified by:
getBoxWidth in class PBoxNode
Returns:
the width of obox

getBoxHeight

public double getBoxHeight()
Can't use getWidth() since PNode already defines it

Specified by:
getBoxHeight in class PBoxNode
Returns:
the width of obox

setAngleInRadians

public void setAngleInRadians(double angleIn)

getAngleInRadians

public double getAngleInRadians()

setWidthAndHeight

public void setWidthAndHeight(double widthIn,
                              double heightIn)

setPath

public void setPath(BoxInformation box)
Specified by:
setPath in class PBoxNode

updateObox

public void updateObox()

getUpdatedAttribute

public java.lang.Object getUpdatedAttribute()
Description copied from interface: Attributable
synchronize the PNode with the Attribute

Specified by:
getUpdatedAttribute in interface Attributable
Returns:

setCornerRadius

public void setCornerRadius(int val)

bold

public void bold(CanvasDir dir)
Specified by:
bold in class PBoxNode

boldRightHandle

public void boldRightHandle()

boldNorthHandle

public void boldNorthHandle()

unbold

public void unbold()
Makes all bolding "blank" so it doesn't highlight

Specified by:
unbold in class PBoxNode

setCenterBolded

public void setCenterBolded(boolean bold)
Specified by:
setCenterBolded in class PBoxNode