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.ContentDependendFactory, Renderer.Factory
 
Field Summary
static java.lang.String CONTENT_ID
           
 
Fields inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancelled, panel
 
Constructor Summary
ScaleBarRenderer(LayerViewPanel panel)
           
 
Method Summary
static int getBAR_HEIGHT()
           
static java.awt.Color getFILL1()
           
static java.awt.Color getFILL2()
           
static java.awt.Font getFONT()
           
static int getHORIZONTAL_MARGIN()
           
static java.awt.Color getLINE_COLOR()
           
static int getTEXT_BOTTOM_MARGIN()
           
static java.awt.Color getTEXT_COLOR()
           
static java.awt.Font getUNIT_FONT()
           
static int getUNIT_TEXT_BOTTOM_MARGIN()
           
static java.awt.Color getUNIT_TEXT_COLOR()
           
static int getVERTICAL_MARGIN()
           
static boolean isEnabled(LayerViewPanel panel)
           
protected  void paint(java.awt.Graphics2D g)
           
 void paint(java.awt.Graphics2D g, double scale)
           
static void setBAR_HEIGHT(int bar_height)
           
static void setEnabled(boolean enabled, LayerViewPanel panel)
           
static void setFILL1(java.awt.Color fill1)
           
static void setFILL2(java.awt.Color fill2)
           
static void setFONT(java.awt.Font font)
           
static void setHORIZONTAL_MARGIN(int horizontal_margin)
           
static void setLINE_COLOR(java.awt.Color line_color)
           
static void setTEXT_BOTTOM_MARGIN(int text_bottom_margin)
           
static void setTEXT_COLOR(java.awt.Color text_color)
           
static void setUNIT_FONT(java.awt.Font unit_font)
           
static void setUNIT_TEXT_BOTTOM_MARGIN(int unit_text_bottom_margin)
           
static void setUNIT_TEXT_COLOR(java.awt.Color unit_text_color)
           
static void setVERTICAL_MARGIN(int vertical_margin)
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_ID

public static java.lang.String CONTENT_ID
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(java.awt.Graphics2D g)
Specified by:
paint in class SimpleRenderer

paint

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

getBAR_HEIGHT

public static int getBAR_HEIGHT()

setBAR_HEIGHT

public static void setBAR_HEIGHT(int bar_height)

getFILL1

public static java.awt.Color getFILL1()

setFILL1

public static void setFILL1(java.awt.Color fill1)

getFILL2

public static java.awt.Color getFILL2()

setFILL2

public static void setFILL2(java.awt.Color fill2)

getHORIZONTAL_MARGIN

public static int getHORIZONTAL_MARGIN()

setHORIZONTAL_MARGIN

public static void setHORIZONTAL_MARGIN(int horizontal_margin)

getLINE_COLOR

public static java.awt.Color getLINE_COLOR()

setLINE_COLOR

public static void setLINE_COLOR(java.awt.Color line_color)

getTEXT_BOTTOM_MARGIN

public static int getTEXT_BOTTOM_MARGIN()

setTEXT_BOTTOM_MARGIN

public static void setTEXT_BOTTOM_MARGIN(int text_bottom_margin)

getTEXT_COLOR

public static java.awt.Color getTEXT_COLOR()

setTEXT_COLOR

public static void setTEXT_COLOR(java.awt.Color text_color)

getUNIT_TEXT_BOTTOM_MARGIN

public static int getUNIT_TEXT_BOTTOM_MARGIN()

setUNIT_TEXT_BOTTOM_MARGIN

public static void setUNIT_TEXT_BOTTOM_MARGIN(int unit_text_bottom_margin)

getUNIT_TEXT_COLOR

public static java.awt.Color getUNIT_TEXT_COLOR()

setUNIT_TEXT_COLOR

public static void setUNIT_TEXT_COLOR(java.awt.Color unit_text_color)

getVERTICAL_MARGIN

public static int getVERTICAL_MARGIN()

setVERTICAL_MARGIN

public static void setVERTICAL_MARGIN(int vertical_margin)

getFONT

public static java.awt.Font getFONT()

setFONT

public static void setFONT(java.awt.Font font)

getUNIT_FONT

public static java.awt.Font getUNIT_FONT()

setUNIT_FONT

public static void setUNIT_FONT(java.awt.Font unit_font)