Add scale text to a cartographic document.
Type | Name and description |
---|---|
private java.awt.Color |
color |
private java.awt.Font |
font |
private java.lang.String |
format |
private HorizontalAlign |
horizontalAlign |
private Map |
map |
private java.lang.String |
prefixText |
private VerticalAlign |
verticalAlign |
Constructor and description |
---|
ScaleTextItem
(int x, int y, int width, int height) Create a scale text from the top left with the given width and height. |
ScaleTextItem
() |
Type Params | Return Type | Name and description |
---|---|---|
|
ScaleTextItem |
color(java.awt.Color color) Set the text color
|
|
ScaleTextItem |
font(java.awt.Font font) Set the font
|
|
ScaleTextItem |
format(java.lang.String format) Set the number format
|
|
ScaleTextItem |
horizontalAlign(HorizontalAlign horizontalAlign) Set the horizontal alignment
|
|
ScaleTextItem |
map(Map map) Set the Map to use when calculating the map scale
|
|
ScaleTextItem |
prefixText(java.lang.String prefixText) Set the prefix text
|
|
java.lang.String |
toString() |
|
ScaleTextItem |
verticalAlign(VerticalAlign verticalAlign) Set the vertical alignment
|
Methods inherited from class | Name |
---|---|
class Item |
getRectangle |
Create a scale text 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 the text color
color
- The text colorSet the font
font
- The FontSet the number format
format
- The number formatSet the horizontal alignment
horizontalAlign
- The HorizontalAlignSet the Map to use when calculating the map scale
map
- The MapSet the prefix text
prefixText
- The prefix textSet the vertical alignment
verticalAlign
- The VerticalAlignGroovy Documentation