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 Icon
ICON
-
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 boolean
execute(PlugInContext context)
Execute the PlugIn.EnableCheck
getEnableCheck()
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:AbstractPlugIn
Execute the PlugIn.- Specified by:
execute
in interfacePlugIn
- Overrides:
execute
in 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:AbstractPlugIn
Use reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.- Specified by:
getEnableCheck
in interfaceEnableChecked
- Overrides:
getEnableCheck
in classAbstractPlugIn
- Returns:
- the EnableCheck defined the old way
-
-