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

E12063-07

oracle.dss.graph
Class GraphNumberFormatCallback

java.lang.Object
  extended by oracle.dss.graph.pfj.NumberFormatCallBack
      extended by oracle.dss.graph.GraphNumberFormatCallback

public class GraphNumberFormatCallback
extends oracle.dss.graph.pfj.NumberFormatCallBack

See Also:
GraphFormatManager, GraphRuleFormatter, ViewFormat
For internal use only. Application developers should not use this
The callback that provides the formatted numbers that appear in the graph. This callback formats numbers, based on information from the GraphFormatManager. It passes the formatted numbers to Perspective For Java, which paints the numbers.

Application developers should not have to call the methods in this class.


Field Summary
protected  int m_column
           
protected  CommonGraph m_commonGraph
           
protected  int m_row
           
protected  int m_valueType
           
 
Fields inherited from class oracle.dss.graph.pfj.NumberFormatCallBack
AXIS_LABEL, CLOSE, DATA_LABEL, DATA_LABEL_HILO_VOL, FUNNEL_LABEL, HIGH, LOW, m_dAxisMax, m_dAxisMin, m_dAxisStep, OPEN, PERCENTAGE_VALUE, PIE_BAR_VALUE, PIE_LABEL, PIE_PERCENTAGE_VALUE, PIE_TOTAL, TOOLTIP_VALUE, VOLUME, XVALUE, YVALUE, ZVALUE
 
Constructor Summary
GraphNumberFormatCallback(CommonGraph g)
          Constructor.
 
Method Summary
 ViewFormat getMarkerTextViewFormat(int seriesID)
          Retrieves the ViewFormat for the marker text for a data value in the graph.
 ViewFormat getMarkerTextViewFormat(int seriesID, int groupID)
           
 ViewFormat getTooltipViewFormat(int valueType)
          Returns a viewFormat for use in exporting viewFormat information to flash xml content.
 java.lang.String toString(double dVal)
          Converts a data value to a formatted String.
 
Methods inherited from class oracle.dss.graph.pfj.NumberFormatCallBack
getAxisLabelOrdinalPosition, getAxisMax, getAxisMin, getAxisStep, getGroup, getLabelType, getSeries, getValueType, init, isAxisLabel, isX1AxisLabel, isY1AxisLabel, isY2AxisLabel, isY3AxisLabel, isY4AxisLabel, isY5AxisLabel, isZ1AxisLabel, setAxisMax, setAxisMin, setAxisStep, setState, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_commonGraph

protected CommonGraph m_commonGraph

m_row

protected int m_row

m_column

protected int m_column

m_valueType

protected int m_valueType
Constructor Detail

GraphNumberFormatCallback

public GraphNumberFormatCallback(CommonGraph g)
Constructor. Application developers should not have to construct this object, because the graph does it automatically.

Parameters:
g - The graph that uses this callback.
Method Detail

getTooltipViewFormat

public ViewFormat getTooltipViewFormat(int valueType)
Returns a viewFormat for use in exporting viewFormat information to flash xml content.

Parameters:
valueType - int constant beginning with MarkerText.VF_
Returns:
ViewFormat for the valueType specified
For internal use only. Application developers should not use this

getMarkerTextViewFormat

public ViewFormat getMarkerTextViewFormat(int seriesID,
                                          int groupID)

getMarkerTextViewFormat

public ViewFormat getMarkerTextViewFormat(int seriesID)
Retrieves the ViewFormat for the marker text for a data value in the graph. The ViewFormat specifies the properties that are used to format the numbers that appear in MarkerText components.

Application developers should not have to call this method.

Parameters:
seriesID - The series that the MarkerText belongs to.
Returns:
The ViewFormat to use for formatting the data at the specified series and group.

toString

public java.lang.String toString(double dVal)
Converts a data value to a formatted String. This method determines the current graph type and the location and situation of the data value that is to be formatted. It then calls the GraphFormatManager for the graph, to have the data value formatted according to any rules that are in place. This method then returns the formatted String to Perspective For Java, which displays it in the graph.

Application developers should not have to call this method.

Overrides:
toString in class oracle.dss.graph.pfj.NumberFormatCallBack
Parameters:
dVal - The value to format.
Returns:
The formatted data value.
See Also:
GraphFormatManager, Rule

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

E12063-07

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