class NorthArrowItem extends Item
Add a north arrow to a cartographic document.
| Type | Name and description |
|---|---|
boolean |
drawText |
java.awt.Color |
fillColor1 |
java.awt.Color |
fillColor2 |
java.awt.Font |
font |
java.awt.Color |
strokeColor1 |
java.awt.Color |
strokeColor2 |
float |
strokeWidth |
NorthArrowStyle |
style |
java.awt.Color |
textColor |
| Constructor and description |
|---|
NorthArrowItem
(int x, int y, int width, int height)Create a north arrow from the top left with the given width and height. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
NorthArrowItem |
drawText(boolean drawText)Set whether to draw text or not |
|
NorthArrowItem |
fillColor1(java.awt.Color color)Set the first fill color |
|
NorthArrowItem |
fillColor2(java.awt.Color color)Set the second fill color |
|
NorthArrowItem |
font(java.awt.Font font)Set the Font |
|
NorthArrowItem |
strokeColor1(java.awt.Color color)Set the first stroke color |
|
NorthArrowItem |
strokeColor2(java.awt.Color color)Set the second stroke Color |
|
NorthArrowItem |
strokeWidth(float strokeWidth)Set the stroke width |
|
NorthArrowItem |
style(NorthArrowStyle northArrowStyle)Set the NorthArrowStyle |
|
NorthArrowItem |
textColor(java.awt.Color textColor)Set the text Color |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Item |
getRectangle |
Create a north arrow from the top left with the given width and height.
x - The number of pixels from the lefty - The number of pixels from the topwidth - The width in pixelsheight - The height in pixelsSet whether to draw text or not
drawText - Whether to draw text or notSet the first fill color
color - The first fill colorSet the second fill color
color - The second fill ColorSet the Font
font - The FontSet the first stroke color
color - The first stroke colorSet the second stroke Color
color - The second stroke ColorSet the stroke width
strokeWidth - The stroke widthSet the NorthArrowStyle
northArrowStyle - The NorthArrowStyleSet the text Color
textColor - The text colorGroovy Documentation