public class ScaleBarRenderer extends SimpleRenderer
Renderer.ContentDependendFactory, Renderer.Factory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_ID |
cancelled, panel
Constructor and Description |
---|
ScaleBarRenderer(LayerViewPanel panel,
TaskFrame taskFrame) |
Modifier and Type | Method and Description |
---|---|
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 |
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) |
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
public ScaleBarRenderer(LayerViewPanel panel, TaskFrame taskFrame)
public static boolean isEnabled(LayerViewPanel panel)
public static void setEnabled(boolean enabled, LayerViewPanel panel)
protected void paint(java.awt.Graphics2D g)
paint
in class SimpleRenderer
public void paint(java.awt.Graphics2D g, double scale)
public static int getBAR_HEIGHT()
public static void setBAR_HEIGHT(int bar_height)
public static java.awt.Color getFILL1()
public static void setFILL1(java.awt.Color fill1)
public static java.awt.Color getFILL2()
public static void setFILL2(java.awt.Color fill2)
public static int getHORIZONTAL_MARGIN()
public static void setHORIZONTAL_MARGIN(int horizontal_margin)
public static java.awt.Color getLINE_COLOR()
public static void setLINE_COLOR(java.awt.Color line_color)
public static int getTEXT_BOTTOM_MARGIN()
public static void setTEXT_BOTTOM_MARGIN(int text_bottom_margin)
public static java.awt.Color getTEXT_COLOR()
public static int getUNIT_TEXT_BOTTOM_MARGIN()
public static void setUNIT_TEXT_BOTTOM_MARGIN(int unit_text_bottom_margin)
public static java.awt.Color getUNIT_TEXT_COLOR()
public static void setUNIT_TEXT_COLOR(java.awt.Color unit_text_color)
public static int getVERTICAL_MARGIN()
public static void setVERTICAL_MARGIN(int vertical_margin)
public static java.awt.Font getFONT()
public static void setFONT(java.awt.Font font)
public static java.awt.Font getUNIT_FONT()
public static void setUNIT_FONT(java.awt.Font unit_font)