|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A potentially symbolic description of a
Region's shape,
that is location and dimension.
The actual dimensions, etc. are computed when the associated
Region is
drawn and the dimensions of its parent are known and passed
to this interface's compute() method.
| Method Summary | |
RectRegion |
compute(ScaleInt sx,
ScaleInt sy,
int origin,
double widthCM,
double heightCM,
int fontsize,
GraphicalContainerInt parentId)
Compute the actual bounding box described by this region description in terms of the normalized dimensions of its parent container, that is NPC. |
UDouble |
getHeight()
Retrieve the vertical dimension and unit for this object. |
int |
getHJust()
Retrieve the type for the horizontal justification for this object. |
int |
getVJust()
Retrieve the type for the vertical justification for this object. |
UDouble |
getWidth()
Retrieve the horizontal dimension and unit for this object. |
UDouble |
getX()
Retrieve the horizontal position and unit for this object. |
UDouble |
getY()
Retrieve the vertical position and unit for this object. |
UDouble |
setHeight(UDouble w)
Set the value and unit of the vertical dimension of this description. |
int |
setHJust(int v)
Set the type for the horizontal justification for this object. |
int |
setVJust(int v)
Set the type for the vertical justification for this object. |
UDouble |
setWidth(UDouble w)
Set the value and unit of the horizontal dimension of this description. |
UDouble |
setX(UDouble w)
Set the value and unit of the horizontal location of this description. |
UDouble |
setY(UDouble w)
Set the value and unit of the vertical location of this description. |
| Method Detail |
public RectRegion compute(ScaleInt sx,
ScaleInt sy,
int origin,
double widthCM,
double heightCM,
int fontsize,
GraphicalContainerInt parentId)
sx - parent container's horizontal ScaleInt object for transforming
coordinates in that space.sy - parent container's vertical ScaleInt object for transforming
coordinates in that space.public UDouble setX(UDouble w)
public UDouble setY(UDouble w)
public UDouble setWidth(UDouble w)
public UDouble setHeight(UDouble w)
public int setHJust(int v)
public int setVJust(int v)
public UDouble getX()
public UDouble getY()
public UDouble getWidth()
public UDouble getHeight()
public int getHJust()
public int getVJust()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||