FontUnit
Inheritance: java.lang.Object
public class FontUnit
Represents the size of a font.
Constructors
Constructor | Description |
---|---|
FontUnit() | |
FontUnit(int value) | Initializes a new instance of the FontUnit class with the specified font size. |
FontUnit(double value) | Initializes a new instance of the FontUnit class with the specified font size in points. |
FontUnit(double value, int type) | Initializes a new instance of the FontUnit class with the specified font size and UnitType value. |
FontUnit(Unit value) | Initializes a new instance of the FontUnit class with the specified Unit. |
FontUnit(String value) | Initializes a new instance of the FontUnit class with the specified string. |
Fields
Field | Description |
---|---|
Empty | |
Large | |
Larger | |
Medium | |
Small | |
Smaller | |
XLarge | |
XSmall | |
XXLarge | |
XXSmall |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getType() | |
getUnit() | Gets a Unit that represents the font size. |
hashCode() | |
isEmpty() | |
notify() | |
notifyAll() | |
parse(String s) | Converts the specified string to its FontUnit equivalent. |
point(int n) | Creates a FontUnit of type Point from an integer value. |
toString() | Converts the FontUnit object to a string representation. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
FontUnit()
public FontUnit()
FontUnit(int value)
public FontUnit(int value)
Initializes a new instance of the FontUnit class with the specified font size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
FontUnit(double value)
public FontUnit(double value)
Initializes a new instance of the FontUnit class with the specified font size in points.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
FontUnit(double value, int type)
public FontUnit(double value, int type)
Initializes a new instance of the FontUnit class with the specified font size and UnitType value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | |
type | int |
FontUnit(Unit value)
public FontUnit(Unit value)
Initializes a new instance of the FontUnit class with the specified Unit.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Unit |
FontUnit(String value)
public FontUnit(String value)
Initializes a new instance of the FontUnit class with the specified string.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
Empty
public static FontUnit Empty
Large
public static FontUnit Large
Larger
public static FontUnit Larger
Medium
public static FontUnit Medium
Small
public static FontUnit Small
Smaller
public static FontUnit Smaller
XLarge
public static FontUnit XLarge
XSmall
public static FontUnit XSmall
XXLarge
public static FontUnit XXLarge
XXSmall
public static FontUnit XXSmall
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
getType()
public int getType()
Returns: int
getUnit()
public Unit getUnit()
Gets a Unit that represents the font size.
Returns: Unit
hashCode()
public native int hashCode()
Returns: int
isEmpty()
public boolean isEmpty()
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
parse(String s)
public static FontUnit parse(String s)
Converts the specified string to its FontUnit equivalent.
Parameters:
Parameter | Type | Description |
---|---|---|
s | java.lang.String |
Returns: FontUnit
point(int n)
public static FontUnit point(int n)
Creates a FontUnit of type Point from an integer value.
Parameters:
Parameter | Type | Description |
---|---|---|
n | int |
Returns: FontUnit
toString()
public String toString()
Converts the FontUnit object to a string representation.
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 |