|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to be implemented by components wishing to display some object that may be dynamically resized during runtime.
Field Summary | |
static java.lang.String[] |
UNIT_SYMBOLS
Textual representations of units symbols. |
static int |
UNITS_CM
Unit code representing centimetres. |
static int |
UNITS_EM
Unit code representing the font-size of the relevant font. |
static int |
UNITS_EX
Unit code representing the x-height of the relevant font. |
static int |
UNITS_INCH
Unit code representing inches. |
static int |
UNITS_MM
Unit code representing millimetres. |
static int |
UNITS_PERCENTAGE
Unit code representing in percentage of the containing element defined by terminal. |
static int |
UNITS_PICAS
Unit code representing picas (12 points). |
static int |
UNITS_PIXELS
Unit code representing pixels. |
static int |
UNITS_POINTS
Unit code representing points (1/72nd of an inch). |
Method Summary | |
int |
getHeight()
Get height of the object. |
int |
getHeightUnits()
Get height property units. |
int |
getWidth()
Get width of the object. |
int |
getWidthUnits()
Get width property units. |
void |
setHeight(int height)
Set height of the object. |
void |
setHeightUnits(int units)
Set height property units. |
void |
setWidth(int width)
Set width of the object. |
void |
setWidthUnits(int units)
Set width property units. |
Field Detail |
public static final int UNITS_PIXELS
public static final int UNITS_POINTS
public static final int UNITS_PICAS
public static final int UNITS_EM
public static final int UNITS_EX
public static final int UNITS_MM
public static final int UNITS_CM
public static final int UNITS_INCH
public static final int UNITS_PERCENTAGE
public static final java.lang.String[] UNIT_SYMBOLS
UNITS_PIXELS
: "" (unit is omitted for pixels)UNITS_POINTS
: "pt"UNITS_PICAS
: "pc"UNITS_EM
: "em"UNITS_EX
: "ex"UNITS_MM
: "mm"UNITS_CM
. "cm"UNITS_INCH
: "in"UNITS_PERCENTAGE
: "%"Sizeable.UNIT_SYMBOLS[UNITS_PIXELS]
.
Method Detail |
public int getWidth()
public void setWidth(int width)
width
- width of the object in units specified by widthUnits property.public int getHeight()
public void setHeight(int height)
height
- height of the object in units specified by heightUnits property.public int getWidthUnits()
public void setWidthUnits(int units)
units
- units used in width property.public int getHeightUnits()
public void setHeightUnits(int units)
units
- units used in height property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |