Package org.jfree.chart.plot
Class ValueMarker
java.lang.Object
org.jfree.chart.plot.Marker
org.jfree.chart.plot.ValueMarker
- All Implemented Interfaces:
Serializable
,Cloneable
public class ValueMarker extends Marker
A marker that represents a single fixed value.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ValueMarker(double value)
Creates a new marker.ValueMarker(double value, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Creates a new value marker. -
Method Summary
Modifier and Type Method Description double
getValue()
Returns the value.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
-
ValueMarker
public ValueMarker(double value)Creates a new marker.- Parameters:
value
- the value.
-
ValueMarker
public ValueMarker(double value, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)Creates a new value marker.- Parameters:
value
- the value.paint
- the paint (null
not permitted).stroke
- the stroke (null
not permitted).outlinePaint
- the outline paint (null
permitted).outlineStroke
- the outline stroke (null
permitted).alpha
- the alpha transparency.
-
-
Method Details
-
getValue
public double getValue()Returns the value.- Returns:
- the value.
-