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

E12063-07

oracle.dss.gauge
Class GaugeControllerAdapter

java.lang.Object
  extended by oracle.dss.dataView.ViewControllerAdapter
      extended by oracle.dss.dataView.ControllerAdapter
          extended by oracle.dss.gauge.GaugeControllerAdapter
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, Controller, ViewController, GaugeController

public class GaugeControllerAdapter
extends ControllerAdapter
implements GaugeController, java.beans.PropertyChangeListener

Since:
release specific (what release of product did this appear in)
See Also:
Serialized Form

Field Summary
protected  int m_currentComponentHandle
           
protected  ComponentHandle m_currentHandle
           
protected  java.awt.Cursor m_cursor
           
protected  Gauge m_gauge
           
protected  boolean m_isCursorOnResizeHandle
           
protected  GaugeModel m_model
           
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
GaugeControllerAdapter(Gauge gauge, GaugeModel gaugeModel)
          Constructor.
 
Method Summary
 void cleanUp()
          Removes this GaugeController from the Perspective list of listeners.
 ComponentHandle getSelectedObject()
          Retrieves the selected component.
 void keyPressed(java.awt.event.KeyEvent e)
          Invoked when a key has been pressed.
 void keyReleased(java.awt.event.KeyEvent e)
          Invoked when a key has been released.
 void keyTyped(java.awt.event.KeyEvent e)
          Invoked when a key has been typed.
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been clicked (pressed and released) on a component.
 void mouseDragged(java.awt.event.MouseEvent e)
          Invoked when a mouse button is pressed on a component and then dragged.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits a component.
 void mouseMoved(java.awt.event.MouseEvent e)
          Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 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 setGaugeCursor(int id)
          Specifies the type of cursor that is displayed in the gauge.
 void setSelectedObject(ComponentHandle c)
          Selects a component on the gauge.
 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, 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_gauge

protected Gauge m_gauge

m_model

protected GaugeModel m_model

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

m_cursor

protected java.awt.Cursor m_cursor
Constructor Detail

GaugeControllerAdapter

public GaugeControllerAdapter(Gauge gauge,
                              GaugeModel gaugeModel)
Constructor. The gauge constructs this object as part of its initialization.

Parameters:
gauge - The gauge that uses this Controller.
gaugeModel - The model that gauge is using.
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class ViewControllerAdapter
Parameters:
e - event info

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Invoked when a key has been released.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Overrides:
keyReleased in class ViewControllerAdapter
Parameters:
e - event info

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Invoked when a key has been typed.

Specified by:
keyTyped in interface java.awt.event.KeyListener
Overrides:
keyTyped in class ViewControllerAdapter
Parameters:
e - event info

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class ViewControllerAdapter
Parameters:
e - event info

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.

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class ViewControllerAdapter
Parameters:
e - event info

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Overrides:
mouseEntered in class ViewControllerAdapter
Parameters:
e - event info

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Overrides:
mouseExited in class ViewControllerAdapter
Parameters:
e - event info

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class ViewControllerAdapter
Parameters:
e - event info

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class ViewControllerAdapter
Parameters:
e - event info

pivot

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

Parameters:
e - paging pivot event

swap

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

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 gauge. The paging control calls this method.

Specified by:
setSelectedObject in interface GaugeController
Parameters:
c - The component to select.

getSelectedObject

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

Specified by:
getSelectedObject in interface GaugeController
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

setGaugeCursor

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

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

cleanUp

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

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

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

E12063-07

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