|
||||||||||
| 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
com.ge.research.acuity.ui.HighlightRegionDataseries
This class describes and encapsulates all the information about a region of a graph
that should be decorated with an opaque colored area. The region can be defined as
a single Datapoint, with values for the loThreshold and hiThreshold values along the axis of orientation,
and the min and max values of the opposite axis.
Then using a simple "bar" to represent the Datapoint, the region described should appear "highlighted".
The HighlightRegionDataseries is produced as the last Dataseries of the GraphPO,
so that it is rendered on top of all other Dataseries within the graph, and so that the min and max values for the graph axes are known.
| Field Summary |
| Fields inherited from interface com.ge.research.acuity.ui.HighlightRegion |
DEFAULT_HIGHLIGHT_COLOR |
| Constructor Summary | |
HighlightRegionDataseries()
The default constructor. |
|
| Method Summary | |
void |
disableInvalidThresholds()
A highlight region can have either range thresholds or a discrete value, but not both. |
java.lang.Object |
getAppliesTo()
Gets the appliesTo reference for the highlight region.
|
java.lang.String |
getHasDiscreteValue()
Returns null. |
double |
getHiThreshold()
Gets the upper threshold value for the highlight region on the axis of orientation. |
double |
getLoThreshold()
Gets the lower threshold value for the highlight region on the axis of orientation. |
java.lang.String |
getName()
Returns the highlight region identifier. |
protected boolean |
isXOrientation()
Tells if the highlight region is oriented for the x axis or not. |
protected boolean |
isYOrientation()
Tells if the highlight region is oriented for the y axis or not. |
void |
setAppliesTo(java.lang.Object appliesTo)
Sets the appliesTo reference for the highlight region.
|
void |
setDisplayPointInformation(boolean value)
Overrides the setDisplayPointInformation method in Dataseries. |
void |
setHasDiscreteValue(java.lang.String discVal)
This method does nothing, since only range value highlight regions can be rendered within a graph, single value regions are meaningless. |
void |
setHasPresentationNature(java.lang.String string)
Overrides the setHasPresentationNature method in Dataseries. |
void |
setHiThreshold(double hiVal)
Sets the upper threshold value for the highlight region on the axis of orientation. |
void |
setLoThreshold(double loVal)
Sets the lower threshold value for the highlight region on the axis of orientation. |
void |
setName(java.lang.String name)
Sets the highlight region identifier |
protected void |
setRegionMax(double maxVal)
Sets the max value for the highlight region on the opposite axis of orientation. |
protected void |
setRegionMin(double minVal)
Sets the min value for the highlight region on the opposite axis of orientation. |
void |
setTitle(java.lang.String title)
Overrides the setTitle method in Dataseries. |
protected void |
setupDatapoint()
Creates the Datapoint for the Dataseries. |
| Methods inherited from class com.ge.research.acuity.ui.Dataseries |
addDatapoint, displayPointInformation, finalize, getAlpha, getBlueVal, getColor, getDatapoint, getDatapoints, getDatapointsCount, getDisplayOrder, getGreenVal, getMaxXValue, getMaxYValue, getMinXValue, getMinYValue, getParent, getRedVal, getTitle, removeDatapoint, removeDatapoints, removeParentReference, setAlpha, setBlueVal, setColor, setColor, setColor, setDatapoints, setDisplayOrder, setGreenVal, setParentReference, setRedVal |
| 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 |
| Methods inherited from interface com.ge.research.acuity.ui.HighlightRegion |
getAlpha, getBlueVal, getColor, getGreenVal, getRedVal, isDisplayed, setAlpha, setBlueVal, setColor, setColor, setColor, setGreenVal, setIsDisplayed, setRedVal |
| Constructor Detail |
public HighlightRegionDataseries()
PresentationNatureConstants.VBAR.
Sets the default color to HighlightRegion.DEFAULT_HIGHLIGHT_COLOR.
Sets the dataseries title to the class name.
Sets the editability for presentation nature to false.
Sets the editability for dataseries title to false.
Sets the editability for dataseries display order to false.
Dataseries.Dataseries(),
Dataseries.setHasPresentationNature(java.lang.String),
Dataseries.setColor(java.awt.Color),
PresentationObject.setEditability(java.lang.String, boolean),
HighlightRegion.DEFAULT_HIGHLIGHT_COLOR,
PresentationNatureConstants.VBAR,
PresentationParameterConstants.NATURE,
PresentationParameterConstants.TITLE,
PresentationParameterConstants.DISPLAYORDER,
PresentationParameterConstants.DATASERIES_POINTS_DISPLAY_INFO| Method Detail |
public void disableInvalidThresholds()
HighlightRegion
disableInvalidThresholds in interface HighlightRegionpublic java.lang.Object getAppliesTo()
appliesTo reference for the highlight region.
The highlight region is associated with either the x or y axis.
getAppliesTo in interface HighlightRegionpublic java.lang.String getHasDiscreteValue()
null. Only range thresholds are valid for graph highlight regions.
getHasDiscreteValue in interface HighlightRegionnullpublic double getHiThreshold()
getHiThreshold in interface HighlightRegionpublic double getLoThreshold()
getLoThreshold in interface HighlightRegionpublic java.lang.String getName()
HighlightRegion
getName in interface HighlightRegionpublic void setAppliesTo(java.lang.Object appliesTo)
appliesTo reference for the highlight region.
Associates the highlight region with either the x or y axis.
If the appliesTo argument is not a valid flag value,
then the appliesTo flag is not changed.
setAppliesTo in interface HighlightRegionappliesTo - the value of the appliesTo reference for the highlight region. Orients the highlight region with either the x or y axisPresentationParameterConstants.HIGHLIGHTREGION_APPLIESTO_XAXIS,
PresentationParameterConstants.HIGHLIGHTREGION_APPLIESTO_YAXISpublic void setHasDiscreteValue(java.lang.String discVal)
setHasDiscreteValue in interface HighlightRegiondiscVal - IGNOREDpublic final void setHasPresentationNature(java.lang.String string)
PresentationNatureConstants.VBAR, so this method does nothing.
setHasPresentationNature in class Dataseriesstring - IGNOREDPresentationNatureConstants.isDataseriesType(java.lang.String)public void setHiThreshold(double hiVal)
setHiThreshold in interface HighlightRegionhiVal - the upper threshold value for the highlight region along the axis of orientation.public final void setDisplayPointInformation(boolean value)
setDisplayPointInformation in class Dataseriesvalue - IGNOREDpublic void setLoThreshold(double loVal)
setLoThreshold in interface HighlightRegionloVal - the lower threshold value for the highlight region along the axis of orientation.public void setName(java.lang.String name)
HighlightRegion
setName in interface HighlightRegionname - the new identifier for the highlight regionpublic final void setTitle(java.lang.String title)
setTitle in class Dataseriestitle - IGNOREDprotected boolean isXOrientation()
true if this highlight region is oriented for the x axis;
false if this highlight region is oriented for the y axis.PresentationParameterConstants.HIGHLIGHTREGION_APPLIESTO_XAXISprotected boolean isYOrientation()
true if this highlight region is oriented for the y axis;
false if this highlight region is oriented for the x axis.PresentationParameterConstants.HIGHLIGHTREGION_APPLIESTO_YAXISprotected void setRegionMax(double maxVal)
maxVal - the max value for the highlight region along the opposite axis of orientation.protected void setRegionMin(double minVal)
minVal - the min value for the highlight region along the opposite axis of orientation.protected void setupDatapoint()
Datapoint for the Dataseries.
isXOrientation(),
isYOrientation(),
Datapoint.Datapoint(double, double, double, double),
Dataseries.removeDatapoints(),
Dataseries.addDatapoint(com.ge.research.acuity.ui.Datapoint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||