Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


oracle.jbo.uicli.jui
Class JUGraphBinding

java.lang.Object
  |
  +--oracle.jbo.uicli.binding.JUControlBinding
        |
        +--oracle.jbo.uicli.binding.JUCtrlValueBinding
              |
              +--oracle.jbo.uicli.binding.JUCtrlRangeBinding
                    |
                    +--oracle.jbo.uicli.jui.JUGraphBinding
All Implemented Interfaces:
AttributeList, GraphConstants
Direct Known Subclasses:
GraphDataFromRow, JUMasterDetailGraphBinding

public abstract class JUGraphBinding
extends JUCtrlRangeBinding
implements GraphConstants

Data source for the Perspective chart bean.


Field Summary
protected static java.lang.String emptyString
           

 

Fields inherited from interface oracle.jbo.uicli.jui.GraphConstants
BUBBLE_CHART, BUBBLE_CHART_DUAL_AXIS, BUBBLE_CHART_LABELS, BUBBLE_CHART_LABELS_DUAL_AXIS, CANDLE_STOCK_HI_LO_OPEN_CLOSE, CANDLE_STOCK_HI_LO_OPEN_CLOSE_VOLUME, HORIZONTAL_ABSOLUTE_AREA, HORIZONTAL_ABSOLUTE_LINE, HORIZONTAL_BI_POLAR_ABSOLUTE_AREA, HORIZONTAL_BI_POLAR_ABSOLUTE_LINE, HORIZONTAL_BI_POLAR_CLUSTERED_BARS, HORIZONTAL_BI_POLAR_STACKED_AREA, HORIZONTAL_BI_POLAR_STACKED_BARS, HORIZONTAL_BI_POLAR_STACKED_LINE, HORIZONTAL_CLUSTERED_BARS, HORIZONTAL_DUAL_AXIS_ABSOLUTE_LINE, HORIZONTAL_DUAL_AXIS_CLUSTERED_BARS, HORIZONTAL_DUAL_AXIS_STACKED_BARS, HORIZONTAL_DUAL_AXIS_STACKED_LINE, HORIZONTAL_HISTOGRAM, HORIZONTAL_PERCENT_AREA, HORIZONTAL_PERCENT_BARS, HORIZONTAL_PERCENT_LINE, HORIZONTAL_STACKED_AREA, HORIZONTAL_STACKED_BARS, HORIZONTAL_STACKED_LINE, MULTI_PIE, MULTI_PROPORTIONAL_PIE, MULTI_PROPORTIONAL_RING_PIE, MULTI_RING_PIE, OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART, OPEN_HI_LO_CLOSE_CANDLE_STOCK_CHART_VOLUME, PIE, PIE_BAR_CHART, POLAR, POLAR_DUAL_AXIS, RADAR_AREA, RADAR_LINE, RADAR_LINE_DUAL_AXIS, RING_PIE, RING_PIE_BAR_CHART, SPECTRAL_MAP, STOCK_HI_LO, STOCK_HI_LO_BI_POLAR, STOCK_HI_LO_CLOSE, STOCK_HI_LO_CLOSE_DUAL_AXIS, STOCK_HI_LO_DUAL_AXIS, STOCK_HI_LO_OPEN_CLOSE, STOCK_HI_LO_OPEN_CLOSE_BI_POLAR, STOCK_HI_LO_OPEN_CLOSE_DUAL_AXIS, STOCK_HI_LO_OPEN_CLOSE_VOLUME, STOCK_HI_LO_VOLUME, THREED_BARS, THREED_FLOATING_CONNECTED_GROUP_AREA, THREED_FLOATING_CONNECTED_GROUP_RIBBON, THREED_FLOATING_CONNECTED_SERIES_AREA, THREED_FLOATING_CONNECTED_SERIES_RIBBON, THREED_FLOATING_CUBES, THREED_FLOATING_PYRAMIDS, THREED_HONEYCOMB_SURFACE, THREED_OCTAGONS, THREED_PYRAMIDS, THREED_SURFACE, THREED_SURFACE_WITH_SIDES, VERTICAL_ABSOLUTE_AREA, VERTICAL_ABSOLUTE_LINE, VERTICAL_BI_POLAR_ABSOLUTE_AREA, VERTICAL_BI_POLAR_ABSOLUTE_LINE, VERTICAL_BI_POLAR_CLUSTERED_BARS, VERTICAL_BI_POLAR_STACKED_AREA, VERTICAL_BI_POLAR_STACKED_BARS, VERTICAL_BI_POLAR_STACKED_LINE, VERTICAL_CLUSTERED_BARS, VERTICAL_DUAL_AXIS_ABSOLUTE_LINE, VERTICAL_DUAL_AXIS_CLUSTERED_BARS, VERTICAL_DUAL_AXIS_STACKED_BARS, VERTICAL_DUAL_AXIS_STACKED_LINE, VERTICAL_HISTOGRAM, VERTICAL_PERCENT_AREA, VERTICAL_PERCENT_BARS, VERTICAL_PERCENT_LINE, VERTICAL_STACKED_AREA, VERTICAL_STACKED_BARS, VERTICAL_STACKED_LINE, XY_SCATTER, XY_SCATTER_DUAL_AXIS, XY_SCATTER_WITH_LABELS, XY_SCATTER_WITH_LABELS_DUAL_AXIS

 

Constructor Summary
JUGraphBinding(oracle.dss.graph.Graph control, JUIteratorBinding iterBinding, java.lang.String[] dataValueAttrNames)
          Constructor

 

Method Summary
 void addControlToPanel(java.lang.Object panel, java.lang.Object layoutObject, java.lang.Object layoutCons)
          *** For internal framework use only ***
static java.lang.String[] buildAttributeListWithLabel(java.lang.String[] dataValueAttrNames, java.lang.String labelAttrName)
           
protected abstract  int getColumnCount()
           
protected abstract  java.lang.String getColumnLabel(int i)
           
static int getNumberOfColumnPerMarker(int graphType)
          Returns the number of column values required to plot a datapoint.
protected abstract  long getRowCount()
           
protected abstract  java.lang.String getRowLabel(int i)
           
protected abstract  java.lang.Object getValue(int row, int col)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Returns the value as stored in the control at a given row and column index.
 boolean isDirty()
           
protected abstract  void notifyView()
          derived class should override this method and notify the view
protected  void refreshBIBeanAdapter(oracle.jbo.uicli.jui.BIBeanDataAccessAdapter adapter)
           
protected  int rowIndexToRangeIndex(int rowIndex)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          Sets the given value from a BC4J row into the control at the given row/column.
 void updateRowDeleted(DeleteEvent event)
          Notification that a row was deleted in the associated iterator.
 void updateRowInserted(InsertEvent event)
          Notification that a new row was inserted in the associated iterator.
 void updateValuesFromRows(Row[] rows, boolean clear)
          This method is invoked in the framework to update values displayed in the associated control.

 

Methods inherited from class oracle.jbo.uicli.binding.JUCtrlRangeBinding
getEstimatedRowCount, refreshControl, updateNavigated, updateRangeScrolled, updateValuesFromRow

 

Methods inherited from class oracle.jbo.uicli.binding.JUCtrlValueBinding
findAttributeDef, getAttribute, getAttribute, getAttributeCount, getAttributeDef, getAttributeDefs, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf, getAttributeNames, getAttributeValues, isArrayIteratorType, isAttributeUpdateable, setArrayIteratorType, setAttribute, setAttribute, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, setAttributeInRow, stopEditing

 

Methods inherited from class oracle.jbo.uicli.binding.JUControlBinding
executeQuery, executeQueryIfNeeded, getAllRowsInRange, getApplicationModule, getControl, getCurrentRow, getDef, getFormBinding, getIteratorBinding, getLayoutObject, getName, getRowAtRangeIndex, getRowIterator, getTransaction, getViewObject, isControlQueriable, reportException, reportException, setFormBinding, setName

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

emptyString

protected static final java.lang.String emptyString
See Also:
Constant Field Values
Constructor Detail

JUGraphBinding

public JUGraphBinding(oracle.dss.graph.Graph control,
JUIteratorBinding iterBinding,
                      java.lang.String[] dataValueAttrNames)
Constructor
Parameters:
iterBinding - Supplies label for columns and data values for the chart. Last column is treated as label.
Method Detail

getColumnLabel

protected abstract java.lang.String getColumnLabel(int i)

getColumnCount

protected abstract int getColumnCount()

getRowLabel

protected abstract java.lang.String getRowLabel(int i)

getRowCount

protected abstract long getRowCount()

getValue

protected abstract java.lang.Object getValue(int row,
                                             int col)

getNumberOfColumnPerMarker

public static int getNumberOfColumnPerMarker(int graphType)
Returns the number of column values required to plot a datapoint. For example, in the case of HLC graph, three values are needed per marker, or in the case of XY graph, two values are needed.
Returns:
number Value count per marker.

rowIndexToRangeIndex

protected int rowIndexToRangeIndex(int rowIndex)

isDirty

public boolean isDirty()

addControlToPanel

public void addControlToPanel(java.lang.Object panel,
                              java.lang.Object layoutObject,
                              java.lang.Object layoutCons)
Description copied from class: JUControlBinding
*** For internal framework use only ***
Specified by:
addControlToPanel in class JUControlBinding

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Description copied from class: JUCtrlRangeBinding
Returns the value as stored in the control at a given row and column index. This value is used by the binding to update attribute values in BC4J rows.
Specified by:
getValueAt in class JUCtrlRangeBinding

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Description copied from class: JUCtrlRangeBinding
Sets the given value from a BC4J row into the control at the given row/column. This method is used by the framework to pass attribute values from Row objects into a control with which this binding works.
Specified by:
setValueAt in class JUCtrlRangeBinding

updateValuesFromRows

public void updateValuesFromRows(Row[] rows,
                                 boolean clear)
Description copied from class: JUCtrlRangeBinding
This method is invoked in the framework to update values displayed in the associated control. This implementation updates all values given in the array of rows irrespective of the clear flag (which indicates whether to clear out the existing displayed values or not).
Overrides:
updateValuesFromRows in class JUCtrlRangeBinding

updateRowInserted

public void updateRowInserted(InsertEvent event)
Description copied from class: JUCtrlValueBinding
Notification that a new row was inserted in the associated iterator. Control-bindings like JTable refresh their display to show the new row on this event.
Overrides:
updateRowInserted in class JUCtrlValueBinding

updateRowDeleted

public void updateRowDeleted(DeleteEvent event)
Description copied from class: JUCtrlValueBinding
Notification that a row was deleted in the associated iterator. Moves the currency on the associated row iterator to the next row (or previous row if there is no next row) when the currency on the iterator was on the deleted row.
Overrides:
updateRowDeleted in class JUCtrlValueBinding

notifyView

protected abstract void notifyView()
derived class should override this method and notify the view

refreshBIBeanAdapter

protected void refreshBIBeanAdapter(oracle.jbo.uicli.jui.BIBeanDataAccessAdapter adapter)

buildAttributeListWithLabel

public static java.lang.String[] buildAttributeListWithLabel(java.lang.String[] dataValueAttrNames,
                                                             java.lang.String labelAttrName)

Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


 

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