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()
ModegetRenderingType in interface Modepublic 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 KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic final void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic 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 MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic final void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic Cursor getCursor()
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.