Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.util
Class DataComponentInfo

java.lang.Object
  extended by oracle.dss.util.ComponentInfo
      extended by oracle.dss.util.DataComponentInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DataComponentInfo
extends ComponentInfo

Row and column information about a DataView component. Used for components that have both a row and column, such as a cell in a crosstab or a data marker in a graph.

See Also:
Serialized Form

Constructor Summary
DataComponentInfo(int row, int column)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clones this DataComponentInfo.
 boolean equals(java.lang.Object o)
          Indicates whether the specified object is equivalent to this DataComponentInfo.
 int getColumn()
          Retrieves the column number.
 QDR getQDR(DataAccess dataAccess, int flags)
          Retrieves a QDR for this DataComponentInfo.
 int getRow()
          Retrieves the row number.
 int hashCode()
           
 void setRowCol(int row, int col)
          Sets the row and column.
 java.lang.String toString()
          Produces a String that identifies the row and column.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataComponentInfo

public DataComponentInfo(int row,
                         int column)
Constructor.

Parameters:
row - The row that the component is in.
column - The column that the component is in.
Method Detail

setRowCol

public void setRowCol(int row,
                      int col)
Sets the row and column. This method allows reuse of this DataComponentInfo.

Parameters:
row - The row for which you want to use this DataComponentInfo.
col - The column for which you want to use this ColumnComponentInfo.

clone

public java.lang.Object clone()
Clones this DataComponentInfo.

Specified by:
clone in class ComponentInfo
Returns:
The clone of this DataComponentInfo.

getRow

public int getRow()
Retrieves the row number. Row numbers start at zero.

Returns:
The row number.

getColumn

public int getColumn()
Retrieves the column number. Column numbers start at zero.

Returns:
The column number.

equals

public boolean equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this DataComponentInfo. DataComponentInfo objects are equivalent if they refer to the same row and column.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with this DataComponentInfo.
Returns:
true if both objects refer to the same row and the same column, false if not or if o is not a DataComponentInfo.

getQDR

public QDR getQDR(DataAccess dataAccess,
                  int flags)
Retrieves a QDR for this DataComponentInfo. The QDR identifies the dimension members that this data value represents. For example, if the data is dimensioned by Product, Geography, and Time, then the QDR identifies a single Product member, a single Geography member, and a single Time member.

Specified by:
getQDR in class ComponentInfo
Parameters:
dataAccess - The DataAccess that provided the data for the data that this DataComponentInfo 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.
Returns:
A QDR that identifies the dimension members for the data that this DataComponentInfo describes.
See Also:
DataAccess.QDR_WITH_PAGE, DataAccess.QDR_WITHOUT_PAGE

hashCode

public int hashCode()
Specified by:
hashCode in class ComponentInfo

toString

public java.lang.String toString()
Produces a String that identifies the row and column.

Overrides:
toString in class java.lang.Object
Returns:
The row number and the column number, in a String.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.