|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.PresentationObject
com.ge.research.acuity.ui.Dataseries
Dataseries contain Datapoints,
which contain information about cartesian coordinates to be plotted,
and some display characteristics of those coordinates.
Dataseries also contains information about the display name for the set of points,
(used in legend displays), as well as information about the color of all the points they contain.
Dataseries cannot be rendered by themselves, they must be contained within
a GraphPO object in order to be successfully rendered.
| Constructor Summary | |
Dataseries()
Calls the default constructor with null argument |
|
Dataseries(java.lang.String name)
The default constructor. |
|
| Method Summary | |
void |
addDatapoint(Datapoint dp)
Adds a Datapoint to the List of datapoints to be plotted in this dataseries |
boolean |
displayPointInformation()
Gets the flag value indicating whether or not the datapoint information of the dataseries should be made available and rendered within the graph |
protected void |
finalize()
Makes sure to dereference any parent Graph it might be linked to |
int |
getAlpha()
Returns the opaqueness component of the dataseries Color
The component value is in the range 0-255 |
int |
getBlueVal()
Returns the RGB blue value component of the dataseries Color
The component value is in the range 0-255 |
java.awt.Color |
getColor()
Returns the color to be used when rendering this dataseries. |
Datapoint |
getDatapoint(int index)
Returns the Datapoint from the list of contained datapoints, at the specified index |
java.util.List |
getDatapoints()
Returns the list of Datapoints to be plotted in this dataseries |
int |
getDatapointsCount()
Returns the number of Datapoints contained in this dataseries |
int |
getDisplayOrder()
Returns the order in which this dataseries is to be rendered within a graph |
int |
getGreenVal()
Returns the RGB green value component of the dataseries Color
The component value is in the range 0-255 |
double |
getMaxXValue()
Returns the max x value of all the Datapoints contained within this series |
double |
getMaxYValue()
Returns the max y value of all the Datapoints contained within this series |
double |
getMinXValue()
Returns the min x value of all the Datapoints contained within this series |
double |
getMinYValue()
Returns the min y value of all the Datapoints contained within this series |
protected GraphPO |
getParent()
Returns the reference to the parent graph of this series |
int |
getRedVal()
Returns the RGB red value component of the dataseries Color
The component value is in the range 0-255 |
java.lang.String |
getTitle()
Returns the label to be used as the name of the dataseries, for display in a graph legend |
void |
removeDatapoint(Datapoint dp)
Removes the specified Datapoint from the list of points |
void |
removeDatapoints()
Removes all Datapoints from the list of points of this series |
protected void |
removeParentReference()
Removes the reference to the parent graph that this series belongs to. |
void |
setAlpha(int i)
Sets the opaqueness component of the dataseries Color
The component value must in the range 0-255.
|
void |
setBlueVal(int i)
Sets the RGB blue value component of the dataseries Color
The component value must in the range 0-255.
|
void |
setColor(java.awt.Color color)
Sets the color component values, for the dataseries, from the argument color |
void |
setColor(int red,
int green,
int blue)
Sets the RGB color component values, for the dataseries |
void |
setColor(int red,
int green,
int blue,
int alpha)
Sets the RGB color component values and opaqueness value, for the dataseries |
void |
setDatapoints(java.util.List list)
Sets the list of Datapoints to be plotted by this dataseries |
void |
setDisplayOrder(int index)
Sets the order in which this dataseries is to be rendered within a graph |
void |
setDisplayPointInformation(boolean value)
Sets the flag indicating whether or not to make available and render within the graph the datapoint information of the dataseries |
void |
setGreenVal(int i)
Sets the RGB green value component of the dataseries Color
The component value must in the range 0-255.
|
void |
setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature PresentationObject. |
protected void |
setParentReference(GraphPO parent)
Sets the reference to the parent graph that this series belongs to. |
void |
setRedVal(int i)
Sets the RGB red value component of the dataseries Color
The component value must in the range 0-255.
|
void |
setTitle(java.lang.String title)
Sets the name of the dataseries |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIdentifier, setIsDisplayed |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Dataseries()
null argument
public Dataseries(java.lang.String name)
PresentationNatureConstants.POINT_LINE
name - the dataseries namePresentationObject.PresentationObject(),
PresentationObject.setHasPresentationNature(java.lang.String)| Method Detail |
public void addDatapoint(Datapoint dp)
List of datapoints to be plotted in this dataseries
dp - the datapoint to add to the list of points to be plotted in the dataseriespublic boolean displayPointInformation()
true if the datapoint information should be made available and rendered;
false if the datapoint information should not be made avaialble and rendered.public int getAlpha()
Color
The component value is in the range 0-255
public int getBlueVal()
Color
The component value is in the range 0-255
public java.awt.Color getColor()
public Datapoint getDatapoint(int index)
throws java.lang.IndexOutOfBoundsException,
java.lang.ClassCastException
index - index of the Dataspoints list to extract (zero based)
java.lang.IndexOutOfBoundsException - If the index argument is negative or greater than or equal to the number of Datapoints contained by this Dataseries
ClassCastExceptionException - If the elemnent at the index is not of type Datapoint
java.lang.ClassCastExceptionpublic java.util.List getDatapoints()
Datapoints to be plotted in this dataseries
Datapoints contained by this dataseriespublic int getDatapointsCount()
Datapoints contained in this dataseries
public int getDisplayOrder()
public int getGreenVal()
Color
The component value is in the range 0-255
public double getMaxXValue()
Datapoints contained within this series
Datapoints contained within this seriespublic double getMaxYValue()
Datapoints contained within this series
Datapoints contained within this seriespublic double getMinXValue()
Datapoints contained within this series
Datapoints contained within this seriespublic double getMinYValue()
Datapoints contained within this series
Datapoints contained within this seriespublic int getRedVal()
Color
The component value is in the range 0-255
public java.lang.String getTitle()
public void removeDatapoint(Datapoint dp)
dp - the datapoint to remove from the list of points to plotpublic void removeDatapoints()
Datapoints from the list of points of this series
public void setAlpha(int i)
Color
The component value must in the range 0-255.
Argument values less than zero will set the opaqueness to zero
Argument values greater than 255 will set the opaqueness to 255
i - the opaqueness component of the dataseries colorpublic void setBlueVal(int i)
Color
The component value must in the range 0-255.
Argument values less than zero will set the blue component value to zero
Argument values greater than 255 will set the blue component value to 255
i - the RGB blue value component of the dataseries colorpublic void setColor(java.awt.Color color)
color - the new color for the dataseriessetColor(int, int, int, int)
public void setColor(int red,
int green,
int blue)
red - the new RGB red value for the dataseries colorgreen - the new RGB green value for the dataseries colorblue - the new RGB blue value for the dataseries colorsetRedVal(int),
setGreenVal(int),
setBlueVal(int)
public void setColor(int red,
int green,
int blue,
int alpha)
red - the new RGB red value for the dataseries colorgreen - the new RGB green value for the dataseries colorblue - the new RGB blue value for the dataseries coloralpha - the new opaqueness value for the dataseries colorsetColor(int, int, int),
setAlpha(int)public void setDatapoints(java.util.List list)
Datapoints to be plotted by this dataseries
list - the list of datapoints to be plotted in this seriespublic void setDisplayPointInformation(boolean value)
value - true if the datapoint information should be made available and rendered;
false if the datapoint information should not be made avaialble and renderedpublic void setDisplayOrder(int index)
index - the order in which this dataseries is to be rendered within a graphpublic void setGreenVal(int i)
Color
The component value must in the range 0-255.
Argument values less than zero will set the green component value to zero
Argument values greater than 255 will set the green component value to 255
i - the RGB green value component of the dataseries colorpublic void setHasPresentationNature(java.lang.String string)
setHasPresentationNature in class PresentationObjectstring - the new value of presentation naturePresentationNatureConstants.isDataseriesType(java.lang.String)public void setRedVal(int i)
Color
The component value must in the range 0-255.
Argument values less than zero will set the red component value to zero
Argument values greater than 255 will set the red component value to 255
i - the RGB red value component of the dataseries colorpublic void setTitle(java.lang.String title)
title - the new label for the dataseries name
protected void finalize()
throws java.lang.Throwable
java.lang.Throwableprotected final GraphPO getParent()
protected final void removeParentReference()
protected final void setParentReference(GraphPO parent)
parent - the graph that this series belongs to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||