Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

oracle.dss.dataView.managers
Class ViewSizing

java.lang.Object
  extended by oracle.dss.dataView.managers.ViewSizing
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Mergeable

public class ViewSizing
extends java.lang.Object
implements Mergeable

See Also:
Serialized Form
For internal use only. Application developers should not use this
Contains sizing attributes.

Field Summary
protected  int m_columnWidth
           
protected  java.util.BitSet m_propertyUsedFlags
           
protected  int m_rowHeight
           
 
Constructor Summary
ViewSizing()
          Constructor that uses a default row height and column width.
ViewSizing(int rowHeight, int columnWidth)
          Constructor that specifies a particular row height and column width.
 
Method Summary
 void clearUsedBits()
          Sets all of the "used" ViewSizing attributes to false.
 java.lang.Object clone()
          Clones this ViewSizing object.
 boolean equals(java.lang.Object o)
          Indicates whether the specified object is equivalent to this ViewSizing object.
 int getColumnWidth()
          Retrieves the width for the columns of this object.
 int getRowHeight()
          Retrieves the row height property for this object.
 boolean isAnythingOverridden()
          Indicates whether any of the attributes of this ViewSizing object has been explicitly set.
 boolean isColumnWidthUsed()
          Indicates whether the ColumnWidth attribute has been explicitly set.
 boolean isRowHeightUsed()
          Indicates whether the RowHeight attribute has been explicitly set.
 void merge(Mergeable from)
          Merges the specified ViewSizing object with this object.
 void setColumnWidth(int columnWidth)
          Specifies the width for the columns of this object.
 void setColumnWidthUsed(boolean used)
          Specifies whether the ColumnWidth attribute has been explicitly set.
 void setRowHeight(int rowHeight)
          Specifies the row height for this object.
 void setRowHeightUsed(boolean used)
          Specifies whether the RowHeight attribute has been explicitly set.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_rowHeight

protected int m_rowHeight

m_columnWidth

protected int m_columnWidth

m_propertyUsedFlags

protected java.util.BitSet m_propertyUsedFlags
Constructor Detail

ViewSizing

public ViewSizing()
Constructor that uses a default row height and column width. The default row height is 10. The default column width is 10. At this point, no attributes have been explicitly set.


ViewSizing

public ViewSizing(int rowHeight,
                  int columnWidth)
Constructor that specifies a particular row height and column width. At this point, no attributes have been explicitly set.

Parameters:
rowHeight - The initial value for the height of a row.
columnWidth - The initial value for the width of a column.
Method Detail

isAnythingOverridden

public boolean isAnythingOverridden()
Indicates whether any of the attributes of this ViewSizing object has been explicitly set.

Specified by:
isAnythingOverridden in interface Mergeable
Returns:
true if any attribute has been explicitly set, false if the attributes have their original values.

clone

public java.lang.Object clone()
Clones this ViewSizing object.

Specified by:
clone in interface Mergeable
Overrides:
clone in class java.lang.Object
Returns:
The ViewSizing clone.

setRowHeight

public void setRowHeight(int rowHeight)
Specifies the row height for this object. This method also sets the setRowHeightUsed method to true.

Parameters:
rowHeight - The row height for this object.

getRowHeight

public int getRowHeight()
Retrieves the row height property for this object.

Returns:
The row height for this object.

isRowHeightUsed

public boolean isRowHeightUsed()
Indicates whether the RowHeight attribute has been explicitly set. When this method's return value is true, the attribute's value will be used in the merging process.

Returns:
true if the attribute has been explicitly set, false if it has not been explicitly set.

setRowHeightUsed

public void setRowHeightUsed(boolean used)
Specifies whether the RowHeight attribute has been explicitly set. This method is set by the setRowHeight attribute. When the parameter value of this method is set to true, the attribute's value will be used in the merging process.

Parameters:
used - true if the attribute has been explicitly set, false if it has not been explicitly set.

setColumnWidth

public void setColumnWidth(int columnWidth)
Specifies the width for the columns of this object. This method also sets the setColumnWidthUsed method to true.

Parameters:
columnWidth - The width for the columns of this object.

getColumnWidth

public int getColumnWidth()
Retrieves the width for the columns of this object.

Returns:
The width for the columns of this object.

isColumnWidthUsed

public boolean isColumnWidthUsed()
Indicates whether the ColumnWidth attribute has been explicitly set. When the returns value of this method is true, the attribute's value will be used in the merging process.

Returns:
true if the attribute has been explicitly se, false if it has not been explicitly se.

setColumnWidthUsed

public void setColumnWidthUsed(boolean used)
Specifies whether the ColumnWidth attribute has been explicitly set. This method is set by the setColumnWidth attribute. When the parameter value of this method is set to true, the attribute's value will be used in the merging process.

Parameters:
used - true if the attribute has been explicitly set, false if it has not been explicitly set.

merge

public void merge(Mergeable from)
Merges the specified ViewSizing object with this object. This method is called by the Rule classes.

Specified by:
merge in interface Mergeable
Parameters:
from - The ViewSizing object that you want to merge.

equals

public boolean equals(java.lang.Object o)
Indicates whether the specified object is equivalent to this ViewSizing object. Objects are equivalent if they have the same attributes explicitly set and those attributes have the same values.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object that you want to compare with this ViewSizing object.
Returns:
true if they are equal, false if not, or if o is not a ViewSizing object.

clearUsedBits

public void clearUsedBits()
Sets all of the "used" ViewSizing attributes to false. Immediately after you call this method, the IsAnythingOverridden method returns false.


Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.0.0)

E17492-01

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