Adds date text to a cartographic document.
Type | Name and description |
---|---|
private java.awt.Color |
color |
private Date |
date |
private java.awt.Font |
font |
private java.lang.String |
format |
private HorizontalAlign |
horizontalAlign |
private VerticalAlign |
verticalAlign |
Constructor and description |
---|
DateTextItem
(int x, int y, int width, int height) Create a DateTextItem from the top left |
DateTextItem
() |
Type Params | Return Type | Name and description |
---|---|---|
|
DateTextItem |
color(java.awt.Color color) Set the text Color
|
|
DateTextItem |
date(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