| 
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 2 (11.1.2.0.0) E17492-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.dataView.ModelAdapter
oracle.dss.graph.GraphModelAdapter
public class GraphModelAdapter
DataSource is the "big"
 model.
 This model interacts with the DataSource, retrieving data
 and having the data formatted so that the view can display it.
 Users of the graph bean normally do not need to call any of the methods of this class.
| Field Summary | |
|---|---|
protected  GraphFormatManager | 
m_graphFormatManager
 | 
protected  GraphStyleManager | 
m_graphStyleManager
 | 
protected  Graph | 
m_graphView
 | 
| Fields inherited from class oracle.dss.dataView.ModelAdapter | 
|---|
dataAccess, dataDirector, dataDirectorFactory, drillingEnabled, INITIAL_DATA_COLUMN, INITIAL_DATA_ROW, INITIAL_EDGE_SIZE, listenerList, m_eh, metadataAccess | 
| Fields inherited from interface oracle.dss.dataView.Model | 
|---|
VIEW_PAGE_FIRST, VIEW_PAGE_LAST, VIEW_PAGE_NEXT, VIEW_PAGE_PREVIOUS | 
| Constructor Summary | |
|---|---|
GraphModelAdapter(Graph graphView)
Constructor that does not specify a DataSource. | 
|
GraphModelAdapter(Graph graphView,
                  DataSource dataSource)
Constructor that specifies a DataSource. | 
|
| Method Summary | |
|---|---|
 DataMap | 
getDataMap()
 | 
 GraphFormatManager | 
getGraphFormatManager()
Retrieves the format manager that the graph uses.  | 
 GraphStyleManager | 
getGraphStyleManager()
Retrieves the style manager that the graph uses.  | 
 Graph | 
getGraphView()
Retrieves the graph that uses this model.  | 
 LayerMetadataMap | 
getLayerMetadataMap(int edge)
 | 
 MetadataMap | 
getMetadataMap(int edge)
 | 
protected  void | 
initDefaults(GraphDefaultValues gdv)
Initialize default values from the given GraphDefaultValues instance.  | 
 void | 
setDataSource(DataSource ds)
Specifies the DataSource. | 
 void | 
setGraphFormatManager(GraphFormatManager m)
Specifies the format manager that the graph uses.  | 
 void | 
setGraphStyleManager(GraphStyleManager m)
Specifies the style manager that the graph uses.  | 
protected  void | 
setSupportedDataLayerFlags()
This method overrides the setSupportedDataLayerFlags in ModelAdapter
 It checks the supported data layers in datasource and set the data layer
 flags to true or false. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface oracle.dss.dataView.Model | 
|---|
addDataListener, addModelListener, canDrill, canPivot, drillGestureHappened, getControllerActions, getDataAccess, getDataDirector, getDataSource, getErrorHandler, isDrillingEnabled, pageChangeHappened, pageChangeHappened, pivotGestureHappened, removeDataListener, removeModelListener, setDataAccess, setDataDirector, setDrillingEnabled, setErrorHandler, viewDataChanged | 
| Field Detail | 
|---|
protected Graph m_graphView
protected GraphFormatManager m_graphFormatManager
protected GraphStyleManager m_graphStyleManager
| Constructor Detail | 
|---|
public GraphModelAdapter(Graph graphView)
DataSource.
 The graph constructs this object as part of its initialization.
graphView - The graph that uses this model.
public GraphModelAdapter(Graph graphView,
                         DataSource dataSource)
DataSource.
 The graph constructs this object as part of its initialization.
graphView - The graph that uses this model.dataSource - The DataSource that will feed data to
                   the graph. Do not pass null for this
                   parameter.| Method Detail | 
|---|
protected void initDefaults(GraphDefaultValues gdv)
public void setDataSource(DataSource ds)
DataSource.
setDataSource in interface ModelsetDataSource in class ModelAdapterds - The DataSource that feeds data to the graph.protected void setSupportedDataLayerFlags()
ModelAdapter
 It checks the supported data layers in datasource and set the data layer
 flags to true or false. If a required data layer is not supported
 create a TypeNotSupportedException, else if a requested data layer
 is not supported, log an error message to ErrorHandler
setSupportedDataLayerFlags in class ModelAdapterpublic DataMap getDataMap()
getDataMap in class ModelAdapterDataMap.DataMap.
 This method creates a new DataMap for retrieving unformatted
 data from the DataSource.
 Called by the superclass.public MetadataMap getMetadataMap(int edge)
getMetadataMap in class ModelAdapteredge - The edge for which the MetadataMap is needed.
MetadatMap.MetadataMap.
 This method creates a new MetadataMap for retrieving
 metadata values, such as member labels.
 Called by the superclass.public LayerMetadataMap getLayerMetadataMap(int edge)
getLayerMetadataMap in class ModelAdapteredge - The edge for which the LayerMetadataMap is
             needed.
LayerMetadataMap.LayerMetadataMap.
 This method creates a new LayerMetadataMap for retrieving
 metadata values, such as labels.
 Called by the superclass.public GraphFormatManager getGraphFormatManager()
getFormatManager method calls this method.
getGraphFormatManager in interface GraphModelpublic void setGraphFormatManager(GraphFormatManager m)
setFormatManager method calls this method.
setGraphFormatManager in interface GraphModelm - The format manager for the graph to use.public GraphStyleManager getGraphStyleManager()
getGraphStyleManager in interface GraphModelpublic void setGraphStyleManager(GraphStyleManager m)
setGraphStyleManager in interface GraphModelm - The style manager for the graph to use.public Graph getGraphView()
getGraphView in interface GraphModel
  | 
Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 2 (11.1.2.0.0) E17492-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||