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
public class IntervalMarker extends Marker implements Cloneable, Serializable
Represents an interval to be highlighted in some way.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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
Modifier and Type Method Description Object
clone()
Returns a clone of the marker.double
getEndValue()
Returns the end value for the interval.double
getStartValue()
Returns the start value for the interval.Methods inherited from class org.jfree.chart.plot.Marker
equals, getAlpha, getLabel, getLabelAnchor, getLabelFont, getLabelOffset, getLabelPaint, getLabelTextAnchor, getOutlinePaint, getOutlineStroke, getPaint, getStroke, setAlpha, setLabel, setLabelAnchor, setLabelFont, setLabelOffset, 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
-
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.
-
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.
-