Add a line to a cartographic document
| Type | Name and description |
|---|---|
private java.awt.Color |
strokeColor |
private float |
strokeWidth |
| Type Params | Return Type | Name and description |
|---|---|---|
|
LineItem |
strokeColor(java.awt.Color color)Set the stroke color
|
|
LineItem |
strokeWidth(float width)Set the stroke width
|
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Item |
getRectangle |
Create a line 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 stroke color
color - The stroke colorSet the stroke width
width - The stroke widthGroovy Documentation