|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.PlotVariable
public class PlotVariable
An PlotVariable is used by a plot to assign data values to the plot points.
Example
You can apply low and high values to the ScatterPlots y values to get a high-low plot by:
ScatterPlot scatterPlot = new ScatterPlot(); TableModel tableModel = myTableModel(); // <...set up tableModel...> // create the graph's data model (contains a handle to the data source and // variables describing how to interpret the data) ScatterPlotTableDataModel scatterPlotTableDataModel = new ScatterPlotTableDataModel(tableModel); // set the variable on the data model scatterPlotTableDataModel.setXVariable(new PlotVariable("x", null, null, "xLabel"); scatterPlotTableDataModel.setYVariable(new PlotVariable("y", null, null, "yLabel", "high", "highLabel", "low", "lowLabel"); // set data model on the scatter plot scatterPlot.setDataModel( scatterPlotTableDataModel );
Variable
,
VariableList
,
PlotVariableList
Constructor Summary | |
---|---|
PlotVariable(int columnIndex)
Constructor designating data column by index. |
|
PlotVariable(int columnIndex,
java.lang.String format,
java.lang.String informat,
java.lang.String label)
Constructor designating data column by index along with the names of the SAS format and SAS informat and label to be applied. |
|
PlotVariable(int columnIndex,
java.lang.String format,
java.lang.String informat,
java.lang.String label,
int highColumnIndex,
java.lang.String highLabel,
int lowColumnIndex,
java.lang.String lowLabel)
Constructor designating data column, high column and low column by index along with the names of the SAS format and SAS informat and labels to be applied. |
|
PlotVariable(PlotVariable pv)
Constructor with PlotVariable |
|
PlotVariable(java.lang.String columnName)
Constructor designating data column by name. |
|
PlotVariable(java.lang.String columnName,
java.lang.String format)
Constructor designating data column by name along with the name of the SAS format to be applied. |
|
PlotVariable(java.lang.String columnName,
java.lang.String format,
java.lang.String informat,
java.lang.String label)
Constructor designating data column by name. |
|
PlotVariable(java.lang.String columnName,
java.lang.String format,
java.lang.String informat,
java.lang.String label,
java.lang.String highColumnName,
java.lang.String highLabel,
java.lang.String lowColumnName,
java.lang.String lowLabel)
Constructor designating data column, high column and low column by name along with the names of the SAS format and SAS informat and labels to be applied. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this PlotVariable . |
int |
hashCode()
Computes the hash code for this PlotVariable . |
Methods inherited from class com.sas.graphics.components.RangeVariable |
---|
getHighColumnIndex, getHighColumnName, getHighLabel, getLowColumnIndex, getLowColumnName, getLowLabel, getTargetColumnIndex, getTargetColumnName, getTargetLabel |
Methods inherited from class com.sas.graphics.components.Variable |
---|
getCategorizationModel, getColumnIndex, getColumnName, getFormat, getInformat, getLabel, getSegmentedRangeStyle |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public PlotVariable(java.lang.String columnName)
columnName
- the name identifying the data columnpublic PlotVariable(java.lang.String columnName, java.lang.String format)
columnName
- the name identifying the data columnformat
- the name of the SAS format applied
(by the graph) on the values found in
this variable's data columnpublic PlotVariable(java.lang.String columnName, java.lang.String format, java.lang.String informat, java.lang.String label)
columnName
- the name identifying the data columnformat
- the name of the SAS format applied
(by the graph) on the values found in
this variable's data columninformat
- the name of the SAS informat applied
(by the graph) on the values found in
this variable's data columnlabel
- the label the chart will display
via data tips, axis labels and legend labels
(where applicable)
The supported informats are:
DATE5. - "ddMMM"
DATE7. - "ddMMMyy"
DATE9. - "ddMMMyyyy"
DATETIME13. - "ddMMMyy:HH:mm"
DATETIME16. - "ddMMMyy:HH:mm:ss"
DATETIME18. - "ddMMMyyyy:HH:mm:ss"
DATETIME20. - "ddMMMyy:HH:mm:ss.SSS"
DATETIME22. - "ddMMMyyyy:HH:mm:ss.SSS"
TIME5. - "HH:mm"
TIME8. - "HH:mm:ss""
TIME12. - "HH:mm:ss.SSS"
public PlotVariable(int columnIndex)
columnIndex
- the index identifying the data columnpublic PlotVariable(int columnIndex, java.lang.String format, java.lang.String informat, java.lang.String label)
columnIndex
- the column index identifying the data columnformat
- the name of the SAS format applied
(by the graph) on the values found in
this variable's data columninformat
- the name of the SAS informat applied
(by the graph) on the values found in
this variable's data columnlabel
- the label the chart will display
via data tips, axis labels and legend labels
(where applicable)
The supported informats are:
DATE5. - "ddMMM"
DATE7. - "ddMMMyy"
DATE9. - "ddMMMyyyy"
DATETIME13. - "ddMMMyy:HH:mm"
DATETIME16. - "ddMMMyy:HH:mm:ss"
DATETIME18. - "ddMMMyyyy:HH:mm:ss"
DATETIME20. - "ddMMMyy:HH:mm:ss.SSS"
DATETIME22. - "ddMMMyyyy:HH:mm:ss.SSS"
TIME5. - "HH:mm"
TIME8. - "HH:mm:ss""
TIME12. - "HH:mm:ss.SSS"
public PlotVariable(java.lang.String columnName, java.lang.String format, java.lang.String informat, java.lang.String label, java.lang.String highColumnName, java.lang.String highLabel, java.lang.String lowColumnName, java.lang.String lowLabel)
columnName
- the name identifying the data columnformat
- the name of the SAS format applied
(by the graph) on the values found in
this variable's data columninformat
- the name of the SAS informat applied
(by the graph) on the values found in
this variable's data columnlabel
- the label the chart will display
via data tips, axis labels and legend labels
(where applicable)highColumnName
- the name identifying the high data columnhighLabel
- the label the chart will display
via data tips.lowColumnName
- the name identifying the low data columnlowLabel
- the label the chart will display
via data tips.
The supported informats are:
DATE5. - "ddMMM"
DATE7. - "ddMMMyy"
DATE9. - "ddMMMyyyy"
DATETIME13. - "ddMMMyy:HH:mm"
DATETIME16. - "ddMMMyy:HH:mm:ss"
DATETIME18. - "ddMMMyyyy:HH:mm:ss"
DATETIME20. - "ddMMMyy:HH:mm:ss.SSS"
DATETIME22. - "ddMMMyyyy:HH:mm:ss.SSS"
TIME5. - "HH:mm"
TIME8. - "HH:mm:ss""
TIME12. - "HH:mm:ss.SSS"
public PlotVariable(int columnIndex, java.lang.String format, java.lang.String informat, java.lang.String label, int highColumnIndex, java.lang.String highLabel, int lowColumnIndex, java.lang.String lowLabel)
columnIndex
- the column index identifying the data columnformat
- the name of the SAS format applied
(by the graph) on the values found in
this variable's data columninformat
- the name of the SAS informat applied
(by the graph) on the values found in
this variable's data columnlabel
- the label the chart will display
via data tips, axis labels and legend labels
(where applicable)highColumnIndex
- the index identifying the high data columnhighLabel
- the label the chart will display
via data tips.lowColumnIndex
- the index identifying the low data columnlowLabel
- the label the chart will display
via data tips.
The supported informats are:
DATE5. - "ddMMM"
DATE7. - "ddMMMyy"
DATE9. - "ddMMMyyyy"
DATETIME13. - "ddMMMyy:HH:mm"
DATETIME16. - "ddMMMyy:HH:mm:ss"
DATETIME18. - "ddMMMyyyy:HH:mm:ss"
DATETIME20. - "ddMMMyy:HH:mm:ss.SSS"
DATETIME22. - "ddMMMyyyy:HH:mm:ss.SSS"
TIME5. - "HH:mm"
TIME8. - "HH:mm:ss""
TIME12. - "HH:mm:ss.SSS"
public PlotVariable(PlotVariable pv)
pv
- the variable which supplies all properties for the new variable.Method Detail |
---|
public boolean equals(java.lang.Object obj)
PlotVariable
.
The result is true
if and only if the argument is not
null
and is a PlotVariable
object that has the same
property values as this object.
equals
in class Variable
obj
- the object to test for equality with this
PlotVariable
true
if the objects are the same;
false
otherwise.public int hashCode()
PlotVariable
.
hashCode
in class Variable
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |