class DateTextItem extends Item
Adds date text to a cartographic document.
| Type | Name and description |
|---|---|
java.awt.Color |
color |
java.util.Date |
date |
java.awt.Font |
font |
java.lang.String |
format |
HorizontalAlign |
horizontalAlign |
VerticalAlign |
verticalAlign |
| Constructor and description |
|---|
DateTextItem
(int x, int y, int width, int height)Create a DateTextItem from the top left |
| Type Params | Return Type | Name and description |
|---|---|---|
|
DateTextItem |
color(java.awt.Color color)Set the text Color |
|
DateTextItem |
date(java.util.Date date)Set the Date |
|
DateTextItem |
font(java.awt.Font font)Set the text Font |
|
DateTextItem |
format(java.lang.String format)Set the date format string |
|
DateTextItem |
horizontalAlign(HorizontalAlign horizontalAlign)Set the horizontal alignment of the text |
|
java.lang.String |
toString() |
|
DateTextItem |
verticalAlign(VerticalAlign verticalAlign)Set the vertical alignment of the text |
| Methods inherited from class | Name |
|---|---|
class Item |
getRectangle |
Create a DateTextItem from the top left
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 Date
date - The DateSet the text Font
font - The text FontSet the date format string
format - The date format stringSet the horizontal alignment of the text
horizontalAlign - The HorizontalAlignSet the vertical alignment of the text
verticalAlign - The VerticalAlignGroovy Documentation