Package org.jfree.chart.plot
Class IntervalMarker
java.lang.Object
org.jfree.chart.plot.Marker
org.jfree.chart.plot.IntervalMarker
- All Implemented Interfaces:
Serializable,Cloneable
Represents an interval to be highlighted in some way.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalMarker(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
Modifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.clone()Returns a clone of the marker.booleanTests the marker for equality with an arbitrary object.doubleReturns the end value for the interval.Returns the gradient paint transformer.doubleReturns the start value for the interval.inthashCode()voidsetEndValue(double value) Sets the end value for the marker and sends aMarkerChangeEventto all registered listeners.voidsetGradientPaintTransformer(GradientPaintTransformer transformer) Sets the gradient paint transformer and sends aMarkerChangeEventto all registered listeners.voidsetStartValue(double value) Sets the start value for the marker and sends aMarkerChangeEventto all registered listeners.Methods inherited from class org.jfree.chart.plot.Marker
addChangeListener, getAlpha, getLabel, getLabelAnchor, getLabelBackgroundColor, getLabelFont, getLabelOffset, getLabelOffsetType, getLabelPaint, getLabelTextAnchor, getListeners, getOutlinePaint, getOutlineStroke, getPaint, getStroke, notifyListeners, removeChangeListener, setAlpha, setLabel, setLabelAnchor, setLabelBackgroundColor, setLabelFont, setLabelOffset, setLabelOffsetType, setLabelPaint, setLabelTextAnchor, setOutlinePaint, setOutlineStroke, setPaint, setStroke
-
Constructor Details
-
IntervalMarker
Constructs an interval marker.- Parameters:
start- the start of the interval.end- the end of the interval.
-
IntervalMarker
Creates a new interval marker with the specified range and fill paint. The outline paint and stroke default tonull.- Parameters:
start- the lower bound of the interval.end- the upper bound of the interval.paint- the fill paint (nullnot permitted).
-
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 (nullnot permitted).stroke- the stroke (nullnot permitted).outlinePaint- the outline paint.outlineStroke- the outline stroke.alpha- the alpha transparency.
-
-
Method Details
-
getStartValue
Returns the start value for the interval.- Returns:
- The start value.
-
setStartValue
Sets the start value for the marker and sends aMarkerChangeEventto all registered listeners.- Parameters:
value- the value.
-
getEndValue
Returns the end value for the interval.- Returns:
- The end value.
-
setEndValue
Sets the end value for the marker and sends aMarkerChangeEventto all registered listeners.- Parameters:
value- the value.
-
getGradientPaintTransformer
Returns the gradient paint transformer.- Returns:
- The gradient paint transformer (possibly
null).
-
setGradientPaintTransformer
Sets the gradient paint transformer and sends aMarkerChangeEventto all registered listeners.- Parameters:
transformer- the transformer (nullpermitted).
-
equals
Tests the marker for equality with an arbitrary object. -
canEqual
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance. -
hashCode
-
clone
Returns a clone of the marker.- Overrides:
clonein classMarker- Returns:
- A clone.
- Throws:
CloneNotSupportedException- Not thrown by this class, but the exception is declared for the use of subclasses.
-