org.openjump.core.ui.plugin.view.helpclassescale
Class ShowScaleRenderer
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
org.openjump.core.ui.plugin.view.helpclassescale.ShowScaleRenderer
- All Implemented Interfaces:
- Renderer
public class ShowScaleRenderer
- extends SimpleRenderer
Calculates the actual scale and draws the text and a white rectangle around
- Author:
- sstein
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_ID
public static final java.lang.String CONTENT_ID
- See Also:
- Constant Field Values
ShowScaleRenderer
public ShowScaleRenderer(LayerViewPanel panel)
paint
protected void paint(java.awt.Graphics2D g)
- Specified by:
paint in class SimpleRenderer
isEnabled
public static boolean isEnabled(LayerViewPanel panel)
- Parameters:
panel -
- Returns:
- true if the scale is enabled in the LayerViewPanel
setEnabled
public static void setEnabled(boolean enabled,
LayerViewPanel panel)
setMyPlugInContext
public void setMyPlugInContext(PlugInContext myPlugInContext)
- Parameters:
myPlugInContext - The myPlugInContext to set.