Class ScaleBarRenderer
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
-
- 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
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 ScaleBarRenderer(LayerViewPanel panel, TaskFrame taskFrame)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetBAR_HEIGHT()static ColorgetFILL1()static ColorgetFILL2()static FontgetFONT()static intgetHORIZONTAL_MARGIN()static ColorgetLINE_COLOR()static intgetTEXT_BOTTOM_MARGIN()static ColorgetTEXT_COLOR()static FontgetUNIT_FONT()static intgetUNIT_TEXT_BOTTOM_MARGIN()static ColorgetUNIT_TEXT_COLOR()static intgetVERTICAL_MARGIN()static booleanisEnabled(LayerViewPanel panel)protected voidpaint(Graphics2D g)voidpaint(Graphics2D g, double scale)static voidsetBAR_HEIGHT(int bar_height)static voidsetEnabled(boolean enabled, LayerViewPanel panel)static voidsetFILL1(Color fill1)static voidsetFILL2(Color fill2)static voidsetFONT(Font font)static voidsetHORIZONTAL_MARGIN(int horizontal_margin)static voidsetLINE_COLOR(Color line_color)static voidsetTEXT_BOTTOM_MARGIN(int text_bottom_margin)static voidsetUNIT_FONT(Font unit_font)static voidsetUNIT_TEXT_BOTTOM_MARGIN(int unit_text_bottom_margin)static voidsetUNIT_TEXT_COLOR(Color unit_text_color)static voidsetVERTICAL_MARGIN(int vertical_margin)-
Methods inherited from class com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
-
-
-
-
Field Detail
-
CONTENT_ID
public static String CONTENT_ID
-
-
Constructor Detail
-
ScaleBarRenderer
public ScaleBarRenderer(LayerViewPanel panel, TaskFrame taskFrame)
-
-
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:
paintin classSimpleRenderer
-
paint
public void paint(Graphics2D g, double scale)
-
getBAR_HEIGHT
public static int getBAR_HEIGHT()
-
setBAR_HEIGHT
public static void setBAR_HEIGHT(int bar_height)
-
getFILL1
public static Color getFILL1()
-
setFILL1
public static void setFILL1(Color fill1)
-
getFILL2
public static Color getFILL2()
-
setFILL2
public static void setFILL2(Color fill2)
-
getHORIZONTAL_MARGIN
public static int getHORIZONTAL_MARGIN()
-
setHORIZONTAL_MARGIN
public static void setHORIZONTAL_MARGIN(int horizontal_margin)
-
getLINE_COLOR
public static Color getLINE_COLOR()
-
setLINE_COLOR
public static void setLINE_COLOR(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 Color getTEXT_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 Color getUNIT_TEXT_COLOR()
-
setUNIT_TEXT_COLOR
public static void setUNIT_TEXT_COLOR(Color unit_text_color)
-
getVERTICAL_MARGIN
public static int getVERTICAL_MARGIN()
-
setVERTICAL_MARGIN
public static void setVERTICAL_MARGIN(int vertical_margin)
-
getFONT
public static Font getFONT()
-
setFONT
public static void setFONT(Font font)
-
getUNIT_FONT
public static Font getUNIT_FONT()
-
setUNIT_FONT
public static void setUNIT_FONT(Font unit_font)
-
-