public class InstallKeyPanPlugIn extends AbstractPlugIn implements MultiShortcutEnabled
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
sACCEPTED_VALUES |
static java.lang.String |
sPAN_EAST |
static java.lang.String |
sPAN_NORTH |
static java.lang.String |
sPAN_SOUTH |
static java.lang.String |
sPAN_WEST |
static java.lang.String |
sZOOM_EXT |
static java.lang.String |
sZOOM_IN |
static java.lang.String |
sZOOM_OUT |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
InstallKeyPanPlugIn()
Default constructor
|
InstallKeyPanPlugIn(double panPercentage)
Creates a new plug-in with pan_percentage as pan percentage value
pan_percentage The value in percent of screen size to pan/zoom.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
double |
getPanPercentage()
Get the pan/zoom percentage, a value between 0 and 1.
|
PlugIn[] |
getShortcutEnabledPlugins() |
void |
setPanPercentage(double panPercent)
Set the pan percentage.
|
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, initialize, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static final java.lang.String sPAN_NORTH
public static final java.lang.String sPAN_EAST
public static final java.lang.String sPAN_SOUTH
public static final java.lang.String sPAN_WEST
public static final java.lang.String sZOOM_IN
public static final java.lang.String sZOOM_OUT
public static final java.lang.String sZOOM_EXT
public static final java.lang.String sACCEPTED_VALUES
public InstallKeyPanPlugIn()
public InstallKeyPanPlugIn(double panPercentage)
public boolean execute(PlugInContext context) throws java.lang.Exception
PlugIn
false
to prevent the run method
from being called.execute
in interface PlugIn
execute
in class AbstractPlugIn
java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
public double getPanPercentage()
public void setPanPercentage(double panPercent)
panPercent
- The value in percent of screen size to pan/zoom. Accepted
values are in the range 0 < percentage <= 1public PlugIn[] getShortcutEnabledPlugins()
getShortcutEnabledPlugins
in interface MultiShortcutEnabled