|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.radarchart.RadarChartTableDataModel
public class RadarChartTableDataModel
A RadarChartTableDataModel encapsulates relational data from a javax.swing.table.TableModel and maps the TableModel's data columns onto a RadarChart component. To do the mapping, it assigns variable roles to the data columns that will be used in the graph, and the assigned roles determine how the RadarChart displays the data.
By default when generating a graph, a RadarChart summarizes the data from a RadarChartTableDataModel.
RadarChartDataModel
Constructor Summary | |
---|---|
RadarChartTableDataModel()
Default Constructor |
|
RadarChartTableDataModel(javax.swing.table.TableModel newModel)
Constructor with assigned model |
Method Summary | |
---|---|
void |
apply(RadarChartTableDataModel theOtherModel)
Utility method to convey properties contained in "theOtherObject" to this object. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this RadarChartTableDataModel . |
Variable[] |
getAuxiliaryVariable()
Returns the array of data columns that was most recently set by the setAuxiliaryVariable() method. |
ClassificationVariable |
getCategoryVariable()
Returns the data column that was most recently set in the Category role by the setCategoryVariable() method. |
ClassificationVariable |
getColumnVariable()
Returns the data column that was most recently set in the Column role by the setColumnVariable() method. |
Variable[] |
getDataTipVariable()
Returns the array of data columns that was most recently set by the setDataTipVariable() method. |
javax.swing.table.TableModel |
getModel()
Return the data table associated with this model. |
AnalysisVariable |
getResponseVariable()
Returns the data column that was most recently set in the Response role by the setResponseVariable() method. |
ClassificationVariable |
getRowVariable()
Returns the data column that was most recently set in the Row role by the setRowVariable() method. |
javax.swing.ListSelectionModel |
getSelectionModel()
Returns the ListSelectionModel that indicates which data values are selected. |
ClassificationVariable |
getSubgroupVariable()
Returns the data column that was most recently set in the Subgroup role by the setSubgroupVariable() method. |
int |
hashCode()
Computes the hash code for this RadarChartTableDataModel . |
void |
setAuxiliaryVariable(Variable[] newVariables)
Specifies an array of Variables that are included among the variables that are passed in the events on the RadarChart data elements. |
void |
setCategoryVariable(ClassificationVariable newVariable)
Specifies the data column in the attached TableModel whose unique values are to be used to produce the axes. |
void |
setColumnVariable(ClassificationVariable newVariable)
Specifies the data column(s) in the attached TableModel whose values are used to horizontally group the charts. |
void |
setDataTipVariable(Variable[] newVariables)
Specifies an array of Variables to be displayed in the data tip. |
void |
setModel(javax.swing.table.TableModel newModel)
Assign the data table to the model. |
void |
setResponseVariable(AnalysisVariable newVariable)
Specifies the data column in the attached TableModel whose values are to be used to determine the extent of the vertices of the radar elements. |
void |
setRowVariable(ClassificationVariable newVariable)
Specifies the data column(s) in the attached TableModel whose values are used to vertically group the charts. |
void |
setSelectionModel(javax.swing.ListSelectionModel newModel)
Sets the ListSelectionModel which indicates which data values are selected. |
void |
setSubgroupVariable(ClassificationVariable newVariable)
Specifies the data column in the attached TableModel whose values are to be used to produce multiple radar elements in the radar chart. |
Methods inherited from class com.sas.graphics.components.DataModel |
---|
apply, getLocale, getRulesContext, getSortStrategy, setLocale, setRulesContext, setSortStrategy |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public RadarChartTableDataModel()
public RadarChartTableDataModel(javax.swing.table.TableModel newModel)
Method Detail |
---|
public void setSelectionModel(javax.swing.ListSelectionModel newModel)
newModel
- the ListSelectionModel containing the indices of the selected data values.
java.lang.IllegalArgumentException
- if newModel
is null
.getSelectionModel()
public javax.swing.ListSelectionModel getSelectionModel()
setSelectionModel(javax.swing.ListSelectionModel)
public void apply(RadarChartTableDataModel theOtherModel)
theOtherModel
- properties applied to this instancepublic void setModel(javax.swing.table.TableModel newModel)
getModel()
public javax.swing.table.TableModel getModel()
setModel(javax.swing.table.TableModel)
public ClassificationVariable getColumnVariable()
setColumnVariable(com.sas.graphics.components.ClassificationVariable)
public ClassificationVariable getRowVariable()
setRowVariable(com.sas.graphics.components.ClassificationVariable)
public ClassificationVariable getCategoryVariable()
setCategoryVariable(com.sas.graphics.components.ClassificationVariable)
public ClassificationVariable getSubgroupVariable()
setSubgroupVariable(com.sas.graphics.components.ClassificationVariable)
public AnalysisVariable getResponseVariable()
setResponseVariable(com.sas.graphics.components.AnalysisVariable)
public void setColumnVariable(ClassificationVariable newVariable)
getColumnVariable()
public void setRowVariable(ClassificationVariable newVariable)
getRowVariable()
public void setCategoryVariable(ClassificationVariable newVariable)
getCategoryVariable()
public void setSubgroupVariable(ClassificationVariable newVariable)
getSubgroupVariable()
public void setResponseVariable(AnalysisVariable newVariable)
getResponseVariable()
public void setDataTipVariable(Variable[] newVariables)
The following code fragment specifies two variables for the data tip display and uses them to replace the default data tip display:
// Create an array of variables to set in the data tip display
Variable dataTipVars[] = new Variable[2];
dataTipVars[0] = new Variable("Task");
dataTipVars[1] = new Variable("Duration");
radarChart.getGraphModel().getDataTipModel().setContent(GraphConstants.DATA_TIP_REPLACE);
newVariables
- array of Variables to display in data tip
java.lang.IllegalArgumentException
- if a non-null array of zero length is passed in.getDataTipVariable()
,
setAuxiliaryVariable(com.sas.graphics.components.Variable[])
public Variable[] getDataTipVariable()
setDataTipVariable(com.sas.graphics.components.Variable[])
public void setAuxiliaryVariable(Variable[] newVariables)
newVariables
- contains Variables for GraphActionEvent return.
java.lang.IllegalArgumentException
- if a non-null array of zero length is passed in.getAuxiliaryVariable()
,
setDataTipVariable(com.sas.graphics.components.Variable[])
public Variable[] getAuxiliaryVariable()
setAuxiliaryVariable(com.sas.graphics.components.Variable[])
,
setDataTipVariable(com.sas.graphics.components.Variable[])
public boolean equals(java.lang.Object obj)
RadarChartTableDataModel
.
The result is true
if and only if the argument is not
null
and is a RadarChartTableDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
RadarChartTableDataModel
true
if the objects are the same;
false
otherwise.public int hashCode()
RadarChartTableDataModel
.
hashCode
in class DataModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |