edu.umd.cfar.lamp.viper.gui.chronology
Class IntegerWidthSegmentFactory

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.chronology.AbstractAttributeSegmentFactory
      extended byedu.umd.cfar.lamp.viper.gui.chronology.IntegerWidthSegmentFactory

public class IntegerWidthSegmentFactory
extends AbstractAttributeSegmentFactory


Nested Class Summary
 class IntegerWidthSegmentFactory.WidthSegment
           
 
Field Summary
 
Fields inherited from class edu.umd.cfar.lamp.viper.gui.chronology.AbstractAttributeSegmentFactory
med, tqe
 
Constructor Summary
IntegerWidthSegmentFactory()
           
 
Method Summary
 double getPreferredHeight()
           
 boolean isCentered()
          Returns true if the boxes should be centered on the line.
 edu.umd.cs.piccolo.PNode makeSegment(Interval i)
          Makes a segment, whose width is a function of an integer.
 void setCentered(boolean centered)
          Set to false to align the boxes to the baseline of the timeline holder, and true to center the boxes in the middle.
 
Methods inherited from class edu.umd.cfar.lamp.viper.gui.chronology.AbstractAttributeSegmentFactory
setTimeLine, setViewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerWidthSegmentFactory

public IntegerWidthSegmentFactory()
Method Detail

makeSegment

public edu.umd.cs.piccolo.PNode makeSegment(Interval i)
Makes a segment, whose width is a function of an integer.

Parameters:
i - a DynamicValue containing an Integer to make a line for
Returns:
the new segment

isCentered

public boolean isCentered()
Returns true if the boxes should be centered on the line.

Returns:
boolean

setCentered

public void setCentered(boolean centered)
Set to false to align the boxes to the baseline of the timeline holder, and true to center the boxes in the middle.

Parameters:
centered - true centers the bars.

getPreferredHeight

public double getPreferredHeight()