class GridItem extends Item
Add a grid to a cartographic document. Useful for positioning items.
Type | Name and description |
---|---|
int |
size |
java.awt.Color |
strokeColor |
float |
strokeWidth |
Constructor and description |
---|
GridItem
(int x, int y, int width, int height) Create a GridItem at a location from the top left |
Type Params | Return Type | Name and description |
---|---|---|
|
GridItem |
size(int size) Set the cell size of the grid |
|
GridItem |
strokeColor(java.awt.Color color) Set the stroke color |
|
GridItem |
strokeWidth(float strokeWidth) Set the stroke width |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class Item |
getRectangle |
Create a GridItem at a location 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 cell size of the grid
size
- The cell sizeSet the stroke color
color
- The stroke colorSet the stroke width
strokeWidth
- The stroke widthGroovy Documentation