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.
Type | Field |
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 |
Type | Method |
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)
How many column values are required for a data point ?. |
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.JUCtrlValueBinding |
findAttributeDef, getAttribute, getAttribute,
getAttributeCount, getAttributeDef, getAttributeDefs,
getAttributeFromRow, getAttributeFromRow,
getAttributeFromRow, getAttributeFromRow, getAttributeFromRow, getAttributeIndexOf,
getAttributeNames, isAttributeUpdateable, 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, setFormBinding,
setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyString
protected static final java.lang.String emptyString
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
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)
- How many column values are required for a data point ?.
In the case HLC graph, three values are needed per marker.,
and in the case of XY two values are needed etc.,
- Returns:
- number of values 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 ***
- Overrides:
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.
- Overrides:
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.
- Overrides:
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)