Package org.openjump.core.ui.plugin.view
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
-
-
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 NorthArrowRenderer(LayerViewPanel panel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlignment()intgetARROW_SIZE()ColorgetFILL1()ColorgetFILL2()ColorgetLINE_COLOR()StrokegetStroke()intgetStyle()intgetTEXT_BOTTOM_MARGIN()ColorgetTEXT_COLOR()intgetTEXT_FONT_SIZE()intgetVERTICAL_MARGIN()static booleanisEnabled(LayerViewPanel panel)protected voidpaint(Graphics2D g)voidpaint(Graphics2D g, double scale)voidsetAlignment(int alignment)voidsetARROW_SIZE(int arrow_size)static voidsetEnabled(boolean enabled, LayerViewPanel panel)voidsetFILL1(Color fill1)voidsetFILL2(Color fill2)voidsetLINE_COLOR(Color line_color)voidsetStroke(Stroke stroke)voidsetStyle(int style)voidsetTEXT_BOTTOM_MARGIN(int text_bottom_margin)voidsetTEXT_COLOR(Color text_color)voidsetTEXT_FONT_SIZE(int text_font_size)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 final String CONTENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NorthArrowRenderer
public NorthArrowRenderer(LayerViewPanel panel)
-
-
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)
-
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)
-
-