public class EdgeComponentInfo extends ComponentInfo
DataView component in an
edge.
Used for components that are associated with edges, such as a
HeaderCell.| Constructor and Description |
|---|
EdgeComponentInfo(int edge,
int depth,
int index)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this
EdgeComponentInfo. |
boolean |
equals(java.lang.Object o)
Indicates whether the specified object
is equivalent to this
EdgeComponentInfo. |
int |
getDepth()
Retrieves the depth of the component.
|
int |
getEdge()
Retrieves the edge that the component is on.
|
int |
getIndex()
Retrieves the index of the component.
|
QDR |
getQDR(DataAccess dataAccess,
int flags)
Retrieves a
QDR for this EdgeComponentInfo. |
int |
hashCode() |
void |
setEdgeDepthIndex(int edge,
int depth,
int index)
Specifies the edge, depth, and index of this
EdgeComponentInfo. |
java.lang.String |
toString()
Produces a
String that identifies the edge, depth, and
index of the component. |
public EdgeComponentInfo(int edge,
int depth,
int index)
edge - The edge that the component is on.depth - The depth within edge. The depth identifies the
location of the dimension or dimension member; 0 is the
outer-most dimension on the edge.index - The index of the dimension member that this component
presents. The index is zero-based. Each
dimension member in the innermost dimension has a
unique index. In outer dimensions, any index that the
outer dimension spans can be used.public void setEdgeDepthIndex(int edge,
int depth,
int index)
EdgeComponentInfo.
This method allows reuse of this EdgeComponentInfo.edge - The edge of the component for which you want to use this
EdgeComponentInfo. Constants are defined in
the DataDirector interface.depth - The depth of the component. The depth identifies the
location of the dimension or dimension member; 0 is the
outer-most dimension on the edge.index - The index of the component. The index is zero-based. Each
dimension member in the innermost dimension has a
unique index. In outer dimensions, any index that the
outer dimension spans can be used.public java.lang.Object clone()
EdgeComponentInfo.clone in class ComponentInfoEdgeComponentInfo.public int getEdge()
DataDirector
interface.DataDirectorpublic int getDepth()
public int getIndex()
public boolean equals(java.lang.Object o)
EdgeComponentInfo.
EdgeComponentInfo objects are equivalent if they refer
to the same edge, depth, and index.equals in class java.lang.Objecto - The object to compare with this
EdgeComponentInfo.true if both objects refer to the same edge, depth,
and index,
false if not or if o is not an
EdgeComponentInfo.public QDR getQDR(DataAccess dataAccess, int flags)
QDR for this EdgeComponentInfo.
The QDR identifies the dimension members for the
header cell for which this ColumnComponentInfo provides
information.
For example, say you have the following column header in a crosstab.
| Boston | Paris | ||
| January 2000 | February 2000 | January 2000 | February 2000 |
In an EdgeComponentInfo for the "Boston" cell, the
QDR limits Geography to Boston.
In an EdgeComponentInfo for the "January 2000" cell under
"Paris," the QDR limits Geography to Paris, and it limits
Time to January 2000.
getQDR in class ComponentInfodataAccess - The DataAccess that provided the data
for the header cell that this
EdgeComponentInfo
describes.flags - A constant that identifies whether to include page edge
information if the QDR is not for the page edge. Valid
constants are listed in the See Also section.QDR that identifies the header cell that
this EdgeComponentInfo describes.DataAccess.QDR_WITH_PAGE,
DataAccess.QDR_WITHOUT_PAGEpublic int hashCode()
hashCode in class ComponentInfopublic java.lang.String toString()
String that identifies the edge, depth, and
index of the component.toString in class java.lang.ObjectString. Zero is the column edge, 1 is the row edge,
and 2 is the page edge.