public class GridData
extends java.lang.Object
Constructor and Description |
---|
GridData(int index)
This creates a GridData with a specified index and no offsets.
|
GridData(int index,
org.eclipse.draw2d.geometry.Rectangle offsets)
This creates a GridData with a specified index and a rectangle that
specifies the offsets of the Figure (x, y, width, and height).
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Gets the index of the Figure with this GridData.
|
org.eclipse.draw2d.geometry.Rectangle |
getOffsets()
Gets a copy of the offsets of this GridData object.
|
public GridData(int index)
index
- The index of the Figure.public GridData(int index, org.eclipse.draw2d.geometry.Rectangle offsets)
index
- The index of the Figure.offsets
- A draw2d Rectangle representing the x, y, width, and height
offsets of this Figure.public int getIndex()
public org.eclipse.draw2d.geometry.Rectangle getOffsets()