|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.tilechart.TileChartOLAPDataModel
public class TileChartOLAPDataModel
A TileChartOLAPDataModel assigns an OLAPDataSetInterface to a TileChart. The com.sas.storage.olap.OLAPDataSetInterface encapsulates the OLAP data structure, and the TileChartOLAPDataModel conveys that structure to a graph by automatically mapping the OLAP axis dimensions to appropriate graph elements. The following limitations apply to the mapping:
If the OLAP axis that supplies the category variable has more than one dimension, the TileChart will use the hierarchy as the ID role.
TileChart
Constructor Summary | |
---|---|
TileChartOLAPDataModel()
Constructs a TileChartOLAPDataModel that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a TileChart . |
|
TileChartOLAPDataModel(OLAPDataSetInterface newModel)
Constructs a TileChartOLAPDataModel that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a TileChart . |
Method Summary | |
---|---|
void |
apply(TileChartOLAPDataModel theOtherModel)
Utility method to convey properties contained in "theOtherModel" to this object. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this TileChartOLAPDataModel . |
Variable[] |
getAuxiliaryVariable()
Returns the array of data columns that was most recently set by the setAuxiliaryVariable() method. |
Variable |
getColorVariable()
Returns the data measure that was most recently set in the Color role by the setColorVariable() method. |
Variable[] |
getDataTipVariable()
Returns the array of data columns that was most recently set by the setDataTipVariable() method. |
OLAPDataSetInterface |
getModel()
Get the OLAP data source. |
javax.swing.ListSelectionModel |
getSelectionModel()
Returns the ListSelectionModel that indicates which data values are selected. |
Variable |
getSizeVariable()
Returns the data measure that was most recently set in the Size role by the setSizeVariable() method. |
int |
hashCode()
Computes the hash code for this TileChartOLAPDataModel . |
void |
setAuxiliaryVariable(Variable[] newVariables)
Specifies an array of Variables that are included among the variables that are passed in the events on the TileChart data elements. |
void |
setColorVariable(Variable newVariable)
Specifies the data column in the attached TableModel whose values are to be used to determine the relative colors of the rectangles. |
void |
setDataTipVariable(Variable[] newVariables)
Specifies an array of Variables to be displayed in the data tip. |
void |
setModel(OLAPDataSetInterface newModel)
Set the OLAP data source. |
void |
setSelectionModel(javax.swing.ListSelectionModel newModel)
Sets the selection model that identifies which cells are selected. |
void |
setSizeVariable(Variable newVariable)
Specifies the measure in the attached OLAP model whose values are to be used to determine the relative sizes of the rectangles. |
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 TileChartOLAPDataModel()
TileChartOLAPDataModel
that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a TileChart
.
public TileChartOLAPDataModel(OLAPDataSetInterface newModel)
TileChartOLAPDataModel
that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a TileChart
.
newModel
- the OLAP dataMethod Detail |
---|
public void apply(TileChartOLAPDataModel theOtherModel)
Note: Contained "models" (i.e. properties that are subclasses of ModelBase) will in turn be called on to convey their properties to the like contained models in the other object. In that respect this can be considered a "tree" type copy.
Also Note: This is a deep copy. Thus after the copy, mutable properties will not be shared by the two instances.
theOtherModel
- properties applied to this instance
java.lang.IllegalArgumentException
- if theOtherModel is null.public boolean equals(java.lang.Object obj)
TileChartOLAPDataModel
.
The result is true
if and only if the argument is not
null
and is a TileChartOLAPDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
TileChartOLAPDataModel
true
if the objects are the same;
false
otherwise.public int hashCode()
TileChartOLAPDataModel
.
hashCode
in class DataModel
public void setModel(OLAPDataSetInterface newModel)
newModel
- the properties of the data source or nullgetModel()
public OLAPDataSetInterface getModel()
setModel(com.sas.storage.olap.OLAPDataSetInterface)
public void setSelectionModel(javax.swing.ListSelectionModel newModel)
newModel
- the selection model identifying selected cells
java.lang.IllegalArgumentException
- if newModel
is null
.getSelectionModel()
public javax.swing.ListSelectionModel getSelectionModel()
setSelectionModel(javax.swing.ListSelectionModel)
public void setSizeVariable(Variable newVariable)
sizeVariable
nor the colorVariable
have
been specified then the tile chart will choose peek at the OLAP model and
automatically select measures for these properties.
Note: if sizeVariable
was not specified but colorVariable
is then
the colorVariable
will be applied as the sizeVariable
as well.
Also Note: the Variable
's informat
property is ignored.
newVariable
- the variable identifying the OLAP measure with associated propertiesgetSizeVariable()
,
setColorVariable(com.sas.graphics.components.Variable)
public Variable getSizeVariable()
setSizeVariable(com.sas.graphics.components.Variable)
public void setColorVariable(Variable newVariable)
sizeVariable
nor the colorVariable
have
been specified then the tile chart will choose peek at the OLAP model and
automatically select measures for these properties.
Note: if colorVariable
was not specified but sizeVariable
is then
the sizeVariable
will be applied as the colorVariable
as well.
Also Note: the Variable
's informat
property is ignored.
setSizeVariable(com.sas.graphics.components.Variable)
,
getColorVariable()
public Variable getColorVariable()
setColorVariable(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 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");
tileChart.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[])
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |