|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.sasserver.mdtable.ParentNode
|
+--com.sas.sasserver.mdtable.Axis
The Axis class maintains the information and provides the functionality required by an axis
(eg Column, Row ) of the MultidimensionalTable model, including but not limited to providing
the labels for the axis.
Events:
ContentsChanged, AxisChanged and AxisLabelChanged events are sent in response to changes on the axis.
Notes:
Dimension,
Hierarchy,
Level,
Member,
AxisLabelInterface, Serialized Form| Field Summary | |
protected static String |
RB_KEY
|
| Fields inherited from class com.sas.sasserver.mdtable.ParentNode |
_childrenCache, _commandsMask, _secondaryCache, BUFFER_SIZE, delegate, Imddb, isV2Interface, label, name, numChildren, ordinal, parent, properties, READ_AHEAD |
| Constructor Summary | |
Axis(int index,
MultidimensionalTableInterface mdDelegate)
Construct an Axis instance that has an association with a MultidimensionalTableInterface instance. |
|
| Method Summary | |
protected StaticCacheInterface |
createCache()
Returns the secondary cache in which the axis dependents (Dimensions) will be maintained. |
int |
getAxisCoordinate(Member[] labels)
Returns the coordinate (point ordinal) associated with the given set of Members. |
protected int |
getAxisCoordinate(OrderedCollection labels)
Returns the coordinate (point ordinal) associated with the given set of Members. |
int |
getAxisCoordinate(String[] labels)
Returns the coordinate (point ordinal) associated with the given set of Labels. |
protected HListInterface |
getDependentIndexes(int startIndex,
int count)
Returns a hierarchical representation of the ordinals of the members that are represented by the axis. |
DimensionInterface |
getDimension(int index)
Returns the dimension associated with a given index. |
int |
getDimensionCount()
Returns the number of dimensions associated with the axis. |
DimensionInterface[] |
getDimensions(int index,
int count)
Returns the dimensions associated with a given range of indices. |
AxisLabelInterface[] |
getLabels(int tupleOrdinal)
Returns the set of member labels for the specified axis coordinate. |
LevelInterface[] |
getLevels()
Returns the active levels. |
int |
getMagnitude()
Returns the number of points on the axis. |
String[][] |
getPointLabels(int startCoord,
int endCoord)
|
NodeInterface |
getRoot()
Returns the root of the label hierarchy. |
AxisLabelInterface |
getSortIdentifier()
|
void |
reset()
|
void |
reset(boolean clearAll)
Reinitialize the Axis. |
| Methods inherited from class com.sas.sasserver.mdtable.ParentNode |
addComputedValuesCommand, addExceptionHighlightingCommand, addExportToExcelCommand, addNodeChild, addShowDetailDataCommand, addSubsetsCommand, addTotalsCommand, attachView, clearCache, countNodeChildren, detachView, equals, getDelegate, getImddb, getLabel, getName, getNodeChild, getNodeChildCount, getNodeChildren, getNodeChildren, getNodeExpandedText, getNodeText, getNodeType, getOrdinal, getParent, getProperties, getProperty, getRootParent, initCache, isLeafNode, removeNodeChild, setDelegate, setLabel, setName, setOrdinal, setParent, setProperties, setProperty, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.mdtable.NodeInterface |
getLabel, getName |
| Methods inherited from interface com.sas.models.NodeInterface |
getNodeExpandedText, getNodeText, getNodeType |
| Methods inherited from interface com.sas.models.SimpleNodeInterface |
countNodeChildren, getNodeChild, getNodeChildCount, getNodeChildren, isLeafNode |
| Field Detail |
protected static final String RB_KEY
| Constructor Detail |
public Axis(int index,
MultidimensionalTableInterface mdDelegate)
throws TableException
TableException - if an error is encountered| Method Detail |
public void reset(boolean clearAll)
public void reset()
public AxisLabelInterface getSortIdentifier()
SortInterface
public String[][] getPointLabels(int startCoord,
int endCoord)
throws TableException
protected HListInterface getDependentIndexes(int startIndex,
int count)
public LevelInterface[] getLevels()
throws TableException
TableException - if an unknown level is encountered
public int getDimensionCount()
throws TableException
getDimensionCount in interface AxisInterfaceTableException - if an error is encountered
public DimensionInterface getDimension(int index)
throws TableException
getDimension in interface AxisInterfaceTableException - if an error is encountered
public DimensionInterface[] getDimensions(int index,
int count)
throws TableException
getDimensions in interface AxisInterfaceTableException - if an error is encountered
public int getMagnitude()
throws TableException
getMagnitude in interface AxisInterfaceTableException - if an error is encountered
public AxisLabelInterface[] getLabels(int tupleOrdinal)
throws TableException
getLabels in interface AxisInterfaceTableException - if an error is encountered
protected int getAxisCoordinate(OrderedCollection labels)
throws TableException
a - set of Members that represent a point along the axis.TableException - if an error is encountered
public int getAxisCoordinate(Member[] labels)
throws TableException
a - set of Members that represent a point along the axis.TableException - if an error is encountered
public int getAxisCoordinate(String[] labels)
throws TableException
a - set of Labels that represent a point along the axis.TableException - if an error is encounteredpublic NodeInterface getRoot()
getRoot in interface TreeInterfacegetRoot in class ParentNodecom.sas.models.TreeInterfaceprotected StaticCacheInterface createCache()
createCache in class ParentNodecom.sas.sasserver.mdtable.ParentNode
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||