|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.marker.AbstractMarker
com.ijchart.xychart.marker.ValueMarker
public class ValueMarker
Title: IJChart
Description: a chart library for the Java(tm) platform.
A marker that represents a single value. Markers can be added to plots to highlight specific values. Such, if the text horizontal alignment is left or center, said the text on-line on the left, otherwise to the right side of the text on-line; if the text vertical alignment is top or center, said the text above, otherwise below the line for the text.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from class com.ijchart.xychart.marker.AbstractMarker |
---|
DEFAULT_FILL_PAINT, DEFAULT_TEXT_POSITION |
Constructor Summary | |
---|---|
ValueMarker(double value)
Creates a new marker. |
|
ValueMarker(double value,
java.awt.Paint fillPaint)
Creates a new value marker. |
|
ValueMarker(double value,
java.awt.Paint fillPaint,
java.awt.Paint borderPaint,
java.awt.Stroke borderStroke,
float fillAlpha)
Creates a new value marker. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates a clone of the marker. |
boolean |
equals(java.lang.Object obj)
Tests the marker for equality with an arbitrary double. |
double |
getValue()
Returns the value. |
int |
hashCode()
Returns a hash code value for the double. |
void |
setValue(double value)
Sets the value and sends a MarkerChangeEvent to all registered listeners. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.ijchart.xychart.marker.AbstractMarker |
---|
addChangeListener, fireMarkerChanged, getBorderPaint, getBorderStroke, getFillAlpha, getFillPaint, getListeners, getMargin, getText, getTextFont, getTextHorizontalAlign, getTextPaint, getTextPosition, getTextVerticalAlign, isDrawBorder, isDrawText, isFillShape, notifyListeners, removeChangeListener, setBorderPaint, setBorderStroke, setDrawBorder, setDrawText, setFillAlpha, setFillPaint, setFillShape, setMargin, setText, setTextFont, setTextHorizontalAlign, setTextPaint, setTextPosition, setTextVerticalAlign |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueMarker(double value)
value
- double
The value.public ValueMarker(double value, java.awt.Paint fillPaint)
value
- double
The value.fillPaint
-
The fill paint (null not permitted).public ValueMarker(double value, java.awt.Paint fillPaint, java.awt.Paint borderPaint, java.awt.Stroke borderStroke, float fillAlpha)
value
- double
The value.fillPaint
-
The fill paint (null not permitted).borderPaint
-
The border paint (null permitted).borderStroke
-
The border stroke (null permitted).fillAlpha
-
The alpha transparency (must be in the range 0.0f to 1.0f).Method Detail |
---|
public double getValue()
public void setValue(double value)
MarkerChangeEvent
to all registered listeners.
value
-
The value.public int hashCode()
hashCode
in class AbstractMarker
public boolean equals(java.lang.Object obj)
equals
in class AbstractMarker
obj
- the double (null permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractMarker
java.lang.CloneNotSupportedException
- never.public java.lang.String toString()
toString
in class AbstractMarker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |