Package org.jfree.chart.plot
Class ValueMarker
- java.lang.Object
-
- org.jfree.chart.plot.Marker
-
- org.jfree.chart.plot.ValueMarker
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ValueMarker extends Marker
A marker that represents a single value. Markers can be added to plots to highlight specific values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private doublevalueThe value.
-
Constructor Summary
Constructors Constructor Description ValueMarker(double value)Creates a new marker.ValueMarker(double value, java.awt.Paint paint, java.awt.Stroke stroke)Creates a new marker.ValueMarker(double value, java.awt.Paint paint, java.awt.Stroke stroke, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, float alpha)Creates a new value marker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object other)Ensures symmetry between super/subclass implementations of equals.booleanequals(java.lang.Object obj)Tests this marker for equality with an arbitrary object.doublegetValue()Returns the value.inthashCode()voidsetValue(double value)Sets the value for the marker and sends aMarkerChangeEventto 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 Detail
-
ValueMarker
public ValueMarker(double value)
Creates a new marker.- Parameters:
value- the value.
-
ValueMarker
public ValueMarker(double value, java.awt.Paint paint, java.awt.Stroke stroke)Creates a new marker.- Parameters:
value- the value.paint- the paint (nullnot permitted).stroke- the stroke (nullnot permitted).
-
ValueMarker
public ValueMarker(double value, java.awt.Paint paint, java.awt.Stroke stroke, java.awt.Paint outlinePaint, java.awt.Stroke outlineStroke, float alpha)Creates a new value marker.- Parameters:
value- the value.paint- the paint (nullnot permitted).stroke- the stroke (nullnot permitted).outlinePaint- the outline paint (nullpermitted).outlineStroke- the outline stroke (nullpermitted).alpha- the alpha transparency (in the range 0.0f to 1.0f).
-
-
Method Detail
-
getValue
public double getValue()
Returns the value.- Returns:
- The value.
- See Also:
setValue(double)
-
setValue
public void setValue(double value)
Sets the value for the marker and sends aMarkerChangeEventto all registered listeners.- Parameters:
value- the value.- See Also:
getValue()
-
equals
public boolean equals(java.lang.Object obj)
Tests this marker for equality with an arbitrary object. This method returnstrueif:objis notnull;objis an instance ofValueMarker;objhas the same value as this marker;super.equals(obj)returnstrue.
-
canEqual
public boolean canEqual(java.lang.Object other)
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.
-
-