Oracle Data-aware Controls Reference

oracle.dacf.control.tdg.chart
Class LabelAwareChartDataSource

java.lang.Object
  extended byoracle.dacf.control.tdg.chart.ChartDataSource
      extended byoracle.dacf.control.tdg.chart.MappedChartDataSource
          extended byoracle.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)
Specified by:
columnLabel in interface tdg.data.in.TDGDataGrid
Specified by:
columnLabel in class ChartDataSource

getColumns

public int getColumns()
Specified by:
getColumns in interface tdg.data.in.TDGDataGrid
Overrides:
getColumns in class ChartDataSource

rowLabel

public java.lang.String rowLabel(int i)
Specified by:
rowLabel in interface tdg.data.in.TDGDataGrid
Specified by:
rowLabel in class ChartDataSource

getRows

public int getRows()
Specified by:
getRows in interface tdg.data.in.TDGDataGrid
Overrides:
getRows in class ChartDataSource

getValue

public java.lang.Object getValue(int row,
                                 int col)
Specified by:
getValue in interface tdg.data.in.TDGDataGrid
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

Specified by:
setRowLabelDataItemName in class ChartDataSource
See Also:
setRowLabelDataSource(Object)

getRowLabelDataItemName

public java.lang.String getRowLabelDataItemName()
data item name for the row labels, if used

Specified by:
getRowLabelDataItemName in class ChartDataSource

setRowLabelDataSource

public void setRowLabelDataSource(ChartLabelDataSource labelSource)
Specified by:
setRowLabelDataSource in class ChartDataSource

getRowLabelDataSource

public ChartLabelDataSource getRowLabelDataSource()
Specified by:
getRowLabelDataSource in class ChartDataSource

setRowLabel

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

getRowLabel

public java.lang.Object[] getRowLabel()
Specified by:
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

Specified by:
setColumnLabelDataItemName in class ChartDataSource
See Also:
setRowLabelDataSource(Object)

getColumnLabelDataItemName

public java.lang.String getColumnLabelDataItemName()
data item name for the row labels, if used

Specified by:
getColumnLabelDataItemName in class ChartDataSource

setColumnLabelDataSource

public void setColumnLabelDataSource(ChartLabelDataSource labelSource)
Specified by:
setColumnLabelDataSource in class ChartDataSource

getColumnLabelDataSource

public ChartLabelDataSource getColumnLabelDataSource()
Specified by:
getColumnLabelDataSource in class ChartDataSource

setColumnLabel

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

getColumnLabel

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

Oracle Data-aware Controls Reference

 

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