|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.scatterplot.ScatterPlotOLAPDataModel
public class ScatterPlotOLAPDataModel
A ScatterPlotOLAPDataModel assigns an OLAPDataSetInterface to a ScatterPlot. The com.sas.storage.olap.OLAPDataSetInterface encapsulates the OLAP data structure, and the ScatterPlotOLAPDataModel 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 ScatterPlotOLAPDataModel's groupEnabled property can be used to display a separate plot for each value of a group variable.
ScatterPlot
Constructor Summary | |
---|---|
ScatterPlotOLAPDataModel()
Default constructor |
|
ScatterPlotOLAPDataModel(OLAPDataSetInterface newModel)
Constructor |
|
ScatterPlotOLAPDataModel(OLAPDataSetInterface newModel,
boolean newGroupEnabled)
Constructs a ScatterPlotOLAPDataModel that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a ScatterChart with a flag to indicate whether or not grouping is desired. |
Method Summary | |
---|---|
void |
apply(ScatterPlotOLAPDataModel 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 ScatterPlotOLAPDataModel . |
Variable[] |
getAuxiliaryVariable()
Returns the array of data columns that was most recently set by the setAuxiliaryVariable() method. |
Variable[] |
getDataTipVariable()
Returns the array of data columns that was most recently set by the setDataTipVariable() method. |
OLAPDataSetInterface |
getModel()
Set 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. |
Variable |
getXVariable()
Returns the data measure that was most recently set in the X role by the setXVariable() method. |
Variable |
getY2Variable()
Returns the data measure that was most recently set in the Y2 role by the setY2Variable() method. |
Variable |
getYVariable()
Returns the data measure that was most recently set in the Y role by the setYVariable() method. |
int |
hashCode()
Computes the hash code for this ScatterPlotOLAPDataModel . |
boolean |
isGroupEnabled()
Returns whether or not the ScatterPlot should
attempt to group its elements. |
boolean |
isPairingEnabled()
Returns whether or not the ScatterPlot should
attempt to pair up the OLAP measures. |
void |
setAuxiliaryVariable(Variable[] newVariables)
Specifies an array of Variables that are included among the variables that are passed in the events on the ScatterPlot data elements. |
void |
setDataTipVariable(Variable[] newVariables)
Specifies an array of Variables to be displayed in the data tip. |
void |
setGroupEnabled(boolean newGroupEnabled)
Sets whether or not the ScatterPlot should
attempt to group its elements. |
void |
setModel(OLAPDataSetInterface newModel)
Set the OLAP data source. |
void |
setPairingEnabled(boolean newPairingEnabled)
Sets whether or not the ScatterPlot should
attempt to pair up the OLAP measures. |
void |
setSelectionModel(javax.swing.ListSelectionModel newModel)
Sets the selection model that identifies which cells are selected. |
void |
setSizeVariable(Variable newVariable)
Sets which measure is to be associated with the marker size. |
void |
setXVariable(Variable newVariable)
Sets which measures are to be associated with the X axis. |
void |
setY2Variable(Variable newVariable)
Sets which measures are to be associated with the Y2 axis. |
void |
setYVariable(Variable newVariable)
Sets which measures are to be associated with the Y axis. |
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 ScatterPlotOLAPDataModel()
public ScatterPlotOLAPDataModel(OLAPDataSetInterface newModel)
public ScatterPlotOLAPDataModel(OLAPDataSetInterface newModel, boolean newGroupEnabled)
ScatterPlotOLAPDataModel
that is used to
assign OLAP data in the form of a com.sas.storage.olap.OLAPDataSetInterface
to a ScatterChart
with a flag to indicate whether or not grouping is desired.
newModel
- the OLAP datanewGroupEnabled
- a flag, true means grouping will be enabled if there are sufficient
classificaiton levels.Method Detail |
---|
public void apply(ScatterPlotOLAPDataModel theOtherModel)
null
is not an acceptable
value but will not cause an exception
to be thrown. null
will
simply be ignored and the property
will not be modified.
public boolean equals(java.lang.Object obj)
ScatterPlotOLAPDataModel
.
The result is true
if and only if the argument is not
null
and is a ScatterPlotOLAPDataModel
object that has the same
property values as this object.
equals
in class DataModel
obj
- the object to test for equality with this
ScatterPlotOLAPDataModel
true
if the objects are the same;
false
otherwise.public int hashCode()
ScatterPlotOLAPDataModel
.
hashCode
in class DataModel
public void setGroupEnabled(boolean newGroupEnabled)
ScatterPlot
should
attempt to group its elements. Grouping will only
take affect if the 1st OLAP axis containing levels has
more than one level.
isGroupEnabled()
public boolean isGroupEnabled()
ScatterPlot
should
attempt to group its elements.
setGroupEnabled(boolean)
public void setPairingEnabled(boolean newPairingEnabled)
ScatterPlot
should
attempt to pair up the OLAP measures. This is only
supported if there are an even number of measures in the
OLAP data. If so then the 1st and 2nd measure will be plotted
against each other (1st measure using the x axis and 2nd using the y axis)
followed by the 2nd and 3rd measures being plotted against each other etc.
isPairingEnabled()
public boolean isPairingEnabled()
ScatterPlot
should
attempt to pair up the OLAP measures.
setPairingEnabled(boolean)
public void setModel(OLAPDataSetInterface newModel)
newModel
- a handle to 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 setXVariable(Variable newVariable)
xVariable
nor the yVariable
nor the
y2Variable
s have been specified (the typical case) then the plot will
display all of the measures defined in the OLAP model
choosing its
own measure association preferences. However if even one of these variable properties is
specified then the plot will obey only what has been specified (so if you choose
to sepcify an x varaible then you will need to also specify a y or y2 variable to
produce a usable plot.)
This property should only be used to do one of the following operations: to re-arrange the display order, to prevent some measures from being displayed or to designate specific measures to the x axis.
Also Note: the variable
's informat property is not applicable with OLAP data.
Advanced: Use a VariableList to assign multiple measures to this property.
newVariable
- the variable identifying the OLAP measure with associated propertiesgetXVariable()
,
setYVariable(com.sas.graphics.components.Variable)
,
setY2Variable(com.sas.graphics.components.Variable)
public Variable getXVariable()
setXVariable(com.sas.graphics.components.Variable)
public void setYVariable(Variable newVariable)
xVariable
nor the yVariable
nor the
y2Variable
s have been specified (the typical case) then the plot will
display all of the measures defined in the OLAP model
choosing its
own measure association preferences. However if even one of these variable properties is
specified then the plot will obey only what has been specified (so if you choose
to sepcify a y varaible then you will need to also specify an x variable to
produce a usable plot.)
This property should only be used to do one of the following operations: to re-arrange the display order, to prevent some measures from being displayed and/or to designate specific measures to the y axis.
Also Note: the variable
's informat property is not applicable with OLAP data.
Advanced: Use a VariableList to assign multiple measures to this property.
newVariable
- the variable identifying the OLAP measure with associated propertiesgetYVariable()
,
setXVariable(com.sas.graphics.components.Variable)
,
setY2Variable(com.sas.graphics.components.Variable)
public Variable getYVariable()
setXVariable(com.sas.graphics.components.Variable)
public void setY2Variable(Variable newVariable)
xVariable
nor the yVariable
nor the
y2Variable
s have been specified (the typical case) then the plot will
display all of the measures defined in the OLAP model
choosing its
own measure association preferences. However if even one of these variable properties is
specified then the plot will obey only what has been specified (so if you choose
to sepcify a y2 varaible then you will need to also specify an x variable to
produce a usable plot.)
This property should only be used to do one of the following operations: to re-arrange the display order, to prevent some measures from being displayed and/or to designate specific measures to the y2 axis.
Also Note: the variable
's informat property is not applicable with OLAP data.
Advanced: Use a VariableList to assign multiple measures to this property.
newVariable
- the variable identifying the OLAP measure with associated propertiesgetY2Variable()
,
setXVariable(com.sas.graphics.components.Variable)
,
setYVariable(com.sas.graphics.components.Variable)
public Variable getY2Variable()
setXVariable(com.sas.graphics.components.Variable)
public void setSizeVariable(Variable newVariable)
xVariable
nor the yVariable
nor the
y2Variable
s have been specified (the typical case) then the plot will
display all of the measures defined in the OLAP model
choosing its
own measure association preferences. However if even one of these variable properties is
specified then the plot will obey only what has been specified (so if you choose
to sepcify a y2 varaible then you will need to also specify an x variable to
produce a usable plot.)
Also Note: the variable
's informat property is not applicable with OLAP data.
newVariable
- the variable identifying the OLAP measure with associated propertiesgetSizeVariable()
,
setXVariable(com.sas.graphics.components.Variable)
,
setYVariable(com.sas.graphics.components.Variable)
public Variable getSizeVariable()
setSizeVariable(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");
scatterPlot.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 |