|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 2 (11.1.2.2.0) E17492-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.faces.bi.component.BIComplexAttributeBase
oracle.adf.view.faces.bi.component.pivotTable.SizingManager
oracle.adf.view.faces.bi.component.pivotTable.SizingManagerImpl
public class SizingManagerImpl
The pivot table's default SizingManager
implementation.
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() Sole constructor. |
Method Summary | |
---|---|
int |
computeColumnHeaderRowHeight(java.lang.String layer) Returns the height in pixels of a layer on the pivot table's column header. |
int |
computeColumnWidth(QDR sliceQDR) Returns the width in pixels of the specified pivot table column. |
protected int |
computeLayerSize(java.util.List sizingRules, int defaultSize, java.lang.String layer) Returns the size in pixels of the specified layer. |
int |
computeRowHeaderColumnWidth(java.lang.String layer) Returns the width in pixels of a layer on the pivot table's row header. |
int |
computeRowHeight(QDR sliceQDR) Returns the height in pixels of the specified pivot table row. |
protected int |
computeSliceSize(java.util.List sizingRules, int defaultSize, QDR sliceQDR) Returns the size in pixels of the specified slice. |
protected SizingRule |
findLayerRule(java.util.List sizingRules, java.lang.String layer) Returns the last rule in the specified list that applies to the specified layer, or null if the list contains no such rule. |
protected SizingRule |
findSliceRule(java.util.List sizingRules, QDR sliceQDR) Returns the last rule in the specified list that applies to the specified slice, or null if the list contains no such rule. |
java.util.List<SizingRule> |
getOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule) Retrieves a List of SizingRule s 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) Initializes all of the rules in the provided list. |
void |
removeOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule) Removes SizingRule s, from a List of SizingRule s, 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 |
---|
public SizingManagerImpl()
Method Detail |
---|
public int computeColumnWidth(QDR sliceQDR)
SizingManager
computeColumnWidth
in class SizingManager
sliceQDR
- the QDR
of the desired column, containing a key/value pair for each header cell in the columnpublic int computeRowHeight(QDR sliceQDR)
SizingManager
computeRowHeight
in class SizingManager
sliceQDR
- the QDR
of the desired row, containing a key/value pair for each header cell in the rowpublic int computeRowHeaderColumnWidth(java.lang.String layer)
SizingManager
computeRowHeaderColumnWidth
in class SizingManager
layer
- the layer on the row headerpublic int computeColumnHeaderRowHeight(java.lang.String layer)
SizingManager
computeColumnHeaderRowHeight
in class SizingManager
layer
- the layer on the column headerpublic void initRules()
SizingManager
SizingManager
to compute sizes.initRules
in class SizingManager
protected void initRules(java.util.List sizingRules)
sizingRules
- the rules to initializeprotected SizingRule findSliceRule(java.util.List sizingRules, QDR sliceQDR)
null
if the list contains no such rule.sizingRules
- the list of sizing rulessliceQDR
- the QDR
of the slicenull
protected SizingRule findLayerRule(java.util.List sizingRules, java.lang.String layer)
null
if the list contains no such rule.sizingRules
- the list of sizing ruleslayer
- the layer of interestnull
protected int computeSliceSize(java.util.List sizingRules, int defaultSize, QDR sliceQDR)
sizingRules
- the sizing rules that might indicate a size for the slicedefaultSize
- the size to use if none of the sizing rules apply to the slicesliceQDR
- the QDR
of the slice of interestprotected int computeLayerSize(java.util.List sizingRules, int defaultSize, java.lang.String layer)
sizingRules
- the sizing rules that might indicate a size for the layerdefaultSize
- the size to use if none of the sizing rules apply to the layerlayer
- the layer of interestpublic java.util.List<SizingRule> getOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
List
of SizingRule
s that are overridden by the specified rule. By default, SizingManagerImpl
only removes: - SliceSizingRuleImpl
s that override other SliceSizingRuleImpl
s. - LayerSizingRuleImpl
s that override other LayerSizingRuleImpl
s. Therefore, if an application creates custom SliceSizingRule
s or LayerSizingRule
s, 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.getOverriddenRules
in class SizingManager
rules
- a List
of SizingRule
srule
- a SizingRule
instance that is used to determine the overridden rulesList
of overridden SizingRule
spublic void removeOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
SizingManager
SizingRule
s, from a List
of SizingRule
s, that are overridden by the specified rule.removeOverriddenRules
in class SizingManager
rules
- a List
of SizingRule
srule
- a SizingRule
instance that is used to determine the overridden rules
|
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 2 (11.1.2.2.0) E17492-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |