public abstract class AbstractMode extends Object implements Mode
Modifier and Type | Field and Description |
---|---|
protected MainFrame |
mainFrame
MainFrame.
|
Constructor and Description |
---|
AbstractMode(MainFrame theMainFrame,
MainFrameToolBar theModeSelector)
Constructor.
|
protected MainFrame mainFrame
public AbstractMode(MainFrame theMainFrame, MainFrameToolBar theModeSelector)
theMainFrame
- the associated applicationtheModeSelector
- the mode selectorpublic final void setModeSelector(MainFrameToolBar theModeSelector)
theModeSelector
- the new mode selectorpublic final MainFrameToolBar getModeSelector()
public final JButton getButton()
public RenderingTypeMode getRenderingType()
Mode
getRenderingType
in interface Mode
public void setRenderingType(RenderingTypeMode renderingType)
renderingType
- the renderingType to setprotected abstract String getToolTipText()
protected abstract JButton createButton()
public final void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public final void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void leftMouseButtonClicked(MouseEvent e, ProjectFrame frame)
e
- mouse eventframe
- the project framepublic final void middleMouseButtonClicked(MouseEvent e, ProjectFrame frame)
e
- mouse eventframe
- the project framepublic void rightMouseButtonClicked(MouseEvent e, ProjectFrame frame)
e
- mouse eventframe
- the project framepublic void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public final void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
public Cursor getCursor()
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.