public class GraphControllerAdapter extends ControllerAdapter implements GraphController, oracle.dss.graph.pfj.event.TDGListener, oracle.bali.ewt.pivot.PagingPivotListener, java.beans.PropertyChangeListener
Users of the graph bean normally do not need to call any of the methods of this class.
Modifier and Type | Field and Description |
---|---|
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 |
DEBUG
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
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 and Description |
---|
GraphControllerAdapter(Graph graph,
GraphModel graphModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
changeTitleSelectedState, createComponentFromPageItem, firePopupTriggered, firePopupTriggering, focusGained, focusLost, getPopupManager, getRolloverTextManager, processPopup, processViewMouseEvent, setPopupManager, setRolloverTextManager
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPopupManager, getRolloverTextManager, setPopupManager, setRolloverTextManager
addControllerListener, addViewFocusListener, addViewKeyListener, addViewMouseListener, addViewMouseMotionListener, getCursorType, isWaitCursorForced, removeControllerListener, removeViewFocusListener, removeViewKeyListener, removeViewMouseListener, removeViewMouseMotionListener
protected Graph m_graph
protected GraphModel m_model
protected PFJ m_pfj
protected int m_selectedComponentHandle
protected int m_currentComponentHandle
protected boolean m_isCursorOnResizeHandle
protected int m_resizeCursorValue
protected ComponentHandle m_currentHandle
protected ComponentHandle m_selectedObject
public GraphControllerAdapter(Graph graph, GraphModel graphModel)
graph
- The graph that uses this Controller
.graphModel
- The model that graph
is using.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ControllerAdapter
e
- event infopublic void pivot(oracle.bali.ewt.pivot.PagingPivotEvent e)
pivot
in interface oracle.bali.ewt.pivot.PagingPivotListener
e
- paging pivot eventpublic void swap(oracle.bali.ewt.pivot.PagingPivotEvent e)
swap
in interface oracle.bali.ewt.pivot.PagingPivotListener
e
- paging pivot eventprotected void setCursor(java.awt.Component component, java.awt.Cursor c)
public void setSelectedObject(ComponentHandle c)
setSelectedObject
in interface GraphController
c
- The component to select. For PFJ
components, pass
null
.public ComponentHandle getSelectedObject()
getSelectedObject
in interface GraphController
null
if the selected component is a PFJ
component.public void setCursorType(java.awt.Cursor c, int type)
setCursorType
in interface ViewController
setCursorType
in class ViewControllerAdapter
c
- The Cursor
that should appear for type
.type
- A constant that specifies the type of cursor that
c
is.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
public void setWaitCursorForced(boolean yesNo)
setWaitCursorForced
in interface ViewController
setWaitCursorForced
in class ViewControllerAdapter
yesNo
- true
to display the wait cursor.
false
do not display the wait cursor.public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
pce
- event infopublic void setGraphCursor(int id)
id
- The component over which the mouse is located.public void perspectiveEvent(oracle.dss.graph.pfj.event.TDGEvent event)
oracle.dss.graph.pfj.event.TDGListener
interface.perspectiveEvent
in interface oracle.dss.graph.pfj.event.TDGListener
event
- The event from PFJ.public void cleanUp()
GraphController
from the Perspective list of
listeners.
The graph calls this method when someone changes the controller.cleanUp
in interface ViewController
cleanUp
in interface GraphController
cleanUp
in class ControllerAdapter