Add a grid to a cartographic document. Useful for positioning items.
| Type | Name and description | 
|---|---|
private int  | 
                            size | 
                        
private java.awt.Color  | 
                            strokeColor | 
                        
private float  | 
                            strokeWidth | 
                        
| 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