|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.TableAxisZone
public class TableAxisZone
The TableAxisZone class stores zone attributes for a table axis. Zoning can be done based a Variable displayed in the TableAxis or by specifying a level in the tree of a Hierarchical TreeTable.
GanttChart ganttChart = new GanttChart(); GanttChartModel ganttChartModel = ganttChart.getGraphModel(); TableAxisModel tableAxisModel = ganttChartModel.getTableAxisModel(); TableAxisColumn column[] = tableAxisModel.getColumns(); TableAxisZone taz[] = new TableAxisZone[2]; taz[0] = new TableAxisZone(column[0].getVariable()); taz[1] = new TableAxisZone(2); // level 2 of a hierarchical tree table tableAxisModel.setZones(taz);
ModelBase
,
TableAxisModel
,
TableAxisColumn
,
Variable
Constructor Summary | |
---|---|
TableAxisZone(int treeLevel)
Constructor designating the level in the tree to zone on. |
|
TableAxisZone(Variable var)
Constructor designating variable to create a zone on in the table and chart. |
Method Summary | |
---|---|
void |
apply(TableAxisZone theOtherObject)
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 TableAxisColumn . |
int |
getTreeLevel()
Returns the Level used for this zone. |
Variable |
getVariable()
Returns the Variable used for this zone. |
int |
hashCode()
Computes the hash code for this TableAxisZone . |
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public TableAxisZone(Variable var)
var
- the Variable to be used for zoning
java.lang.IllegalArgumentException
- if null Variable is passed in.public TableAxisZone(int treeLevel)
treeLevel
- Tree Level to zone table and chart on.
java.lang.IllegalArgumentException
- if level < 0.Method Detail |
---|
public void apply(TableAxisZone theOtherObject)
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.
theOtherObject
- properties applied to this instancepublic boolean equals(java.lang.Object obj)
TableAxisColumn
.
The result is true
if and only if the argument is not
null
and is a TableAxisColumn
object that has the same
property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this
TableAxisZone
true
if the objects are the same;
false
otherwise.public Variable getVariable()
public int getTreeLevel()
public int hashCode()
TableAxisZone
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |