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

E12063-04

oracle.dss.graph
Class DataCallback

java.lang.Object
  extended by oracle.dss.graph.DataFilterImpl
      extended by oracle.dss.graph.DataCallback
All Implemented Interfaces:
DataFilter

public class DataCallback
extends DataFilterImpl

For internal use only. Application developers should not use this
The callback that provides data for painting the graph. This callback gets data from a DataAccess and passes the data to Perspective For Java. Perspective For Java then uses the data to paint the graph.

Users of the graph bean normally do not need to call any of the methods in this class.


Field Summary
static java.lang.String a_bubbleLabelsMeasures
           
static java.lang.String a_bubbleMeasures
           
static java.lang.String a_funnelMeasures
           
static java.lang.String a_HLCMeasures
           
static java.lang.String a_HLCVMeasures
           
static java.lang.String a_HLMeasures
           
static java.lang.String a_HLVMeasures
           
static java.lang.String a_OCMeasures
           
static java.lang.String a_OCVMeasures
           
static java.lang.String a_OHLCMeasures
           
static java.lang.String a_OHLCVMeasures
           
static java.lang.String a_scatterLabelsMeasures
           
static java.lang.String a_scatterMeasures
           
static java.lang.String a_totalMeasures
           
protected  CommonGraph m_commonGraph
           
protected  java.util.HashMap m_jsfHashMap
           
protected  boolean m_stringType
           
static java.lang.String name
           
 
Fields inherited from class oracle.dss.graph.DataFilterImpl
BUBBLE_LABELS_TYPE, BUBBLE_TYPE, d_totalMeasures, FUNNEL_TYPE, GROUP_SIZE_FIVE, GROUP_SIZE_FOUR, GROUP_SIZE_THREE, GROUP_SIZE_TWO, HL_TYPE, HLC_TYPE, HLCV_TYPE, HLV_TYPE, m_currentArray, m_currentGroupSize, m_dataModelType, m_filteredParetoIndex, m_filterOn, m_graphCategory, m_graphType, m_isDirtyFlag, m_lessTotalMeasures, m_measuresArrays, m_method_setMeasures2, m_method_setMeasures3, m_nonFilterArray, m_oneGrpLabel, m_paretoIndex, m_seriesAreRows, m_sortingOn, m_totalMeasures, m_unequalLength, NON_FILTER_TYPE, OC_TYPE, OCV_TYPE, OHLC_TYPE, OHLCV_TYPE, SCATTER_LABELS_TYPE, SCATTER_TYPE, TOTAL_CATEGORIES
 
Constructor Summary
DataCallback(CommonGraph commonGraph)
          Constructor.
 
Method Summary
 java.lang.Object columnLabel(int col)
          Retrieves the label for a column.
protected  DataAccess getDataAccess()
           
 int getDataAccessColumn(int row, int col)
          PFJ row, col is converted to dataAccessColumn
 int getDataAccessRow(int row, int col)
          PFJ row, col is converted to dataAccessRow
 java.lang.Object getDateSpan()
          Called by TimeAxis code in PFJ
protected  ErrorHandler getErrorHandler()
           
 java.lang.String getFootnote()
          Retrieves the text of the footnote of the graph.
 java.lang.String getGroupSliceId(int group)
           
 java.lang.String getO1AxisTitle()
          Retrieves the title for the ordinal axis.
 java.lang.String getO2AxisTitle()
           
 java.lang.Object getParentDate()
          Called by TimeAxis code in PFJ
 java.lang.Object getParentDateSpan()
          Called by TimeAxis code in PFJ
 java.lang.String getSeriesSliceId(int series)
           
 java.lang.String getSliceId(int edge, int slice)
           
 java.lang.String getSubtitle()
          Retrieves the text of the subtitle of the graph.
 int getTimeAxisLayer()
          Retrieves the layer of time axis
 java.lang.String getTitle()
          Retrieves the text of the title of the graph.
 java.lang.Object getValue(int row, int col)
          Retrieves the data value at the specified location in the data.
 java.lang.Object getValue(int row, int col, java.lang.String type)
          Retrieves the data value at the specified location in the data.
 java.lang.String getX1AxisTitle()
          Retrieves the title for the X-axis.
protected  oracle.dss.util.xml.ObjectNode getXML(boolean allProperties)
           
 java.lang.String getY1AxisTitle()
          Retrieves the title for the Y1-axis.
 java.lang.String getY2AxisTitle()
          Retrieves the title for the Y2-axis.
protected  void needRec()
           
 java.lang.Object rowLabel(int row)
          Retrieves the label for a row.
 void setGroupLabelType(boolean stringType)
          Specifies if the group label type should be string.
 void setMetadataLabelFlag(boolean changeDefaultKeys)
           
 void setMetadataValueSupported(boolean valueSupported)
           
 void setValue(int row, int col, java.lang.Object value)
          Specifies the data value to store at a specified location in the data.
protected  void setXML(oracle.dss.util.xml.ObjectNode node)
           
protected  void setXML(oracle.dss.util.xml.ObjectNode node, java.util.HashMap map)
           
 
Methods inherited from class oracle.dss.graph.DataFilterImpl
getColumns, getDataAccessColumn, getDataAccessRow, getFilteredColumn, getFilteredRow, getGraphCategory, getGroupSize, getMArray, getMeasures, getMeasures, getRows, getTotalMeasures, isDirty, isExcelOrDeskTop, refresh, setDataModelType, setDataRowShownAsASeries, setDirty, setGraphType, setMArray, setMeasures, setMeasures, setMeasuresForCategory, setTotalMeasures, sortIfDirty
 
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_stringType

protected boolean m_stringType

m_jsfHashMap

protected java.util.HashMap m_jsfHashMap

name

public static final java.lang.String name
See Also:
Constant Field Values

a_totalMeasures

public static final java.lang.String a_totalMeasures
See Also:
Constant Field Values

a_scatterMeasures

public static final java.lang.String a_scatterMeasures
See Also:
Constant Field Values

a_scatterLabelsMeasures

public static final java.lang.String a_scatterLabelsMeasures
See Also:
Constant Field Values

a_bubbleMeasures

public static final java.lang.String a_bubbleMeasures
See Also:
Constant Field Values

a_bubbleLabelsMeasures

public static final java.lang.String a_bubbleLabelsMeasures
See Also:
Constant Field Values

a_OHLCVMeasures

public static final java.lang.String a_OHLCVMeasures
See Also:
Constant Field Values

a_OHLCMeasures

public static final java.lang.String a_OHLCMeasures
See Also:
Constant Field Values

a_HLVMeasures

public static final java.lang.String a_HLVMeasures
See Also:
Constant Field Values

a_OCVMeasures

public static final java.lang.String a_OCVMeasures
See Also:
Constant Field Values

a_OCMeasures

public static final java.lang.String a_OCMeasures
See Also:
Constant Field Values

a_HLMeasures

public static final java.lang.String a_HLMeasures
See Also:
Constant Field Values

a_HLCMeasures

public static final java.lang.String a_HLCMeasures
See Also:
Constant Field Values

a_HLCVMeasures

public static final java.lang.String a_HLCVMeasures
See Also:
Constant Field Values

a_funnelMeasures

public static final java.lang.String a_funnelMeasures
See Also:
Constant Field Values
Constructor Detail

DataCallback

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

Parameters:
commonGraph - The CommonGraph that the graph uses.
Method Detail

columnLabel

public java.lang.Object columnLabel(int col)
Retrieves the label for a column. A column corresponds to a series or to a group, depending on the value that the Graph.isDataRowShownAsASeries method returns.

Parameters:
col - The column to get the label for. The first column is column 0.
Returns:
The label for the specified column.
See Also:
Graph.isDataRowShownAsASeries()

rowLabel

public java.lang.Object rowLabel(int row)
Retrieves the label for a row. A row corresponds to a series or to a group, depending on the value that the Graph.isDataRowShownAsASeries method returns.

Parameters:
row - The row to get the label for. The first row is row 0.
Returns:
The label for the specified row.
See Also:
Graph.isDataRowShownAsASeries()

setGroupLabelType

public void setGroupLabelType(boolean stringType)
Specifies if the group label type should be string. This method is called from Perspective.java


getParentDate

public java.lang.Object getParentDate()
Called by TimeAxis code in PFJ


getParentDateSpan

public java.lang.Object getParentDateSpan()
Called by TimeAxis code in PFJ


getDateSpan

public java.lang.Object getDateSpan()
Called by TimeAxis code in PFJ


getDataAccessRow

public int getDataAccessRow(int row,
                            int col)
PFJ row, col is converted to dataAccessRow


getDataAccessColumn

public int getDataAccessColumn(int row,
                               int col)
PFJ row, col is converted to dataAccessColumn


getValue

public java.lang.Object getValue(int row,
                                 int col)
Retrieves the data value at the specified location in the data. The intersection of the row and column identifies a single data value. Default to DataMap.DATA_UNFORMATTED type

Specified by:
getValue in class DataFilterImpl
Parameters:
row - The index of the row. The first row is row 0.
col - The index of the column. The first column is 0.
Returns:
The data value at the specified location.

getValue

public java.lang.Object getValue(int row,
                                 int col,
                                 java.lang.String type)
Retrieves the data value at the specified location in the data. The intersection of the row and column identifies a single data value.

Parameters:
row - The index of the row. The first row is row 0.
col - The index of the column. The first column is 0.
type - The layer name.\
Returns:
The data value at the specified location.

setValue

public void setValue(int row,
                     int col,
                     java.lang.Object value)
Specifies the data value to store at a specified location in the data. The intersection of a row and column identify the single location in the data, where the value will be stored.

Parameters:
row - The index of the row. The first row is row 0.
col - The index of the column. The first column is column 0.
value - The value to store at the specified location.

getY1AxisTitle

public java.lang.String getY1AxisTitle()
Retrieves the title for the Y1-axis.

Returns:
The text of the Y1Title.
See Also:
BaseTitle.setText(java.lang.String)

getY2AxisTitle

public java.lang.String getY2AxisTitle()
Retrieves the title for the Y2-axis.

Returns:
The text of the Y2Title.
See Also:
BaseTitle.setText(java.lang.String)

getO1AxisTitle

public java.lang.String getO1AxisTitle()
Retrieves the title for the ordinal axis.

Returns:
The text of the O1Title.
See Also:
BaseTitle.setText(java.lang.String)

getO2AxisTitle

public java.lang.String getO2AxisTitle()
Returns:
The text of the O2Title.
For internal use only. Application developers should not use this
Retrieves the title for the second ordinal axis. The BI Beans do not currently support the O2Axis.

getX1AxisTitle

public java.lang.String getX1AxisTitle()
Retrieves the title for the X-axis.

Returns:
The text of the X1Title.
See Also:
BaseTitle.setText(java.lang.String)

getFootnote

public java.lang.String getFootnote()
Retrieves the text of the footnote of the graph.

Returns:
The text of the GraphFootnote.
See Also:
BaseTitle.setText(java.lang.String)

getTitle

public java.lang.String getTitle()
Retrieves the text of the title of the graph.

Returns:
The text of the GraphTitle.
See Also:
BaseTitle.setText(java.lang.String)

getSubtitle

public java.lang.String getSubtitle()
Retrieves the text of the subtitle of the graph.

Returns:
The text of the GraphSubtitle.
See Also:
BaseTitle.setText(java.lang.String)

setMetadataLabelFlag

public void setMetadataLabelFlag(boolean changeDefaultKeys)

setMetadataValueSupported

public void setMetadataValueSupported(boolean valueSupported)

needRec

protected void needRec()
Specified by:
needRec in class DataFilterImpl

getDataAccess

protected DataAccess getDataAccess()
Specified by:
getDataAccess in class DataFilterImpl

getErrorHandler

protected ErrorHandler getErrorHandler()
Specified by:
getErrorHandler in class DataFilterImpl

getTimeAxisLayer

public int getTimeAxisLayer()
Retrieves the layer of time axis

Returns:
the layer for time axis

getGroupSliceId

public java.lang.String getGroupSliceId(int group)
Parameters:
group - group index
Returns:
slice id for the group
For internal use only. Application developers should not use this
Get the slice id for the group. This consists of concatenated slice ids for each column/row in the group separated by ";".

getSeriesSliceId

public java.lang.String getSeriesSliceId(int series)
Parameters:
series - series index
Returns:
slice id for the series
For internal use only. Application developers should not use this
Get the slice id for the series.

getSliceId

public java.lang.String getSliceId(int edge,
                                   int slice)
Parameters:
edge - edge on which slice is located
slice - sliec index
Returns:
slice id for the given edge and slice
For internal use only. Application developers should not use this
Get the slice id for the given edge and slice. The slice id is the value returned from DataAccess.getSliceLabel() for the type MetadataMap.METADATA_VALUE.

setXML

protected void setXML(oracle.dss.util.xml.ObjectNode node,
                      java.util.HashMap map)
For internal use only. Application developers should not use this
Sets XML on this component

setXML

protected void setXML(oracle.dss.util.xml.ObjectNode node)
For internal use only. Application developers should not use this
Sets XML on this DataFilter object

getXML

protected oracle.dss.util.xml.ObjectNode getXML(boolean allProperties)
For internal use only. Application developers should not use this
Retrieves XML from this DataFilter object

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

E12063-04

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