|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.PlacementInfo
This class is the superclass for libraries that implement placement
Field Summary | |
protected int |
height
Placement size |
protected java.lang.String |
transformations
Any placement should modify this, as it determines the uniqueness of a cell type |
static int |
UNCONSTRAINED
A constant meaning unplaced |
protected int |
width
Placement size |
protected int |
x
Placement coordinate |
protected int |
y
Placement coordinate |
Constructor Summary | |
PlacementInfo()
Create an unconstrained placement |
|
PlacementInfo(int x,
int y)
Create a placement at x, y |
Method Summary | |
void |
appendTransformation(java.lang.String transform)
Add the latest transformation onto the transformation status string |
int |
getHeight()
Return the height |
java.lang.String |
getTransformation(Cell c)
Return the transformation |
int |
getWidth()
Return the width |
int |
getX()
Return the x coordinate |
int |
getY()
Return the y coordinate |
void |
setHeight(int h)
Set the height |
void |
setWidth(int w)
Set the width |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNCONSTRAINED
protected int x
protected int y
protected int width
protected int height
protected java.lang.String transformations
Constructor Detail |
public PlacementInfo()
public PlacementInfo(int x, int y)
x
- the x coordinatey
- the y coordinateMethod Detail |
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public void setWidth(int w)
w
- the new widthpublic void setHeight(int h)
h
- the new heightpublic void appendTransformation(java.lang.String transform)
transform
- the latest transformationpublic java.lang.String getTransformation(Cell c)
c
- the cell to look at
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |