Class ScaleBarRenderer
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.renderer.SimpleRenderer
-
- org.locationtech.jts.jump.workbench.ui.plugin.scalebar.ScaleBarRenderer
-
- All Implemented Interfaces:
Renderer
public class ScaleBarRenderer extends SimpleRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.locationtech.jts.jump.workbench.ui.renderer.Renderer
Renderer.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_ID
-
Fields inherited from class org.locationtech.jts.jump.workbench.ui.renderer.SimpleRenderer
panel
-
-
Constructor Summary
Constructors Constructor Description ScaleBarRenderer(LayerViewPanel panel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isEnabled(LayerViewPanel panel)
protected void
paint(Graphics2D g)
void
paint(Graphics2D g, double scale)
static void
setEnabled(boolean enabled, LayerViewPanel panel)
-
Methods inherited from class org.locationtech.jts.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
-
ScaleBarRenderer
public ScaleBarRenderer(LayerViewPanel panel)
-
-
Method Detail
-
isEnabled
public static boolean isEnabled(LayerViewPanel panel)
-
setEnabled
public static void setEnabled(boolean enabled, LayerViewPanel panel)
-
paint
protected void paint(Graphics2D g)
- Specified by:
paint
in classSimpleRenderer
-
paint
public void paint(Graphics2D g, double scale)
-
-