org.jfree.chart.plot

Class IntervalMarker

Implemented Interfaces:
Cloneable, Serializable

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, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Constructs an interval marker.

Method Summary

Object
clone()
Returns a clone of the marker.
boolean
equals(Object obj)
Tests the marker for equality with an arbitrary object.
double
getEndValue()
Returns the end value for the interval.
GradientPaintTransformer
getGradientPaintTransformer()
Returns the gradient paint transformer.
double
getStartValue()
Returns the start value for the interval.
void
setEndValue(double value)
Sets the end value for the marker and sends a MarkerChangeEvent to all registered listeners.
void
setGradientPaintTransformer(GradientPaintTransformer transformer)
Sets the gradient paint transformer and sends a MarkerChangeEvent to all registered listeners.
void
setStartValue(double value)
Sets the start value for the marker and sends a MarkerChangeEvent to all registered listeners.

Methods inherited from class org.jfree.chart.plot.Marker

addChangeListener, clone, equals, getAlpha, getLabel, getLabelAnchor, getLabelFont, getLabelOffset, getLabelOffsetType, getLabelPaint, getLabelTextAnchor, getListeners, getOutlinePaint, getOutlineStroke, getPaint, getStroke, notifyListeners, removeChangeListener, setAlpha, setLabel, setLabelAnchor, setLabelFont, setLabelOffset, setLabelOffsetType, setLabelPaint, setLabelTextAnchor, setOutlinePaint, setOutlineStroke, setPaint, setStroke

Constructor Details

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,
                      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.
stroke - the stroke.
outlinePaint - the outline paint.
outlineStroke - the outline stroke.
alpha - the alpha transparency.

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone of the marker.
Overrides:
clone in interface Marker
Returns:
A clone.

equals

public boolean equals(Object obj)
Tests the marker for equality with an arbitrary object.
Overrides:
equals in interface Marker
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