org.millstone.base.terminal
Interface Sizeable

All Known Implementing Classes:
Embedded, Panel

public interface Sizeable

Interface to be implemented by components wishing to display some object that may be dynamically resized during runtime.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

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

UNITS_PIXELS

public static final int UNITS_PIXELS
Unit code representing pixels.

See Also:
Constant Field Values

UNITS_POINTS

public static final int UNITS_POINTS
Unit code representing points (1/72nd of an inch).

See Also:
Constant Field Values

UNITS_PICAS

public static final int UNITS_PICAS
Unit code representing picas (12 points).

See Also:
Constant Field Values

UNITS_EM

public static final int UNITS_EM
Unit code representing the font-size of the relevant font.

See Also:
Constant Field Values

UNITS_EX

public static final int UNITS_EX
Unit code representing the x-height of the relevant font.

See Also:
Constant Field Values

UNITS_MM

public static final int UNITS_MM
Unit code representing millimetres.

See Also:
Constant Field Values

UNITS_CM

public static final int UNITS_CM
Unit code representing centimetres.

See Also:
Constant Field Values

UNITS_INCH

public static final int UNITS_INCH
Unit code representing inches.

See Also:
Constant Field Values

UNITS_PERCENTAGE

public static final int UNITS_PERCENTAGE
Unit code representing in percentage of the containing element defined by terminal.

See Also:
Constant Field Values

UNIT_SYMBOLS

public static final java.lang.String[] UNIT_SYMBOLS
Textual representations of units symbols. Supported units and their symbols are: These can be used like Sizeable.UNIT_SYMBOLS[UNITS_PIXELS].

Method Detail

getWidth

public int getWidth()
Get width of the object. Negative number implies unspecified size (terminal is free to set the size).

Returns:
width of the object in units specified by widthUnits property.

setWidth

public void setWidth(int width)
Set width of the object. Negative number implies unspecified size (terminal is free to set the size).

Parameters:
width - width of the object in units specified by widthUnits property.

getHeight

public int getHeight()
Get height of the object. Negative number implies unspecified size (terminal is free to set the size).

Returns:
height of the object in units specified by heightUnits property.

setHeight

public void setHeight(int height)
Set height of the object. Negative number implies unspecified size (terminal is free to set the size).

Parameters:
height - height of the object in units specified by heightUnits property.

getWidthUnits

public int getWidthUnits()
Get width property units.

Returns:
units used in width property.

setWidthUnits

public void setWidthUnits(int units)
Set width property units.

Parameters:
units - units used in width property.

getHeightUnits

public int getHeightUnits()
Get height property units.

Returns:
units used in height property.

setHeightUnits

public void setHeightUnits(int units)
Set height property units.

Parameters:
units - units used in height property.


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.