public abstract class Layout extends LayoutType
Point c = Point.getLayout(Point.class); Location loc = new Location(new byte[(int)c.sizeof()]); c.bindLocation(loc); c.x(10); c.y(20);
location
Constructor and Description |
---|
Layout() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyFrom(Layout src) |
static <T extends Layout> |
getLayout(java.lang.Class<T> cls)
Instantiate a singleton Layout.
|
bindLocation, sizeof
protected void copyFrom(Layout src)
public static <T extends Layout> T getLayout(java.lang.Class<T> cls)
cls
- The layout class.