|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.model.ChartPoint
public class ChartPoint
A chart point in user/domain coordinates. A ChartPoint can have a highlight associated with it. A highlight is a semantic tag that may be interpreted by a view component and may affect the rendering.
Constructor Summary | |
---|---|
ChartPoint()
Creates a ChartPoint with x and y coordinates of 0. |
|
ChartPoint(ChartPoint source)
A copy constructor that creates a new ChartPoint instance from an existing ChartPoint. |
|
ChartPoint(double x,
double y)
Creates a ChartPoint with the supplied x and y coordinates |
|
ChartPoint(double x,
double y,
Highlight h)
Creates a ChartPoint with the supplied x and y coordinates and with the supplied Highlight |
|
ChartPoint(double x,
Positionable y)
Creates a ChartPoint using the supplied double as the x coordinate and the Positionable as the y coordinate. |
|
ChartPoint(double x,
Positionable y,
Highlight h)
Creates a ChartPoint using the supplied double for the x coordinate, and the Positionable value for the y coordinate, and also applying the supplied Highlight |
|
ChartPoint(Positionable x,
double y)
Creates a ChartPoint using the supplied Positionable object for the x coordinate, and the double value for the y coordinate |
|
ChartPoint(Positionable x,
double y,
Highlight h)
Creates a ChartPoint using the supplied Positionable object for the x coordinate, and the double value for the y coordinate, and also applying the supplied Highlight |
|
ChartPoint(Positionable x,
Positionable y)
Creates a ChartPoint using the supplied Positionable objects to determine the x and y coordinates |
|
ChartPoint(Positionable x,
Positionable y,
Highlight h)
Creates a ChartPoint using the supplied Positionables as the x and y coordinates, and applying the supplied Highlight |
Method Summary | |
---|---|
int |
compareTo(Chartable other)
Compares this chart point instance to another instance. |
boolean |
equals(Object obj)
|
Highlight |
getHighlight()
Returns the highlight applied to this chart point, if any |
String |
getName()
Returns the name of the ChartPoint instance |
Positionable |
getX()
Gets the x coordinate of the Chartable object |
Positionable |
getY()
Gets the y coordinate of the Chartable object |
int |
hashCode()
|
boolean |
isHighlight(Highlight h)
Is the highlight for this chart point the same as the supplied highlight? If the supplied highlight is null, this always returns false. |
void |
setHighlight(Highlight h)
Sets the highlight associated with this chart point, if any |
void |
setName(String name)
Specifies the name of the ChartPoint instance |
void |
setX(Positionable xPos)
Sets the x coordinate |
void |
setY(Positionable yPos)
Sets the y coordinate |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChartPoint()
public ChartPoint(double x, double y)
x
- the x coordinatey
- the y coordinatepublic ChartPoint(double x, double y, Highlight h)
x
- the x coordinatey
- the y coordinateh
- the Highlightpublic ChartPoint(Positionable x, Positionable y)
x
- the x coordinatey
- the y coordinatepublic ChartPoint(Positionable x, double y)
x
- the x coordinatey
- the y coordinatepublic ChartPoint(Positionable x, double y, Highlight h)
x
- the x coordinatey
- the y coordinateh
- the Highlightpublic ChartPoint(double x, Positionable y, Highlight h)
x
- the x coordinatey
- the y coordinateh
- the Highlightpublic ChartPoint(double x, Positionable y)
x
- the x coordinatey
- the y coordinatepublic ChartPoint(Positionable x, Positionable y, Highlight h)
x
- the x coordinatey
- the y coordinateh
- the Highlightpublic ChartPoint(ChartPoint source)
Method Detail |
---|
public Positionable getX()
getX
in interface Chartable
public Positionable getY()
getY
in interface Chartable
public void setX(Positionable xPos)
xPos
- the new value for the x coordinatepublic void setY(Positionable yPos)
yPos
- the new value for the y coordinatepublic Highlight getHighlight()
getHighlight
in interface Highlightable
public boolean isHighlight(Highlight h)
h
- the highlight to test
public void setHighlight(Highlight h)
setHighlight
in interface Highlightable
h
- the new highlightpublic int compareTo(Chartable other)
compareTo
in interface Comparable<Chartable>
public String getName()
getName
in interface Named
public void setName(String name)
setName
in interface Nameable
name
- the name of the instancepublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |