|
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.dss.dataView.managers.RuleManager
oracle.dss.graph.managers.GraphRuleFormatter
public class GraphRuleFormatter
Field Summary | |
---|---|
protected ViewFormat |
m_viewFormat
|
Fields inherited from class oracle.dss.dataView.managers.RuleManager |
---|
m_bundles, m_context, m_dataview, m_uiBundle, UIBUNDLE_NAME |
Constructor Summary | |
---|---|
GraphRuleFormatter()
NEW Class constructor. |
Method Summary | |
---|---|
void |
dataSourceChanged()
NEW This implementation does nothing. |
java.lang.String |
formatAxisValue(double data,
ViewFormat componentFormat,
double maxValue,
double minValue,
double tickStep,
int axisID,
boolean isPercent,
boolean bLogScale,
double logBase)
Given a data object return a formatted version of that data object for the given graph axis location. |
java.lang.String |
formatAxisValue(double data,
ViewFormat componentFormat,
double maxValue,
double minValue,
int axisID,
boolean isPercent)
Deprecated. As of 1.7.0.10, replaced by formatAxisValue(double, ViewFormat, double, double, double, int, boolean, boolean, double) . |
java.lang.Object |
formatDataValue(DataviewCommon view,
java.lang.Object data,
int column,
int row,
int[] pageHPos,
ViewFormat vf)
Given a data object return a formatted version of that data object for the given data plane location. |
java.lang.String |
formatDataValue(double data,
ViewFormat componentFormat,
int axisID,
int column,
int row,
boolean isPercent,
QDR qdr,
boolean isTooltip)
NEW Given a data object return a formatted version of that data object for the given data plane location. |
protected void |
formatLinearScaleAxisValue(double minValue,
double maxValue,
double tickStep,
ViewFormat format,
boolean bUseDefaultScaleFactor,
boolean bUseDefaultDecimalDigit)
Format an axis label for an axis with a linear scale. |
protected void |
formatLogScaleAxisValue(double logBase,
double data,
ViewFormat format,
boolean bUseDefaultScaleFactor,
boolean bUseDefaultDecimalDigit)
Format an axis label for an axis with a logarithmic scale. |
java.lang.String |
formatPieValue(double data,
ViewFormat componentFormat,
boolean isPercent,
QDR qdr,
boolean isTooltip)
Given a data object return a formatted version of that data object for the given data plane location. |
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties,
DataviewCommon dataview)
|
boolean |
isUsingRuleBundles()
Method used by GraphExportXMLWriter to indicate whether rule bundles are being used. |
void |
setUIBundle(DataviewCommon view,
RuleBundle bundle)
Set the RuleBundle used by the UI. |
Methods inherited from class oracle.dss.dataView.managers.RuleManager |
---|
getBundles, getUIBundle, getXML, setBundles, setContext, setXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.dataView.FormatManager |
---|
getBundles, setBundles |
Methods inherited from interface oracle.dss.dataView.UIBundle |
---|
getUIBundle |
Field Detail |
---|
protected ViewFormat m_viewFormat
Constructor Detail |
---|
public GraphRuleFormatter()
Method Detail |
---|
public void dataSourceChanged()
dataSourceChanged
in interface Manager
dataSourceChanged
in class RuleManager
public java.lang.String formatAxisValue(double data, ViewFormat componentFormat, double maxValue, double minValue, int axisID, boolean isPercent)
formatAxisValue(double, ViewFormat, double, double, double, int, boolean, boolean, double)
.
formatAxisValue
in interface GraphFormatManager
data
- a double containing the data value to formatmaxValue
- a double which is the maximum data value plotted on this axisminValue
- a double which is the minimum data value plotted on this axisaxisID
- an integer identifying the axis with which this value is associatedisPercent
- a boolean indicating if this is a percentage value
public java.lang.String formatAxisValue(double data, ViewFormat componentFormat, double maxValue, double minValue, double tickStep, int axisID, boolean isPercent, boolean bLogScale, double logBase)
formatAxisValue
in interface GraphFormatManager
data
- a double containing the data value to formatmaxValue
- a double which is the maximum data value plotted on this axisminValue
- a double which is the minimum data value plotted on this axistickStep
- the increment between data label values on this axisaxisID
- an integer identifying the axis with which this value is associatedisPercent
- a boolean indicating if this is a percentage valuebLogScale
- boolean indicating if this axis has a logarithmic scalelogBase
- if the axis is scaled logarithmically, the base of the scale
protected void formatLinearScaleAxisValue(double minValue, double maxValue, double tickStep, ViewFormat format, boolean bUseDefaultScaleFactor, boolean bUseDefaultDecimalDigit)
minValue
- the minimum value on the axismaxValue
- the maximum value on the axistickStep
- the tick step between values on the axisformat
- the ViewFormat used to format the labelbUseDefaultScaleFactor
- true if a default value for ScaleFactor should
be calculated, false otherwisebUseDefaultDecimalDigit
- true if a default value for DecimalDigit should
be calculated, false otherwiseprotected void formatLogScaleAxisValue(double logBase, double data, ViewFormat format, boolean bUseDefaultScaleFactor, boolean bUseDefaultDecimalDigit)
logBase
- the base of the log scaledata
- the data label to be formattedformat
- the ViewFormat used to format the labelbUseDefaultScaleFactor
- true if a default value for ScaleFactor should
be calculated, false otherwisebUseDefaultDecimalDigit
- true if a default value for DecimalDigit should
be calculated, false otherwisepublic java.lang.String formatPieValue(double data, ViewFormat componentFormat, boolean isPercent, QDR qdr, boolean isTooltip)
formatPieValue
in interface GraphFormatManager
data
- the data value to formatisPercent
- a boolean indicating if this is a percentage valueisTooltip
- a boolean indicating if this value is part of a tooltipcomponentFormat
- The default ViewFormat
to apply to the data value.qdr
- The QDR
that identifies the dimension members to
which the data value belongs.
public java.lang.String formatDataValue(double data, ViewFormat componentFormat, int axisID, int column, int row, boolean isPercent, QDR qdr, boolean isTooltip)
formatDataValue
in interface GraphFormatManager
data
- the data value to formataxisID
- an integer identifying the axis with which this value is associatedcolumn
- an int specifying the column associated with this data valuerow
- an int specifying the row associated with this data valueisPercent
- a boolean indicating if this is a percentage valueisTooltip
- a boolean indicating if this value is part of a tooltipcomponentFormat
- The default ViewFormat
to apply to the data value.qdr
- The QDR
that identifies the dimension members to
which the data value belongs.
public java.lang.Object formatDataValue(DataviewCommon view, java.lang.Object data, int column, int row, int[] pageHPos, ViewFormat vf)
FormatManager
formatDataValue
in interface FormatManager
view
- the view needing formatting resolutiondata
- the data to formatcolumn
- the across location of this data itemrow
- the down location of this data itempageHPos
- the hPos of the page on which this data item residesvf
- ViewFormat which may be used in the formatting
public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties, DataviewCommon dataview)
public void setUIBundle(DataviewCommon view, RuleBundle bundle)
setUIBundle
in interface UIBundle
setUIBundle
in class RuleManager
view
- the view the RuleBundle applies tobundle
- the new RuleBundle used by the UIpublic boolean isUsingRuleBundles()
|
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 |