Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.graph
Class GraphControllerAdapter

java.lang.Object
  extended by oracle.dss.dataView.ViewControllerAdapter
      extended by oracle.dss.dataView.ControllerAdapter
          extended by oracle.dss.graph.GraphControllerAdapter
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, oracle.bali.ewt.pivot.PagingPivotListener, Controller, ViewController, GraphController, oracle.dss.graph.pfj.event.TDGListener

public class GraphControllerAdapter
extends ControllerAdapter
implements GraphController, oracle.dss.graph.pfj.event.TDGListener, oracle.bali.ewt.pivot.PagingPivotListener, java.beans.PropertyChangeListener

See Also:
Serialized Form
For internal use only. Application developers should not use this
The controller for the graph. In the Model-View-Controller architecture, the controller is responsible for attending to user gestures, such as mouse clicks. This controller listens through Perspective For Java (PFJ) for user gestures. PFJ processes the information about the component that has been clicked.

Users of the graph bean normally do not need to call any of the methods of this class.


Field Summary
protected  int m_currentComponentHandle
           
protected  ComponentHandle m_currentHandle
           
protected  Graph m_graph
           
protected  boolean m_isCursorOnResizeHandle
           
protected  GraphModel m_model
           
protected  PFJ m_pfj
           
protected  int m_resizeCursorValue
           
protected  int m_selectedComponentHandle
           
protected  ComponentHandle m_selectedObject
           
 
Fields inherited from class oracle.dss.dataView.ControllerAdapter
DEBUG
 
Fields inherited from class oracle.dss.dataView.ViewControllerAdapter
listenerList, m_defaultCursor, m_drillCursor, m_eResizeCursor, m_horzSplitCursor, m_isWaitCursor, m_moveCursor, m_neResizeCursor, m_noDropCursor, m_nResizeCursor, m_nwResizeCursor, m_selectCursor, m_seResizeCursor, m_sResizeCursor, m_swResizeCursor, m_textCursor, m_vertSplitCursor, m_viewPositionX, m_viewPositionY, m_viewSizeHeight, m_viewSizeSet, m_viewSizeWidth, m_waitCursor, m_wResizeCursor, mouseEvent
 
Fields inherited from interface oracle.dss.dataView.ViewController
DEFAULT_CURSOR, DRILL_CURSOR, E_RESIZE_CURSOR, HORIZONTAL_SPLIT_CURSOR, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NO_DROP_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SELECT_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, VERTICAL_SPLIT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Constructor Summary
GraphControllerAdapter(Graph graph, GraphModel graphModel)
          Constructor.
 
Method Summary
 void cleanUp()
          Removes this GraphController from the Perspective list of listeners.
 ComponentHandle getSelectedObject()
          Retrieves the selected component.
 void mousePressed(java.awt.event.MouseEvent e)
           
 void perspectiveEvent(oracle.dss.graph.pfj.event.TDGEvent event)
          Responds to events from PFJ.
 void pivot(oracle.bali.ewt.pivot.PagingPivotEvent e)
          A pivot move event happened
 void propertyChange(java.beans.PropertyChangeEvent pce)
           
protected  void setCursor(java.awt.Component component, java.awt.Cursor c)
           
 void setCursorType(java.awt.Cursor c, int type)
          Specifies a cursor for a particular purpose.
 void setGraphCursor(int id)
          Specifies the type of cursor that is displayed in the graph.
 void setSelectedObject(ComponentHandle c)
          Selects a component on the graph.
 void setWaitCursorForced(boolean yesNo)
          Specifies whether the view is forced to display a wait cursor.
 void swap(oracle.bali.ewt.pivot.PagingPivotEvent e)
          A pivot swap event happened
 
Methods inherited from class oracle.dss.dataView.ControllerAdapter
changeTitleSelectedState, createComponentFromPageItem, firePopupTriggered, firePopupTriggering, focusGained, focusLost, getPopupManager, getRolloverTextManager, processPopup, processViewMouseEvent, setPopupManager, setRolloverTextManager
 
Methods inherited from class oracle.dss.dataView.ViewControllerAdapter
addControllerListener, addViewFocusListener, addViewKeyListener, addViewMouseListener, addViewMouseMotionListener, fireComponentSelected, fireComponentSelecting, fireComponentSized, fireComponentSizing, getCursorType, getMouseEvent, getNonDataComponent, getSelectionManager, isWaitCursorForced, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, processViewFocusEvent, processViewKeyEvent, processViewMouseMotionEvent, removeControllerListener, removeViewFocusListener, removeViewKeyListener, removeViewMouseListener, removeViewMouseMotionListener, setSelectionManager
 
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.Controller
getPopupManager, getRolloverTextManager, setPopupManager, setRolloverTextManager
 
Methods inherited from interface oracle.dss.dataView.ViewController
addControllerListener, addViewFocusListener, addViewKeyListener, addViewMouseListener, addViewMouseMotionListener, getCursorType, isWaitCursorForced, removeControllerListener, removeViewFocusListener, removeViewKeyListener, removeViewMouseListener, removeViewMouseMotionListener
 

Field Detail

m_graph

protected Graph m_graph

m_model

protected GraphModel m_model

m_pfj

protected PFJ m_pfj

m_selectedComponentHandle

protected int m_selectedComponentHandle

m_currentComponentHandle

protected int m_currentComponentHandle

m_isCursorOnResizeHandle

protected boolean m_isCursorOnResizeHandle

m_resizeCursorValue

protected int m_resizeCursorValue

m_currentHandle

protected ComponentHandle m_currentHandle

m_selectedObject

protected ComponentHandle m_selectedObject
Constructor Detail

GraphControllerAdapter

public GraphControllerAdapter(Graph graph,
                              GraphModel graphModel)
Constructor. The graph constructs this object as part of its initialization.

Parameters:
graph - The graph that uses this Controller.
graphModel - The model that graph is using.
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class ControllerAdapter
Parameters:
e - event info
For internal use only. Application developers should not use this
Mouse pressed on view.

pivot

public void pivot(oracle.bali.ewt.pivot.PagingPivotEvent e)
A pivot move event happened

Specified by:
pivot in interface oracle.bali.ewt.pivot.PagingPivotListener
Parameters:
e - paging pivot event

swap

public void swap(oracle.bali.ewt.pivot.PagingPivotEvent e)
A pivot swap event happened

Specified by:
swap in interface oracle.bali.ewt.pivot.PagingPivotListener
Parameters:
e - paging pivot event

setCursor

protected void setCursor(java.awt.Component component,
                         java.awt.Cursor c)

setSelectedObject

public void setSelectedObject(ComponentHandle c)
Selects a component on the graph. The paging control calls this method.

Specified by:
setSelectedObject in interface GraphController
Parameters:
c - The component to select. For PFJ components, pass null.

getSelectedObject

public ComponentHandle getSelectedObject()
Retrieves the selected component. The paging control calls this method.

Specified by:
getSelectedObject in interface GraphController
Returns:
The selected component in a paging control, or null if the selected component is a PFJ component.

setCursorType

public void setCursorType(java.awt.Cursor c,
                          int type)
Specifies a cursor for a particular purpose. For example, this method specifies the cursor that appears when a user moves an object.

Specified by:
setCursorType in interface ViewController
Overrides:
setCursorType in class ViewControllerAdapter
Parameters:
c - The Cursor that should appear for type.
type - A constant that specifies the type of cursor that c is.
See Also:
ViewController.DEFAULT_CURSOR, ViewController.DRILL_CURSOR, ViewController.E_RESIZE_CURSOR, ViewController.HORIZONTAL_SPLIT_CURSOR, ViewController.MOVE_CURSOR, ViewController.N_RESIZE_CURSOR, ViewController.NE_RESIZE_CURSOR, ViewController.NO_DROP_CURSOR, ViewController.NW_RESIZE_CURSOR, ViewController.S_RESIZE_CURSOR, ViewController.SE_RESIZE_CURSOR, ViewController.SELECT_CURSOR, ViewController.SW_RESIZE_CURSOR, ViewController.TEXT_CURSOR, ViewController.VERTICAL_SPLIT_CURSOR, ViewController.W_RESIZE_CURSOR, ViewController.WAIT_CURSOR

setWaitCursorForced

public void setWaitCursorForced(boolean yesNo)
Specifies whether the view is forced to display a wait cursor.

Specified by:
setWaitCursorForced in interface ViewController
Overrides:
setWaitCursorForced in class ViewControllerAdapter
Parameters:
yesNo - true to display the wait cursor. false do not display the wait cursor.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent pce)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
pce - event info
For internal use only. Application developers should not use this
Listen for PropertyChange on the Paging Control Check for selection and set the selected object accordingly

setGraphCursor

public void setGraphCursor(int id)
Specifies the type of cursor that is displayed in the graph. This method displays a cursor that is appropriate for the specified component.

Parameters:
id - The component over which the mouse is located.

perspectiveEvent

public void perspectiveEvent(oracle.dss.graph.pfj.event.TDGEvent event)
Responds to events from PFJ. This method is required in the oracle.dss.graph.pfj.event.TDGListener interface.

Specified by:
perspectiveEvent in interface oracle.dss.graph.pfj.event.TDGListener
Parameters:
event - The event from PFJ.

cleanUp

public void cleanUp()
Removes this GraphController from the Perspective list of listeners. The graph calls this method when someone changes the controller.

Specified by:
cleanUp in interface ViewController
Specified by:
cleanUp in interface GraphController
Overrides:
cleanUp in class ControllerAdapter

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

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