|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
skrueger.geotools.MapPaneToolBar.MapPaneToolBarAction
public static class MapPaneToolBar.MapPaneToolBarAction
Extends the AbstractAction
with maintaining an ID and the
MapPaneToolBar
the actions controls. Additionally this class
automatically calls
MapPaneToolBar.performToolButton(int, ActionEvent)
or
MapPaneToolBar.performActionButton(int, ActionEvent)
depending on
whether the action is added via
MapPaneToolBar.addTool(MapPaneToolBarAction)
or
MapPaneToolBar.addAction(MapPaneToolBarAction)
.
Field Summary | |
---|---|
protected int |
id
The ID of the action |
protected MapPaneToolBar |
toolBar
The tool bar, this action is made for. |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
MapPaneToolBar.MapPaneToolBarAction(int id,
MapPaneToolBar toolBar)
Creates a new action with a dummy description and no icon. |
|
MapPaneToolBar.MapPaneToolBarAction(int id,
MapPaneToolBar toolBar,
String name)
Creates a new action without an icon. |
|
MapPaneToolBar.MapPaneToolBarAction(int id,
MapPaneToolBar toolBar,
String name,
Icon icon)
Creates a new action. |
|
MapPaneToolBar.MapPaneToolBarAction(int id,
MapPaneToolBar toolBar,
String name,
Icon icon,
String toolTip)
Creates a new action. |
|
MapPaneToolBar.MapPaneToolBarAction(int id,
MapPaneToolBar toolBar,
XMapPaneTool tool)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Calls MapPaneToolBar.performToolButton(int, ActionEvent) or
MapPaneToolBar.performActionButton(int, ActionEvent)
depending on whether the action is added to the toolbar via
MapPaneToolBar.addTool(MapPaneToolBarAction) or
MapPaneToolBar.addAction(MapPaneToolBarAction) . |
int |
getID()
Returns the (unique) id of this action. |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
protected MapPaneToolBar toolBar
Constructor Detail |
---|
public MapPaneToolBar.MapPaneToolBarAction(int id, MapPaneToolBar toolBar)
id
- unique ID for the actiontoolBar
- toolbar this action is made forpublic MapPaneToolBar.MapPaneToolBarAction(int id, MapPaneToolBar toolBar, String name)
id
- unique ID for the actiontoolBar
- toolbar this action is made forname
- description used for buttons or menuspublic MapPaneToolBar.MapPaneToolBarAction(int id, MapPaneToolBar toolBar, String name, Icon icon)
id
- unique ID for the actiontoolBar
- toolbar this action is made forname
- description used for buttons or menusicon
- icon used for buttons or menuspublic MapPaneToolBar.MapPaneToolBarAction(int id, MapPaneToolBar toolBar, String name, Icon icon, String toolTip)
id
- unique ID for the actiontoolBar
- The MapPaneToolBar
this action is made forname
- description used for buttons or menusicon
- icon used for buttons or menustoolTip
- Tooltip to use for the button or menupublic MapPaneToolBar.MapPaneToolBarAction(int id, MapPaneToolBar toolBar, XMapPaneTool tool)
Method Detail |
---|
public void actionPerformed(ActionEvent e)
MapPaneToolBar.performToolButton(int, ActionEvent)
or
MapPaneToolBar.performActionButton(int, ActionEvent)
depending on whether the action is added to the toolbar via
MapPaneToolBar.addTool(MapPaneToolBarAction)
or
MapPaneToolBar.addAction(MapPaneToolBarAction)
.
public int getID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |