org.jfree.chart.plot

Class ValueMarker

public class ValueMarker extends Marker

A marker that represents a single value. Markers can be added to plots to highlight specific values.
Constructor Summary
ValueMarker(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
booleanequals(Object obj)
Tests this marker for equality with an arbitrary object.
doublegetValue()
Returns the value.
voidsetValue(double value)
Sets the value for the marker and sends a MarkerChangeEvent to all registered listeners.

Constructor Detail

ValueMarker

public ValueMarker(double value)
Creates a new marker.

Parameters: value the value.

ValueMarker

public ValueMarker(double value, Paint paint, Stroke stroke)
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.

Method Detail

equals

public boolean equals(Object obj)
Tests this marker for equality with an arbitrary object. This method returns true if:

Parameters: obj the object (null permitted).

Returns: A boolean.

getValue

public double getValue()
Returns the value.

Returns: The value.

setValue

public void setValue(double value)
Sets the value for the marker and sends a MarkerChangeEvent to all registered listeners.

Parameters: value the value.

Since: 1.0.3