|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.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()
|
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 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)
|
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
- a QDR that contains an list of layer-member value pairs of a slice on the column header.
int
public int computeRowHeight(QDR sliceQDR)
SizingManager
computeRowHeight
in class SizingManager
sliceQDR
- a QDR that contains an ordered list of layer-member value pairs of a slice on the row header.
int
public int computeRowHeaderColumnWidth(java.lang.String layer)
SizingManager
computeRowHeaderColumnWidth
in class SizingManager
layer
- the layer on the row header.
public int computeColumnHeaderRowHeight(java.lang.String layer)
SizingManager
computeColumnHeaderRowHeight
in class SizingManager
layer
- the layer on the column header.
public void initRules()
SizingManager
initRules
in class SizingManager
protected void initRules(java.util.List sizingRules)
protected SizingRule findSliceRule(java.util.List sizingRules, QDR sliceQDR)
protected SizingRule findLayerRule(java.util.List sizingRules, java.lang.String layer)
protected int computeSliceSize(java.util.List sizingRules, int defaultSize, QDR sliceQDR)
protected int computeLayerSize(java.util.List sizingRules, int defaultSize, java.lang.String layer)
public 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 rules
List
of overridden SizingRule
spublic void removeOverriddenRules(java.util.List<SizingRule> rules, SizingRule rule)
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 ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |