|
|||||||||
| Home >> All >> org >> dinopolis >> gpstool >> plugin >> [ downloadmousemode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dinopolis.gpstool.plugin.downloadmousemode
Class DownloadMouseMode

java.lang.Objectorg.dinopolis.gpstool.plugin.downloadmousemode.DownloadMouseMode
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener, org.dinopolis.gpstool.gui.MouseMode, org.dinopolis.gpstool.plugin.MouseModePlugin, java.awt.event.MouseMotionListener, org.dinopolis.gpstool.plugin.Plugin
- public class DownloadMouseMode
- extends java.lang.Object
- implements org.dinopolis.gpstool.plugin.MouseModePlugin
- extends java.lang.Object
The mouse mode for the download layer. This mouse mode gets the mouse events and tells the layer to draw one or more rectangles as a preview.
- Version:
- $Revision: 1.4 $
| Field Summary | |
(package private) DownloadMouseModeLayer |
download_layer_
|
(package private) boolean |
mode_active_
|
(package private) org.dinopolis.util.Resources |
resources_
|
| Constructor Summary | |
DownloadMouseMode()
Creates a new DownloadMouseMode instance. |
|
| Method Summary | |
Layer |
getLayer()
If the mouse mode plugin wants to draw anything on the map it may return a layer here or null if not. |
java.lang.String |
getMouseModeAcceleratorKey()
Returns the accelerator key that is used for the mouse mode in the menu or toolbar. |
java.lang.String |
getMouseModeDescription()
The description returned here is used in the menu and/or the toolbar of the application to switch the mouse mode on or off. |
javax.swing.Icon |
getMouseModeIcon()
The icon returned here is used in the menu and/or the toolbar of the application to switch the mouse mode on or off. |
char |
getMouseModeMnemonic()
Returns the mnemonic character that is used for manual (keyboard) selection in a menu. |
java.lang.String |
getMouseModeName()
The name returned here is used in the menu and/or the toolbar of the application to switch the mouse mode on or off. |
java.lang.String |
getPluginDescription()
Returns a description of the Plugin. |
java.lang.String |
getPluginIdentifier()
Returns the unique id of the plugin. |
java.lang.String |
getPluginName()
Returns the name of the Plugin. |
float |
getPluginVersion()
Returns the version of the plugin. |
void |
initializePlugin(org.dinopolis.gpstool.plugin.PluginSupport support)
Initialize the plugin and pass a PluginSupport that provides objects, the plugin may use. |
boolean |
isActive()
Returns if the mouse mode is active or not. |
void |
mouseClicked(java.awt.event.MouseEvent event)
This method is called when the mouse is clicked (pressed and released in short succession) on a component. |
void |
mouseDragged(java.awt.event.MouseEvent event)
This method is called when the mouse is moved over a component while a button has been pressed. |
void |
mouseEntered(java.awt.event.MouseEvent event)
This method is called when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent event)
This method is called when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent event)
This method is called when the mouse is moved over a component while no button is pressed. |
void |
mousePressed(java.awt.event.MouseEvent event)
This method is called when the mouse is pressed over a component. |
void |
mouseReleased(java.awt.event.MouseEvent event)
This method is called when the mouse is released over a component. |
void |
setActive(boolean active)
Called by the application to switch the mouse mode on or off. |
void |
startPlugin()
The application calls this method to indicate that the plugin is activated and will be used from now on. |
void |
stopPlugin()
The application calls this method to indicate that the plugin is deactivated and will not be used any more. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
download_layer_
DownloadMouseModeLayer download_layer_
mode_active_
boolean mode_active_
resources_
org.dinopolis.util.Resources resources_
| Constructor Detail |
DownloadMouseMode
public DownloadMouseMode()
- Creates a new
DownloadMouseModeinstance.
| Method Detail |
initializePlugin
public void initializePlugin(org.dinopolis.gpstool.plugin.PluginSupport support)
- Initialize the plugin and pass a PluginSupport that provides
objects, the plugin may use.
- Specified by:
initializePluginin interfaceorg.dinopolis.gpstool.plugin.Plugin
startPlugin
public void startPlugin()
- The application calls this method to indicate that the plugin is
activated and will be used from now on. The Plugin should
initialize any needed resources (files, etc.) in this method.
- Specified by:
startPluginin interfaceorg.dinopolis.gpstool.plugin.Plugin
stopPlugin
public void stopPlugin()
- The application calls this method to indicate that the plugin is
deactivated and will not be used any more. The Plugin should
release all resources (close files, etc.) in this method.
- Specified by:
stopPluginin interfaceorg.dinopolis.gpstool.plugin.Plugin
getPluginIdentifier
public java.lang.String getPluginIdentifier()
- Returns the unique id of the plugin. The id is used to identify
the plugin and to distinguish it from other plugins.
- Specified by:
getPluginIdentifierin interfaceorg.dinopolis.gpstool.plugin.Plugin
getPluginVersion
public float getPluginVersion()
- Returns the version of the plugin. The version may be used to
choose between different version of the same plugin.
- Specified by:
getPluginVersionin interfaceorg.dinopolis.gpstool.plugin.Plugin
getPluginName
public java.lang.String getPluginName()
- Returns the name of the Plugin. The name should be a human
readable and understandable name like "Save Image as JPEG". It is
prefereable but not necessary that the name is localized.
- Specified by:
getPluginNamein interfaceorg.dinopolis.gpstool.plugin.Plugin
getPluginDescription
public java.lang.String getPluginDescription()
- Returns a description of the Plugin. The description should be
human readable and understandable like "This plugin saves the
content of the main window as an image in jpeg format". It is
prefereable but not necessary that the description is localized.
- Specified by:
getPluginDescriptionin interfaceorg.dinopolis.gpstool.plugin.Plugin
getLayer
public Layer getLayer()
- If the mouse mode plugin wants to draw anything on the map it may
return a layer here or
nullif not.- Specified by:
getLayerin interfaceorg.dinopolis.gpstool.plugin.MouseModePlugin
setActive
public void setActive(boolean active)
- Called by the application to switch the mouse mode on or off. If
the mouse mode is switched off, it must not react on mouse events
(although it might register them). This method may be used to
change the mouse cursor, ...
- Specified by:
setActivein interfaceorg.dinopolis.gpstool.gui.MouseMode
isActive
public boolean isActive()
- Returns if the mouse mode is active or not.
- Specified by:
isActivein interfaceorg.dinopolis.gpstool.gui.MouseMode
getMouseModeName
public java.lang.String getMouseModeName()
- The name returned here is used in the menu and/or the toolbar of
the application to switch the mouse mode on or off. It should be
localized.
- Specified by:
getMouseModeNamein interfaceorg.dinopolis.gpstool.gui.MouseMode
getMouseModeIcon
public javax.swing.Icon getMouseModeIcon()
- The icon returned here is used in the menu and/or the toolbar of
the application to switch the mouse mode on or off.
- Specified by:
getMouseModeIconin interfaceorg.dinopolis.gpstool.gui.MouseMode
getMouseModeDescription
public java.lang.String getMouseModeDescription()
- The description returned here is used in the menu and/or the toolbar of
the application to switch the mouse mode on or off.
- Specified by:
getMouseModeDescriptionin interfaceorg.dinopolis.gpstool.gui.MouseMode
getMouseModeMnemonic
public char getMouseModeMnemonic()
- Returns the mnemonic character that is used for manual (keyboard)
selection in a menu. If possible, it should be the first letter of
the name (default).
- Specified by:
getMouseModeMnemonicin interfaceorg.dinopolis.gpstool.gui.MouseMode
getMouseModeAcceleratorKey
public java.lang.String getMouseModeAcceleratorKey()
- Returns the accelerator key that is used for the mouse mode in the
menu or toolbar. The format of the key strings is described in
javax.swing.Keystroke#getKeyStroke(java.lang.String). Some examples are given:INSERT,controle DELETE,alt shift X,shift F.- Specified by:
getMouseModeAcceleratorKeyin interfaceorg.dinopolis.gpstool.gui.MouseMode
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse enters a component.
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse exits a component.
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is pressed over a component.
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseListener - This method is called when the mouse is released over a component.
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseMotionListener - This method is called when the mouse is moved over a component
while a button has been pressed.
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent event)
- Description copied from interface:
java.awt.event.MouseMotionListener - This method is called when the mouse is moved over a component
while no button is pressed.
- Specified by:
mouseMovedin interfacejava.awt.event.MouseMotionListener
|
|||||||||
| Home >> All >> org >> dinopolis >> gpstool >> plugin >> [ downloadmousemode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.dinopolis.gpstool.plugin.downloadmousemode.DownloadMouseMode