com.vividsolutions.jump.workbench.ui.plugin.scalebar
Class ScaleBarRenderer

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
      extended by com.vividsolutions.jump.workbench.ui.plugin.scalebar.ScaleBarRenderer
All Implemented Interfaces:
Renderer

public class ScaleBarRenderer
extends SimpleRenderer


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vividsolutions.jump.workbench.ui.renderer.Renderer
Renderer.Factory
 
Field Summary
static java.lang.String CONTENT_ID
           
 
Constructor Summary
ScaleBarRenderer(LayerViewPanel panel)
           
 
Method Summary
static boolean isEnabled(LayerViewPanel panel)
           
 void paint(java.awt.Graphics2D g, double scale)
           
static void setEnabled(boolean enabled, LayerViewPanel panel)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_ID

public static final java.lang.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

public void paint(java.awt.Graphics2D g,
                  double scale)