UnitType

Inheritance: java.lang.Object

public class UnitType

Specifies the unit of measurement.

Constructors

ConstructorDescription
UnitType()

Fields

FieldDescription
CMA centimeter.
EMA unit of font width relative to its parent element’s font. For example, if the font size of a phrase is 2em and it is within a paragraph whose font size is 10px, then the font size of the phrase is 20px. Refer to the World Wide Web Consortium Website for more information.
EXA unit of font height relative to its parent element’s font. Refer to the World Wide Web Consortium Website for more information.
INCHAn inch.
MMA millimeter.
PERCENTAGEA percentage.
PICAA pica.
PIXELA pixel.
POINTA point.
PointAlias for POINT.

Methods

MethodDescription
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

UnitType()

public UnitType()

CM

public static int CM

A centimeter.

EM

public static int EM

A unit of font width relative to its parent element’s font. For example, if the font size of a phrase is 2em and it is within a paragraph whose font size is 10px, then the font size of the phrase is 20px. Refer to the World Wide Web Consortium Website for more information.

EX

public static int EX

A unit of font height relative to its parent element’s font. Refer to the World Wide Web Consortium Website for more information.

INCH

public static int INCH

An inch.

MM

public static int MM

A millimeter.

PERCENTAGE

public static int PERCENTAGE

A percentage.

PICA

public static int PICA

A pica.

PIXEL

public static int PIXEL

A pixel.

POINT

public static int POINT

A point.

Point

public static int Point

Alias for POINT.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int