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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.ContentDependendFactory, Renderer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTENT_ID-
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancelled, panel
-
-
Constructor Summary
Constructors Constructor Description ShowScaleRenderer(LayerViewPanel panel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisEnabled(LayerViewPanel panel)protected voidpaint(Graphics2D g)static voidsetEnabled(boolean enabled, LayerViewPanel panel)voidsetMyPlugInContext(PlugInContext myPlugInContext)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
-
-
-
-
Field Detail
-
CONTENT_ID
public static final String CONTENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShowScaleRenderer
public ShowScaleRenderer(LayerViewPanel panel)
-
-
Method Detail
-
paint
protected void paint(Graphics2D g)
- Specified by:
paintin classSimpleRenderer
-
isEnabled
public static boolean isEnabled(LayerViewPanel panel)
- Parameters:
panel- the LayerViewPanel- 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.
-
-