org.jfree.chart.plot

Class IntervalMarker

public class IntervalMarker extends Marker implements Cloneable, Serializable

Represents an interval to be highlighted in some way.
Constructor Summary
IntervalMarker(double start, double end)
Constructs an interval marker.
IntervalMarker(double start, double end, Paint paint)
Creates a new interval marker with the specified range and fill paint.
IntervalMarker(double start, double end, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Constructs an interval marker.
Method Summary
Objectclone()
Returns a clone of the marker.
booleanequals(Object obj)
Tests the marker for equality with an arbitrary object.
doublegetEndValue()
Returns the end value for the interval.
GradientPaintTransformergetGradientPaintTransformer()
Returns the gradient paint transformer.
doublegetStartValue()
Returns the start value for the interval.
voidsetEndValue(double value)
Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.
voidsetGradientPaintTransformer(GradientPaintTransformer transformer)
Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.
voidsetStartValue(double value)
Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.

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, Paint paint)
Creates a new interval marker with the specified range and fill paint. The outline paint and stroke default to null.

Parameters: start the lower bound of the interval. end the upper bound of the interval. paint the fill paint (null not permitted).

Since: 1.0.9

IntervalMarker

public IntervalMarker(double start, double end, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Constructs an interval marker.

Parameters: start the start of the interval. end the end of the interval. paint the paint (null not permitted). stroke the stroke (null not permitted). outlinePaint the outline paint. outlineStroke the outline stroke. alpha the alpha transparency.

Method Detail

clone

public Object clone()
Returns a clone of the marker.

Returns: A clone.

Throws: CloneNotSupportedException Not thrown by this class, but the exception is declared for the use of subclasses.

equals

public boolean equals(Object obj)
Tests the marker for equality with an arbitrary object.

Parameters: obj the object (null permitted).

Returns: A boolean.

getEndValue

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

Returns: The end value.

getGradientPaintTransformer

public GradientPaintTransformer getGradientPaintTransformer()
Returns the gradient paint transformer.

Returns: The gradient paint transformer (possibly null).

getStartValue

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

Returns: The start value.

setEndValue

public void setEndValue(double value)
Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.

Parameters: value the value.

Since: 1.0.3

setGradientPaintTransformer

public void setGradientPaintTransformer(GradientPaintTransformer transformer)
Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.

Parameters: transformer the transformer (null permitted).

setStartValue

public void setStartValue(double value)
Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.

Parameters: value the value.

Since: 1.0.3