edu.umd.cfar.lamp.viper.gui.chronology
Class BboxSegmentFactory.BboxSegment

java.lang.Object
  extended byedu.umd.cs.piccolo.PNode
      extended byedu.umd.cfar.lamp.viper.gui.chronology.BboxSegmentFactory.BboxSegment
All Implemented Interfaces:
java.lang.Cloneable, java.awt.print.Printable, java.io.Serializable
Enclosing class:
BboxSegmentFactory

public static class BboxSegmentFactory.BboxSegment
extends edu.umd.cs.piccolo.PNode

See Also:
Serialized Form

Field Summary
 
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
BboxSegmentFactory.BboxSegment(java.awt.Color color, double size, double offset)
          Will create a box with color paint and with height (boxheight * size) starting at (boxheight * offset).
 
Method Summary
 java.awt.geom.Rectangle2D getBox()
           
 boolean intersects(java.awt.geom.Rectangle2D aBounds)
           
 void paint(edu.umd.cs.piccolo.util.PPaintContext aPaintContext)
           
 boolean setBounds(double x, double y, double width, double height)
           
 
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, endResizeBounds, 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, paramString, 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, startResizeBounds, toImage, toImage, toString, transformBy, translate, validateFullBounds, validateFullPaint
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BboxSegmentFactory.BboxSegment

public BboxSegmentFactory.BboxSegment(java.awt.Color color,
                                      double size,
                                      double offset)
Will create a box with color paint and with height (boxheight * size) starting at (boxheight * offset).

Parameters:
color - the color of the box
size - the width of the box
offset - the offset of the box into the line
Method Detail

getBox

public java.awt.geom.Rectangle2D getBox()

setBounds

public boolean setBounds(double x,
                         double y,
                         double width,
                         double height)

intersects

public boolean intersects(java.awt.geom.Rectangle2D aBounds)

paint

public void paint(edu.umd.cs.piccolo.util.PPaintContext aPaintContext)