Oracle Data-aware Controls Reference

oracle.dacf.control.tdg.chart
Class LabelAwareChartDataSource

java.lang.Object
  |
  +--oracle.dacf.control.tdg.chart.ChartDataSource
        |
        +--oracle.dacf.control.tdg.chart.MappedChartDataSource
              |
              +--oracle.dacf.control.tdg.chart.LabelAwareChartDataSource
All Implemented Interfaces:
javax.infobus.DataItemChangeListener, tdg.data.in.TDGDataGrid
Direct Known Subclasses:
ColOrderChartDataSource, RowOrderChartDataSource

public class LabelAwareChartDataSource
extends MappedChartDataSource

Data source for the chart control which implements method to return labels. By default column 0 is used as labels for the row

See Also:
ChartLabelDataSource

Field Summary
protected  boolean _useFirstColumnAsRowLabel
           
 
Fields inherited from class oracle.dacf.control.tdg.chart.ChartDataSource
_control, _rowset, _view
 
Constructor Summary
LabelAwareChartDataSource(oracle.dacf.control.tdg.ChartControl parent)
          Constructor
 
Method Summary
 java.lang.String columnLabel(int i)
           
 java.lang.Object[] getColumnLabel()
           
 java.lang.String getColumnLabelDataItemName()
          data item name for the row labels, if used
 ChartLabelDataSource getColumnLabelDataSource()
           
 int getColumns()
           
 java.lang.Object[] getRowLabel()
           
 java.lang.String getRowLabelDataItemName()
          data item name for the row labels, if used
 ChartLabelDataSource getRowLabelDataSource()
           
 int getRows()
           
 boolean getUseFirstColumnAsRowLabel()
           
 java.lang.Object getValue(int row, int col)
           
 java.lang.String rowLabel(int i)
           
 void setColumnLabel(java.lang.Object[] labels)
           
 void setColumnLabelDataItemName(java.lang.String dataItemName)
          Specify data source for row labels.
 void setColumnLabelDataSource(ChartLabelDataSource labelSource)
           
 void setRowLabel(java.lang.Object[] labels)
           
 void setRowLabelDataItemName(java.lang.String dataItemName)
          Specify data source for row labels.
 void setRowLabelDataSource(ChartLabelDataSource labelSource)
           
 void setUseFirstColumnAsRowLabel(boolean flag)
           
 
Methods inherited from class oracle.dacf.control.tdg.chart.ChartDataSource
_updateBufferSize, dataItemAdded, dataItemChanged, dataItemDeleted, dataItemRevoked, dataItemValueChanged, getFootnote, getO1AxisTitle, getO2AxisTitle, getSubtitle, getTitle, getX1AxisTitle, getY1AxisTitle, getY2AxisTitle, isDirty, rowsetCursorMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_useFirstColumnAsRowLabel

protected boolean _useFirstColumnAsRowLabel
Constructor Detail

LabelAwareChartDataSource

public LabelAwareChartDataSource(oracle.dacf.control.tdg.ChartControl parent)
Constructor
Method Detail

setUseFirstColumnAsRowLabel

public void setUseFirstColumnAsRowLabel(boolean flag)

getUseFirstColumnAsRowLabel

public boolean getUseFirstColumnAsRowLabel()

columnLabel

public java.lang.String columnLabel(int i)
Overrides:
columnLabel in class ChartDataSource

getColumns

public int getColumns()
Overrides:
getColumns in class ChartDataSource

rowLabel

public java.lang.String rowLabel(int i)
Overrides:
rowLabel in class ChartDataSource

getRows

public int getRows()
Overrides:
getRows in class ChartDataSource

getValue

public java.lang.Object getValue(int row,
                                 int col)
Overrides:
getValue in class ChartDataSource

setRowLabelDataItemName

public void setRowLabelDataItemName(java.lang.String dataItemName)
Specify data source for row labels. The labels could be

The dataitem name of the column should be specified to indicate the column values of a table

The dataitem name of the rowset should be specified to indicate the column display name of some table

Overrides:
setRowLabelDataItemName in class ChartDataSource
Parameters:
dataitemName - of the column values or the rowset
See Also:
setRowLabelDataSource(Object)

getRowLabelDataItemName

public java.lang.String getRowLabelDataItemName()
data item name for the row labels, if used
Overrides:
getRowLabelDataItemName in class ChartDataSource

setRowLabelDataSource

public void setRowLabelDataSource(ChartLabelDataSource labelSource)
Overrides:
setRowLabelDataSource in class ChartDataSource

getRowLabelDataSource

public ChartLabelDataSource getRowLabelDataSource()
Overrides:
getRowLabelDataSource in class ChartDataSource

setRowLabel

public void setRowLabel(java.lang.Object[] labels)
Overrides:
setRowLabel in class ChartDataSource

getRowLabel

public java.lang.Object[] getRowLabel()
Overrides:
getRowLabel in class ChartDataSource

setColumnLabelDataItemName

public void setColumnLabelDataItemName(java.lang.String dataItemName)
Specify data source for row labels. The labels could be

The dataitem name of the column should be specified to indicate the column values of a table

The dataitem name of the rowset should be specified to indicate the column display name of some table

Overrides:
setColumnLabelDataItemName in class ChartDataSource
Parameters:
dataitemName - of the column values or the rowset
See Also:
setRowLabelDataSource(Object)

getColumnLabelDataItemName

public java.lang.String getColumnLabelDataItemName()
data item name for the row labels, if used
Overrides:
getColumnLabelDataItemName in class ChartDataSource

setColumnLabelDataSource

public void setColumnLabelDataSource(ChartLabelDataSource labelSource)
Overrides:
setColumnLabelDataSource in class ChartDataSource

getColumnLabelDataSource

public ChartLabelDataSource getColumnLabelDataSource()
Overrides:
getColumnLabelDataSource in class ChartDataSource

setColumnLabel

public void setColumnLabel(java.lang.Object[] labels)
Overrides:
setColumnLabel in class ChartDataSource

getColumnLabel

public java.lang.Object[] getColumnLabel()
Overrides:
getColumnLabel in class ChartDataSource

Oracle Data-aware Controls Reference