org.jfree.chart
Class IntervalMarker

java.lang.Object
  |
  +--org.jfree.chart.Marker
        |
        +--org.jfree.chart.IntervalMarker
All Implemented Interfaces:
java.io.Serializable

public class IntervalMarker
extends Marker
implements java.io.Serializable

Represents an interval to be highlighted in some way.

Author:
David Gilbert
See Also:
Serialized Form

Constructor Summary
IntervalMarker(double start, double end)
          Constructs an interval marker.
IntervalMarker(double start, double end, java.lang.String label, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, java.awt.Paint paint, float alpha)
          Constructs an interval marker.
 
Method Summary
 double getEndValue()
          Returns the end value for the interval.
 java.lang.String getLabel()
          Returns the label for the interval (possibly null).
 double getStartValue()
          Returns the start value for the interval.
 
Methods inherited from class org.jfree.chart.Marker
getAlpha, getOutlinePaint, getOutlineStroke, getPaint, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalMarker

public IntervalMarker(double start,
                      double end)
Constructs an interval marker.

Parameters:
start - the start of the interval.
end - the end of the interval.

IntervalMarker

public IntervalMarker(double start,
                      double end,
                      java.lang.String label,
                      java.awt.Paint outlinePaint,
                      java.awt.Stroke outlineStroke,
                      java.awt.Paint paint,
                      float alpha)
Constructs an interval marker.

Parameters:
start - the start of the interval.
end - the end of the interval.
label - the interval label (null permitted).
outlinePaint - the outline paint.
outlineStroke - the outline stroke.
paint - the fill paint.
alpha - the alpha transparency.
Method Detail

getStartValue

public double getStartValue()
Returns the start value for the interval.

Returns:
the start value.

getEndValue

public double getEndValue()
Returns the end value for the interval.

Returns:
the end value.

getLabel

public java.lang.String getLabel()
Returns the label for the interval (possibly null).

Returns:
the label.