|
||||||||||
| 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.IndependentDisplayPO
com.ge.research.acuity.ui.GraphPO
Abstract presentation object that represents a Graph.
Graphs have attributes and properties about their title and their axes.
Graphs contain Dataseries, which hold the
actual information that is plotted.
| Constructor Summary | |
GraphPO(java.lang.String title)
The default constructor. |
|
| Method Summary | |
void |
addDataseries(Dataseries series)
Adds a Dataseries to the List of dataseries to be displayed in this graph.
|
void |
addXLabel(double xValue,
java.lang.String label)
Adds a label to the Map of x axis values to display labels
for the x axis point xValue |
void |
addYLabel(double yValue,
java.lang.String label)
Adds a label to the Map of y axis values to display labels
for the y axis point yValue |
boolean |
displayXGridlines()
Returns the state of the x axis gridline display flag |
boolean |
displayYGridlines()
Returns the state of the y axis gridline display flag |
java.util.List |
getDataseries()
Returns the ordered list of Dataseries to be displayed in this graph.
|
Dataseries |
getDataseries(int index)
Returns the Dataseries from the list of contained series, at the specified index The order is checked and guaranteed before attempting to find the specified index. |
double |
getMaxXValue()
Returns the max x value of all the Dataseries contained within this graph |
double |
getMaxYValue()
Returns the max y value of all the Dataseries contained within this graph |
double |
getMinXValue()
Returns the min x value of all the Dataseries contained within this graph |
double |
getMinYValue()
Returns the min y value of all the Dataseries contained within this graph |
float |
getOpacity()
Returns the opaqueness factor that gets applied to all the Dataseries contained by this graph |
java.lang.String |
getTitle()
Returns the label to be used as the title of the graph |
java.lang.String |
getXAxisTitle()
Returns the label to be used as the title of the x axis on the graph |
java.util.Map |
getXLabels()
Returns the map of x axis point values to the labels that should be used when displaying the x axis in a graph |
java.lang.String |
getYAxisTitle()
Returns the label to be used as the title of the y axis on the graph |
java.util.Map |
getYLabels()
Returns the map of y axis point values to the labels that should be used when displaying the y axis in a graph |
void |
refreshHighlightRegions()
Sets the current max plotting boundaries to any highlight region dataseries within the graph, so that they cover the current width or height of the chart. |
void |
removeDataseries()
Removes all Dataseries from the list of series displayed in this graph |
void |
removeDataseries(Dataseries series)
Removes the specified Dataseries from the list of contained series |
void |
removeDataseries(int index)
Removes the Dataseries, at the specified index, from the list of contained series |
void |
removeXLabel(double xValue)
Removes the x axis point value to label relationship in the xLabels map for the x axis point value xValue |
void |
removeXLabels()
Removes all the x axis point value to label relationships |
void |
removeYLabel(double yValue)
Removes the y axis point value to label relationship in the yLabels map for the y axis point value yValue |
void |
removeYLabels()
Removes all the y axis point value to label relationships |
protected void |
reorderDataseries()
Sets the flag indicating that the List of dataseries needs to be reordered. |
void |
setDisplayXGridlines(boolean b)
Sets the state of the x axis gridline display flag |
void |
setDisplayYGridlines(boolean b)
Sets the state of the y axis gridline display flag |
void |
setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature in PresentationObject. |
void |
setOpacity(float f)
Sets the opaqueness factor that gets applied to all the Dataseries contained by this graph |
void |
setTitle(java.lang.String title)
Sets the title of the graph |
void |
setXAxisTitle(java.lang.String title)
Sets the title of the x axis |
void |
setXLabels(java.util.Map map)
Sets the map relating x axis point values to the labels that should be used when displaying the x axis in a graph |
void |
setYAxisTitle(java.lang.String title)
Sets the title of the y axis |
void |
setYLabels(java.util.Map map)
Sets the map relating y axis point values to the labels that should be used when displaying the y axis in a graph |
| Methods inherited from class com.ge.research.acuity.ui.IndependentDisplayPO |
canBeRemoved, displayBanner, getHeight, getIdentifierTitle, getWidth, getXPos, getYPos, getZOrder, setCanBeRemoved, setDisplayBanner, setHeight, setIdentifier, setIdentifierTitle, setPos, setPos, setPos, setPos, setWidth, setXPos, setYPos, setZOrder |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIsDisplayed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphPO(java.lang.String title)
title - the graph titlePresentationObject.PresentationObject(),
setTitle(java.lang.String)| Method Detail |
public void addDataseries(Dataseries series)
List of dataseries to be displayed in this graph.
If the Dataseries is a HighlightRegionDataseries, then it sets the
region min/max values for the series, from the information about the other Dataseries in the graph.
series - the dataseries to add to the list of series to be displayed in the graphHighlightRegionDataseries.isXOrientation(),
HighlightRegionDataseries.setRegionMax(double),
HighlightRegionDataseries.setRegionMin(double)
public void addXLabel(double xValue,
java.lang.String label)
Map of x axis values to display labels
for the x axis point xValue
xValue - the value of the x axis to add a label forlabel - the label to display on the x axis at the point xValue
public void addYLabel(double yValue,
java.lang.String label)
Map of y axis values to display labels
for the y axis point yValue
yValue - the value of the y axis to add a label forlabel - the label to display on the y axis at the point yValuepublic boolean displayXGridlines()
true if x axis gridlines are to be displayed in the graph; false otherwisepublic boolean displayYGridlines()
true if y axis gridlines are to be displayed in the graph; false otherwisepublic java.util.List getDataseries()
Dataseries to be displayed in this graph.
The order is checked and guaranteed before returning the reference.
Dataseries contained by this graphcom.ge.research.acuity.ui.GraphPO#reorderDataseriesList()
public Dataseries getDataseries(int index)
throws java.lang.IndexOutOfBoundsException
index - index of the Dataseries list to extract (zero based)
java.lang.IndexOutOfBoundsException - If the index argument is negative or greater than or equal to the number of Dataseries contained by this graphcom.ge.research.acuity.ui.GraphPO#reorderDataseriesList()public double getMaxXValue()
Dataseries contained within this graph
Dataseries contained within this graphpublic double getMaxYValue()
Dataseries contained within this graph
Dataseries contained within this graphpublic double getMinXValue()
Dataseries contained within this graph
Dataseries contained within this graphpublic double getMinYValue()
Dataseries contained within this graph
Dataseries contained within this graphpublic float getOpacity()
Dataseries contained by this graph
public java.lang.String getTitle()
public java.lang.String getXAxisTitle()
public java.util.Map getXLabels()
public java.lang.String getYAxisTitle()
public java.util.Map getYLabels()
public void refreshHighlightRegions()
public void removeDataseries()
Dataseries from the list of series displayed in this graph
public void removeDataseries(Dataseries series)
series - the dataseries to remove from the list of series to display
public void removeDataseries(int index)
throws java.lang.IndexOutOfBoundsException
Dataseries, at the specified index, from the list of contained series
index - index of the dataseries list to remove (zero based)
java.lang.IndexOutOfBoundsException - If the index argument is negative or greater than or equal to the number of Dataseries contained by this graphpublic void removeXLabel(double xValue)
xValue
xValue - the x axis value for which to remove label information about from the xLabel mappublic void removeXLabels()
public void removeYLabel(double yValue)
yValue
yValue - the y axis value for which to remove label information about from the yLabel mappublic void removeYLabels()
public void setDisplayXGridlines(boolean b)
b - the value of the x axis gridline display flag.
true to set x axis gridlines visible; false otherwisepublic void setDisplayYGridlines(boolean b)
b - the value of the y axis gridline display flag.
true to set y axis gridlines visible; false otherwisepublic void setHasPresentationNature(java.lang.String string)
setHasPresentationNature in class PresentationObjectstring - the new value of presentation naturePresentationNatureConstants.isGraphType(java.lang.String)public void setOpacity(float f)
Dataseries contained by this graph
f - the new opaqueness factor to apply to all dataseries displayed in this graphpublic void setTitle(java.lang.String title)
title - the new label for the graph titlepublic void setXAxisTitle(java.lang.String title)
title - the new label for the x axis titlepublic void setXLabels(java.util.Map map)
map - the map of x axis point values to their display labelspublic void setYAxisTitle(java.lang.String title)
title - the new label for the y axis titlepublic void setYLabels(java.util.Map map)
map - the map of y axis point values to their display labelsprotected void reorderDataseries()
List of dataseries needs to be reordered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||