Class NorthArrowRenderer
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
org.openjump.core.ui.plugin.view.NorthArrowRenderer
- All Implemented Interfaces:
Renderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface Renderer
Renderer.ContentDependendFactory, Renderer.Factory -
Field Summary
FieldsFields inherited from class SimpleRenderer
cancelled, panel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetFILL1()getFILL2()intgetStyle()intintintstatic 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) voidvoidvoidsetLINE_COLOR(Color line_color) voidvoidsetStyle(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 SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
-
Field Details
-
CONTENT_ID
- See Also:
-
-
Constructor Details
-
NorthArrowRenderer
-
-
Method Details
-
isEnabled
-
setEnabled
-
paint
- Specified by:
paintin classSimpleRenderer
-
paint
-
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
-
setFILL1
-
getFILL2
-
setFILL2
-
getLINE_COLOR
-
setLINE_COLOR
-
getStroke
-
setStroke
-
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
-
setTEXT_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)
-