org.jfree.chart.plot
Class IntervalMarker
- Cloneable, Serializable
implements Cloneable, Serializable
Represents an interval to be highlighted in some way.
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.
|
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 |
IntervalMarker
public IntervalMarker(double start,
double end)
Constructs an interval marker.
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
.
start
- the lower bound of the interval.end
- the upper bound of the interval.paint
- the fill paint (null
not permitted).
IntervalMarker
public IntervalMarker(double start,
double end,
Paint paint,
Stroke stroke,
Paint outlinePaint,
Stroke outlineStroke,
float alpha)
Constructs an interval marker.
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.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the marker.
- clone in interface Marker
equals
public boolean equals(Object obj)
Tests the marker for equality with an arbitrary object.
- equals in interface Marker
obj
- the object (null
permitted).
getEndValue
public double getEndValue()
Returns the end value for the interval.
getGradientPaintTransformer
public GradientPaintTransformer getGradientPaintTransformer()
Returns the gradient paint transformer.
- The gradient paint transformer (possibly
null
).
getStartValue
public double getStartValue()
Returns the start value for the interval.
setEndValue
public void setEndValue(double value)
Sets the end value for the marker and sends a
MarkerChangeEvent
to all registered listeners.
setGradientPaintTransformer
public void setGradientPaintTransformer(GradientPaintTransformer transformer)
Sets the gradient paint transformer and sends a
MarkerChangeEvent
to all registered listeners.
transformer
- the transformer (null
permitted).