de.jaret.util.ui.timebars.model
Class PPSInterval

java.lang.Object
  extended by de.jaret.util.misc.PropertyObservableBase
      extended by de.jaret.util.date.IntervalImpl
          extended by de.jaret.util.ui.timebars.model.PPSInterval
All Implemented Interfaces:
de.jaret.util.date.Interval, de.jaret.util.misc.PropertyObservable, java.beans.PropertyChangeListener, java.util.EventListener

public class PPSInterval
extends de.jaret.util.date.IntervalImpl

Special interval for holding a pps value in the xScalePPSInterval row.

Version:
$Id: PPSInterval.java 836 2009-02-14 21:24:39Z kliem $
Author:
kliem

Field Summary
 
Fields inherited from class de.jaret.util.date.IntervalImpl
_begin, _end
 
Fields inherited from class de.jaret.util.misc.PropertyObservableBase
_propertyChangeSupport
 
Fields inherited from interface de.jaret.util.date.Interval
PROP_BEGIN, PROP_END
 
Constructor Summary
PPSInterval(double pps)
          Construct.
 
Method Summary
 int getBreakDisplayWidth()
          Retrieve the width that should be used if this pps interval denotes a break in the timeline.
 double getPps()
          Retrieve the pps value.
 boolean isBreak()
          Check whether the pps interval should cause a break in the timeline.
 void setBreak(boolean isBreak)
          Set whether the pps interval will be rendered as a break in the timeline.
 void setBreakDisplayWidth(int breakDisplayWidth)
          Set the width that should be used if the pps interval denotes a break in the timescale.
 void setPps(double pps)
          Set the pps value.
 java.lang.String toString()
           Simply output the pps value for displaying purposes.
 
Methods inherited from class de.jaret.util.date.IntervalImpl
contains, contains, containsNonIncluding, containsStatic, getBegin, getEnd, getSeconds, intersect, intersectNonIncluding, intersects, propertyChange, setBegin, setEnd
 
Methods inherited from class de.jaret.util.misc.PropertyObservableBase
addPropertyChangeListener, firePropertyChange, isRealModification, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.jaret.util.misc.PropertyObservable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

PPSInterval

public PPSInterval(double pps)
Construct.

Parameters:
pps - pps value
Method Detail

getPps

public double getPps()
Retrieve the pps value.

Returns:
pps value

setPps

public void setPps(double pps)
Set the pps value.

Parameters:
pps - pps value

toString

public java.lang.String toString()
Simply output the pps value for displaying purposes.

Overrides:
toString in class de.jaret.util.date.IntervalImpl

isBreak

public boolean isBreak()
Check whether the pps interval should cause a break in the timeline.

Returns:
true if this pps interval denotes a break in the timeline

setBreak

public void setBreak(boolean isBreak)
Set whether the pps interval will be rendered as a break in the timeline.

Parameters:
isBreak - true for rendering as a break in the timeline

getBreakDisplayWidth

public int getBreakDisplayWidth()
Retrieve the width that should be used if this pps interval denotes a break in the timeline.

Returns:
the width in pixel

setBreakDisplayWidth

public void setBreakDisplayWidth(int breakDisplayWidth)
Set the width that should be used if the pps interval denotes a break in the timescale.

Parameters:
breakDisplayWidth - width in pixel


Copyright © 2012. All Rights Reserved.