|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.plugin.AbstractPlugIn
org.openjump.core.ui.plugin.view.InstallKeyPanPlugIn
public class InstallKeyPanPlugIn
Plug in for navigation with keyboards keys.
Navigation is as follows:
Arrows keys move the viewport.
Page down and up are zoom in and zoom out, respectively
Home key zooms in or out to full extent
Pan and zoom percentage is, by default, 20%
| Constructor Summary | |
|---|---|
InstallKeyPanPlugIn()
Default constructor |
|
InstallKeyPanPlugIn(double panPercentag)
Creates a new plug-in with pan_percentage as pan percentage value pan_percentage The value in percent of screen size to pan/zoom. |
|
| Method Summary | |
|---|---|
boolean |
execute(PlugInContext context)
Performs the action for this plugin. |
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item |
static double |
getPanPercentage()
Get the pan/zoom percentage, a value between 0 and 1. |
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves. |
boolean |
pan(javax.swing.JInternalFrame jif,
int direction)
|
static void |
setPanPercentage(double panPercent)
Set the pan percentage. |
| Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn |
|---|
createName, execute, execute, isRollingBackInvalidEdits, reportNothingToUndoYet, toActionListener, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InstallKeyPanPlugIn()
public InstallKeyPanPlugIn(double panPercentag)
| Method Detail |
|---|
public boolean execute(PlugInContext context)
throws java.lang.Exception
PlugInfalse to prevent the run method
from being called.
execute in interface PlugInexecute in class AbstractPlugInjava.lang.Exception - if a problem occurs during plug-in executionThreadedPlugIn
public boolean pan(javax.swing.JInternalFrame jif,
int direction)
public void initialize(PlugInContext context)
throws java.lang.Exception
PlugIn
initialize in interface PlugIninitialize in class AbstractPlugInjava.lang.Exceptionpublic java.lang.String getName()
PlugIn
getName in interface PlugIngetName in class AbstractPlugInpublic static double getPanPercentage()
public static void setPanPercentage(double panPercent)
panPercent - The value in percent of screen size to pan/zoom. Accepted
values are in the range 0 < percentage <= 1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||