Package org.openjump.core.ui.plugin.view
Class ShowScalePlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- org.openjump.core.ui.plugin.view.ShowScalePlugIn
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled
public class ShowScalePlugIn extends AbstractPlugIn
- initializes renderplugin - plugin calculates the actual scale and draws the text (and a white rectangle around) in the map window all things are done in ShowScaleRenderer- Author:
- sstein
-
-
Field Summary
Fields Modifier and Type Field Description static IconICON-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description ShowScalePlugIn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(PlugInContext context)Execute the PlugIn.EnableCheckgetEnableCheck()Use reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getIcon, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, initialize, isRollingBackInvalidEdits, isShortcutEnabled, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Field Detail
-
ICON
public static final Icon ICON
-
-
Method Detail
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from class:AbstractPlugInExecute the PlugIn.- Specified by:
executein interfacePlugIn- Overrides:
executein classAbstractPlugIn- Parameters:
context- context of this PlugIn- Returns:
- true if the PlugIn has been executed
- Throws:
Exception- if an Exception occurs during execution- See Also:
ThreadedPlugIn
-
getEnableCheck
public EnableCheck getEnableCheck()
Description copied from class:AbstractPlugInUse reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.- Specified by:
getEnableCheckin interfaceEnableChecked- Overrides:
getEnableCheckin classAbstractPlugIn- Returns:
- the EnableCheck defined the old way
-
-