public class ValueMarker extends Marker
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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. |
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
public ValueMarker(double value)
value
- the value.public ValueMarker(double value, Paint paint, Stroke stroke)
value
- the value.paint
- the paint (null
not permitted).stroke
- the stroke (null
not permitted).public ValueMarker(double value, Paint paint, Stroke stroke, Paint outlinePaint, 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).public double getValue()
setValue(double)
public void setValue(double value)
MarkerChangeEvent
to
all registered listeners.value
- the value.getValue()
public boolean equals(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
.Jas4pp 1.5 © Java Analysis Studio for Particle Physics