Add a rectangle to a cartographic document.
Type | Name and description |
---|---|
private java.awt.Color |
fillColor |
private java.awt.Color |
strokeColor |
private float |
strokeWidth |
Constructor and description |
---|
RectangleItem
(int x, int y, int width, int height) Create a rectangle from the top left with the given width and height. |
RectangleItem
() |
Type Params | Return Type | Name and description |
---|---|---|
|
RectangleItem |
fillColor(java.awt.Color color) Set the fill color
|
|
RectangleItem |
strokeColor(java.awt.Color color) Set the stroke color
|
|
RectangleItem |
strokeWidth(float strokeWidth) Set the stroke width
|
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class Item |
getRectangle |
Create a rectangle 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 fill color
color
- The fill colorSet the stroke color
color
- The stroke colorSet the stroke width
strokeWidth
- The stroke widthGroovy Documentation