|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.plot.Marker
org.jfree.chart.plot.ValueMarker
public class ValueMarker
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,
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 | |
|---|---|
boolean |
equals(java.lang.Object obj)
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 a MarkerChangeEvent to
all registered listeners. |
| Methods inherited from class org.jfree.chart.plot.Marker |
|---|
addChangeListener, clone, getAlpha, getLabel, getLabelAnchor, getLabelFont, getLabelOffset, getLabelOffsetType, getLabelPaint, getLabelTextAnchor, getListeners, getOutlinePaint, getOutlineStroke, getPaint, getStroke, notifyListeners, removeChangeListener, setAlpha, setLabel, setLabelAnchor, setLabelFont, setLabelOffset, setLabelOffsetType, setLabelPaint, setLabelTextAnchor, setOutlinePaint, setOutlineStroke, setPaint, setStroke |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueMarker(double value)
value - the value.
public ValueMarker(double value,
java.awt.Paint paint,
java.awt.Stroke stroke)
value - the value.paint - the paint (null not permitted).stroke - the stroke (null not permitted).
public ValueMarker(double value,
java.awt.Paint paint,
java.awt.Stroke stroke,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
float alpha)
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 Detail |
|---|
public double getValue()
setValue(double)public void setValue(double value)
MarkerChangeEvent to
all registered listeners.
value - the value.getValue()public boolean equals(java.lang.Object obj)
true if:
obj is not null;obj is an instance of ValueMarker;obj has the same value as this marker;super.equals(obj) returns true.
equals in class Markerobj - the object (null permitted).
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||