UnitType
Contents
[
Hide
]Inheritance: java.lang.Object
public class UnitType
Specifies the unit of measurement.
Constructors
Constructor | Description |
---|---|
UnitType() |
Fields
Field | Description |
---|---|
CM | A centimeter. |
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 | A unit of font height relative to its parent element’s font. Refer to the World Wide Web Consortium Website for more information. |
INCH | An inch. |
MM | A millimeter. |
PERCENTAGE | A percentage. |
PICA | A pica. |
PIXEL | A pixel. |
POINT | A point. |
Point | Alias for POINT. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |