Skip navigation links

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

E12063-03


oracle.adf.view.faces.bi.component.pivotTable
Class SizingManagerImpl

java.lang.Object
  extended by oracle.adf.view.faces.bi.component.BIComplexAttributeBase
      extended by oracle.adf.view.faces.bi.component.pivotTable.SizingManager
          extended by oracle.adf.view.faces.bi.component.pivotTable.SizingManagerImpl

All Implemented Interfaces:
java.io.Serializable, javax.faces.component.StateHolder

public class SizingManagerImpl
extends SizingManager

The pivot table's default SizingManager implementation.

Since:
release specific (what release of product did this appear in)
See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.adf.view.faces.bi.component.pivotTable.SizingManager
AUTOSIZE, COLUMN_HEADER_ROW_HEIGHT_RULES_KEY, COLUMN_WIDTH_RULES_KEY, DEFAULT_COLUMN_HEADER_ROW_HEIGHT_KEY, DEFAULT_COLUMN_WIDTH_KEY, DEFAULT_ROW_HEADER_COLUMN_WIDTH_KEY, DEFAULT_ROW_HEIGHT_KEY, ROW_HEADER_COLUMN_WIDTH_RULES_KEY, ROW_HEIGHT_RULES_KEY, TYPE

 

Fields inherited from class oracle.adf.view.faces.bi.component.BIComplexAttributeBase
ID_KEY, m_parent, TRANSIENT_KEY

 

Constructor Summary
SizingManagerImpl()
           

 

Method Summary
 int computeColumnHeaderRowHeight(java.lang.String layer)
          Retrieves the row height ( in pixels ) associated with the members of a layer on the pivot table's column header.
 int computeColumnWidth(QDR sliceQDR)
          Return the column width ( in pixels ) associated with the members of a slice on the pivot table's column header
protected  int computeLayerSize(java.util.List sizingRules, int defaultSize, java.lang.String layer)
           
 int computeRowHeaderColumnWidth(java.lang.String layer)
          Computes the column width ( in pixels ) associated with the members of a layer on the pivot table's row header
 int computeRowHeight(QDR sliceQDR)
          Return the row height ( in pixels ) associated with the members of a slice on the pivot table's row header Please note that the return value of this property cannot be used to shrink the height of a row's contents.
protected  int computeSliceSize(java.util.List sizingRules, int defaultSize, QDR sliceQDR)
           
protected  SizingRule findLayerRule(java.util.List sizingRules, java.lang.String layer)
           
protected  SizingRule findSliceRule(java.util.List sizingRules, QDR sliceQDR)
           
 java.util.List<SizingRule> getOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
          Retrieves a List of SizingRules that are overridden by the specified rule.
 void initRules()
          This method is called by the Pivot Table, before asking the SizingManager to compute sizes.
protected  void initRules(java.util.List sizingRules)
           
 void removeOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
          Removes SizingRules, from a List of SizingRules, that are overridden by the specified rule.

 

Methods inherited from class oracle.adf.view.faces.bi.component.pivotTable.SizingManager
getBeanType, getColumnHeaderRowHeightRules, getColumnWidthRules, getDefaultColumnHeaderRowHeight, getDefaultColumnWidth, getDefaultRowHeaderColumnWidth, getDefaultRowHeight, getRowHeaderColumnWidthRules, getRowHeightRules, removeRules, restoreState, setColumnHeaderRowHeightRules, setColumnWidthRules, setDefaultColumnHeaderRowHeight, setDefaultColumnWidth, setDefaultRowHeaderColumnWidth, setDefaultRowHeight, setRowHeaderColumnWidthRules, setRowHeightRules

 

Methods inherited from class oracle.adf.view.faces.bi.component.BIComplexAttributeBase
applyProperties, getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdated

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SizingManagerImpl

public SizingManagerImpl()

Method Detail

computeColumnWidth

public int computeColumnWidth(QDR sliceQDR)
Description copied from class: SizingManager
Return the column width ( in pixels ) associated with the members of a slice on the pivot table's column header
Specified by:
computeColumnWidth in class SizingManager
Parameters:
sliceQDR - a QDR that contains an list of layer-member value pairs of a slice on the column header.
Returns:
int

computeRowHeight

public int computeRowHeight(QDR sliceQDR)
Description copied from class: SizingManager
Return the row height ( in pixels ) associated with the members of a slice on the pivot table's row header Please note that the return value of this property cannot be used to shrink the height of a row's contents. In other words, if the returned row height too small for the row's contents, then the row height will be set to be large enough to view all of the row's contents.
Specified by:
computeRowHeight in class SizingManager
Parameters:
sliceQDR - a QDR that contains an ordered list of layer-member value pairs of a slice on the row header.
Returns:
int

computeRowHeaderColumnWidth

public int computeRowHeaderColumnWidth(java.lang.String layer)
Description copied from class: SizingManager
Computes the column width ( in pixels ) associated with the members of a layer on the pivot table's row header
Specified by:
computeRowHeaderColumnWidth in class SizingManager
Parameters:
layer - the layer on the row header.
Returns:
the column width of the layer on the row header in pixels

computeColumnHeaderRowHeight

public int computeColumnHeaderRowHeight(java.lang.String layer)
Description copied from class: SizingManager
Retrieves the row height ( in pixels ) associated with the members of a layer on the pivot table's column header. Please note that the return value of this property cannot be used to shrink the height of a row's contents. In other words, if the returned row height too small for the row's contents, then the row height will be set to be large enough to view all of the row's contents.
Specified by:
computeColumnHeaderRowHeight in class SizingManager
Parameters:
layer - the layer on the column header.
Returns:
the row height of the layer on the column header in pixels

initRules

public void initRules()
Description copied from class: SizingManager
This method is called by the Pivot Table, before asking the SizingManager to compute sizes.
Specified by:
initRules in class SizingManager

initRules

protected void initRules(java.util.List sizingRules)

findSliceRule

protected SizingRule findSliceRule(java.util.List sizingRules,
                                   QDR sliceQDR)

findLayerRule

protected SizingRule findLayerRule(java.util.List sizingRules,
                                   java.lang.String layer)

computeSliceSize

protected int computeSliceSize(java.util.List sizingRules,
                               int defaultSize,
                               QDR sliceQDR)

computeLayerSize

protected int computeLayerSize(java.util.List sizingRules,
                               int defaultSize,
                               java.lang.String layer)

getOverriddenRules

public java.util.List<SizingRule> getOverriddenRules(java.util.List<SizingRule> rules,
                                                     SizingRule rule)
Retrieves a List of SizingRules that are overridden by the specified rule. By default, SizingManagerImpl only removes: - SliceSizingRuleImpls that override other SliceSizingRuleImpls. - LayerSizingRuleImpls that override other LayerSizingRuleImpls. Therefore, if an application creates custom SliceSizingRules or LayerSizingRules, then it will also need to extend SizingManagerImpl and override this method, if it wants: - its custom rules to be overridden by SliceSizingRuleImpl/LayerSizingRuleImpl - SliceSizingRuleImpl/LayerSizingRuleImpl to be able to override its custom rules. If the rule passed into an application's implmentation of getOverriddenRules() is a SliceSizingRuleImpl/ LayerSizingRuleImpl, then it should call SizingManagerImpl.getOverriddenRules() first, to collect a list of default rules that are overridden by the rule and then it should perform a custom check to see if the rule overrides any custom rules in the list of rules. If the rule passed into an application's implmentation of getOverriddenRules() is a custom rule, then it should perform a custom check to see if any rules in the list are overridden by the custom rule.
Specified by:
getOverriddenRules in class SizingManager
Parameters:
rules - a List of SizingRules
rule - a SizingRule instance that is used to determine the overridden rules
Returns:
a List of overridden SizingRules

removeOverriddenRules

public void removeOverriddenRules(java.util.List<SizingRule> rules,
                                  SizingRule rule)
Removes SizingRules, from a List of SizingRules, that are overridden by the specified rule.
Specified by:
removeOverriddenRules in class SizingManager
Parameters:
rules - a List of SizingRules
rule - a SizingRule instance that is used to determine the overridden rules

Skip navigation links

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

E12063-03


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