|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.XMapPaneTool
public class XMapPaneTool
This class combines the mapping of mouse-inputs and keyboard inputs to
XMapPaneAction
s and provides a tool icon and a default mouse cursor.
Field Summary | |
---|---|
static XMapPaneTool |
INFO
The configuration of the INFO XMapPaneTool |
static XMapPaneTool |
NO_ACTION
This XMapPaneTool does nothing |
static XMapPaneTool |
PAN
The configuration of the PAN XMapPaneTool |
static ResourceProvider |
RESOURCE
|
static XMapPaneTool |
SELECTION_ADD
|
static XMapPaneTool |
SELECTION_ALL_LAYERS
A tool that will do a select_top action on the left mouse button |
static XMapPaneTool |
SELECTION_ONE_FROM_TOP_LAYER
A tool that will do a select_top action on the left mouse button |
static XMapPaneTool |
SELECTION_REMOVE
|
static XMapPaneTool |
SELECTION_SET
|
static XMapPaneTool |
SELECTION_TOP_LAYER
A tool that will do a select_top action on the left mouse button |
static XMapPaneTool |
ZOOM_IN
The configuration of the default ZOOM IN XMapPaneTool |
static XMapPaneTool |
ZOOM_OUT
The configuration of the default ZOOM IN XMapPaneTool |
Constructor Summary | |
---|---|
XMapPaneTool()
The default constructor sets some default keyboard settings |
Method Summary | |
---|---|
XMapPaneTool |
copy()
Returns a copy of the tool to derive other tools. |
XMapPaneTool |
copyTo(XMapPaneTool tool)
Copies all actions of this tool to another. |
Cursor |
getCursor()
|
Icon |
getIcon()
An icon to use if the tool is associated with a button. |
XMapPaneAction |
getKeyAction(KeyStroke keyStroke)
|
Object |
getKeyActionParam(KeyStroke keyStroke)
Get the optional parameter for a XMapPaneAction when triggered by
KeyStroke |
XMapPaneAction |
getMouseAction(MouseInputType type)
|
String |
getToolTip()
|
protected void |
initTool()
Called by the constructor. |
static String |
R(String key,
Object... values)
|
void |
setCursor(Cursor cursor)
|
void |
setIcon(Icon icon)
An icon to use if the tool is associated with a button. |
void |
setKeyAction(KeyStroke keyStroke,
XMapPaneAction keyAction)
Set the XMapPaneAction for a KeyStroke |
void |
setKeyActionParam(KeyStroke keyStroke,
Object param)
Set the optional parameter for a XMapPaneAction when triggered by
KeyStroke |
void |
setMouseAction(MouseInputType type,
XMapPaneAction mouseAction)
Sets the XMapPaneAction for a given MouseInputType |
void |
setToolTip(String toolTip)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ResourceProvider RESOURCE
public static XMapPaneTool NO_ACTION
XMapPaneTool
does nothing
public static XMapPaneTool ZOOM_IN
XMapPaneTool
public static XMapPaneTool ZOOM_OUT
XMapPaneTool
public static final XMapPaneTool PAN
XMapPaneTool
public static final XMapPaneTool SELECTION_TOP_LAYER
public static final XMapPaneTool SELECTION_ONE_FROM_TOP_LAYER
public static final XMapPaneTool SELECTION_ALL_LAYERS
public static final XMapPaneTool INFO
XMapPaneTool
public static final XMapPaneTool SELECTION_ADD
public static final XMapPaneTool SELECTION_REMOVE
public static final XMapPaneTool SELECTION_SET
Constructor Detail |
---|
public XMapPaneTool()
Method Detail |
---|
public static String R(String key, Object... values)
protected void initTool()
public XMapPaneTool copy()
copy
in interface Copyable<XMapPaneTool>
public XMapPaneTool copyTo(XMapPaneTool tool)
copyTo
in interface Copyable<XMapPaneTool>
tool
- tool to copy the actions to (if null
a new
tool is created)
public Cursor getCursor()
Cursor
that shall be set as the default mouse cursor
(when no button is clicked)public void setCursor(Cursor cursor)
public String getToolTip()
public void setToolTip(String toolTip)
public Icon getIcon()
null
.
public void setIcon(Icon icon)
null
.
public XMapPaneAction getMouseAction(MouseInputType type)
XMapPaneAction
associated with a given
MouseInputType
public void setMouseAction(MouseInputType type, XMapPaneAction mouseAction)
XMapPaneAction
for a given MouseInputType
public XMapPaneAction getKeyAction(KeyStroke keyStroke)
XMapPaneAction
associated with a KeyStroke
public void setKeyAction(KeyStroke keyStroke, XMapPaneAction keyAction)
XMapPaneAction
for a KeyStroke
public Object getKeyActionParam(KeyStroke keyStroke)
XMapPaneAction
when triggered by
KeyStroke
public void setKeyActionParam(KeyStroke keyStroke, Object param)
XMapPaneAction
when triggered by
KeyStroke
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |