class ParagraphItem extends Item
Add a paragraph to a cartographic document.
Constructor and description |
---|
ParagraphItem
(int x, int y, int width, int height) Create a paragraph from the top left with the given width and height. |
Type Params | Return Type | Name and description |
---|---|---|
|
ParagraphItem |
color(java.awt.Color color) Set the text color |
|
ParagraphItem |
font(java.awt.Font font) Set the font |
|
ParagraphItem |
text(java.lang.String text) Set the text |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class Item |
getRectangle |
Create a paragraph 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 text
text
- The textGroovy Documentation