java.lang.Object
org.jfree.chart.plot.Marker
org.jfree.chart.plot.ValueMarker
- All Implemented Interfaces:
Serializable
,Cloneable
A marker that represents a single value. Markers can be added to plots to
highlight specific values.
- See Also:
-
Constructor Summary
ConstructorDescriptionValueMarker
(double value) Creates a new marker.ValueMarker
(double value, Paint paint, Stroke stroke) 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 TypeMethodDescriptionboolean
Tests this marker for equality with an arbitrary object.double
getValue()
Returns the value.void
setValue
(double value) Sets the value for the marker and sends aMarkerChangeEvent
to all registered listeners.Methods inherited from class org.jfree.chart.plot.Marker
addChangeListener, clone, 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
-
ValueMarker
public ValueMarker(double value) Creates a new marker.- Parameters:
value
- the value.
-
ValueMarker
Creates a new marker.- Parameters:
value
- the value.paint
- the paint (null
not permitted).stroke
- the stroke (null
not permitted).
-
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 (in the range 0.0f to 1.0f).
-
-
Method Details
-
getValue
public double getValue()Returns the value.- Returns:
- The value.
- See Also:
-
setValue
public void setValue(double value) Sets the value for the marker and sends aMarkerChangeEvent
to all registered listeners.- Parameters:
value
- the value.- See Also:
-
equals
Tests this marker for equality with an arbitrary object. This method returnstrue
if:obj
is notnull
;obj
is an instance ofValueMarker
;obj
has the same value as this marker;super.equals(obj)
returnstrue
.
-