Class NorthArrowRenderer

java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
org.openjump.core.ui.plugin.view.NorthArrowRenderer
All Implemented Interfaces:
Renderer

public class NorthArrowRenderer extends SimpleRenderer
  • Field Details

  • Constructor Details

    • NorthArrowRenderer

      public NorthArrowRenderer(LayerViewPanel panel)
  • Method Details

    • 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 class SimpleRenderer
    • paint

      public void paint(Graphics2D g, double scale)
    • getAlignment

      public int getAlignment()
    • setAlignment

      public void setAlignment(int alignment)
      Parameters:
      alignment - BOTTOM_RIGHT = 0, TOP_RIGHT = 1, TOP_LEFT = 2, BOTTOM_LEFT = 3
    • getARROW_SIZE

      public int getARROW_SIZE()
    • setARROW_SIZE

      public void setARROW_SIZE(int arrow_size)
    • getFILL1

      public Color getFILL1()
    • setFILL1

      public void setFILL1(Color fill1)
    • getFILL2

      public Color getFILL2()
    • setFILL2

      public void setFILL2(Color fill2)
    • getLINE_COLOR

      public Color getLINE_COLOR()
    • setLINE_COLOR

      public void setLINE_COLOR(Color line_color)
    • getStroke

      public Stroke getStroke()
    • setStroke

      public void setStroke(Stroke stroke)
    • getStyle

      public int getStyle()
    • setStyle

      public void setStyle(int style)
      Parameters:
      style - pass an int related to the ESRI North Arrow style.
    • getTEXT_BOTTOM_MARGIN

      public int getTEXT_BOTTOM_MARGIN()
    • setTEXT_BOTTOM_MARGIN

      public void setTEXT_BOTTOM_MARGIN(int text_bottom_margin)
    • getTEXT_COLOR

      public Color getTEXT_COLOR()
    • setTEXT_COLOR

      public void setTEXT_COLOR(Color text_color)
    • getTEXT_FONT_SIZE

      public int getTEXT_FONT_SIZE()
    • setTEXT_FONT_SIZE

      public void setTEXT_FONT_SIZE(int text_font_size)
    • getVERTICAL_MARGIN

      public int getVERTICAL_MARGIN()
    • setVERTICAL_MARGIN

      public void setVERTICAL_MARGIN(int vertical_margin)