| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| public static final SizeUnits | CM
Represents a size in centimeters. |
| private static final double | |
| public static final SizeUnits | DEG
Represents an angle in degrees. |
| private static final double | |
| public static final SizeUnits | EM
Represents a size in EM unit. |
| public static final SizeUnits | EX
Represents a size in EX unit. |
| public static final SizeUnits | GRAD
Represents an angle in gradians. |
| public static final SizeUnits | IN
Represents a size in inches. |
| public static final SizeUnits | MM
Represents a size in millimeters. |
| private static final double | |
| public static final SizeUnits | MS
Represents time in milliseconds. |
| public static final SizeUnits | PC
Represents a size in picas. |
| public static final SizeUnits | PERCENT
Represents a size as a percentage. |
| private static final double | |
| private static final double | |
| public static final SizeUnits | PT
Represents a size in points. |
| public static final SizeUnits | PX
Represents a size in pixels. |
| public static final SizeUnits | RAD
Represents an angle in radians. |
| public static final SizeUnits | S
Represents time in seconds. |
| public static final SizeUnits | TURN
Represents an angle in turns. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public abstract double | |
| private static double | |
| public abstract double | |
| private static double | |
| private static double | |
| public static SizeUnits | |
| public static SizeUnits[] |
| absolute | back to summary |
|---|---|
| private final boolean absolute | |
| CM | back to summary |
|---|---|
| public static final SizeUnits CM Represents a size in centimeters. | |
| CM_PER_INCH | back to summary |
|---|---|
| private static final double CM_PER_INCH | |
| DEG | back to summary |
|---|---|
| public static final SizeUnits DEG Represents an angle in degrees. | |
| DOTS_PER_INCH | back to summary |
|---|---|
| private static final double DOTS_PER_INCH | |
| EM | back to summary |
|---|---|
| public static final SizeUnits EM Represents a size in EM unit. Note It is a unit relative to the font-size of the element. | |
| EX | back to summary |
|---|---|
| public static final SizeUnits EX Represents a size in EX unit. Note In the absence of font metrics, one | |
| GRAD | back to summary |
|---|---|
| public static final SizeUnits GRAD Represents an angle in gradians. Note 400 Gradians = 360 Degrees. | |
| IN | back to summary |
|---|---|
| public static final SizeUnits IN Represents a size in inches. | |
| MM | back to summary |
|---|---|
| public static final SizeUnits MM Represents a size in millimeters. | |
| MM_PER_INCH | back to summary |
|---|---|
| private static final double MM_PER_INCH | |
| MS | back to summary |
|---|---|
| public static final SizeUnits MS Represents time in milliseconds. | |
| PC | back to summary |
|---|---|
| public static final SizeUnits PC Represents a size in picas. | |
| PERCENT | back to summary |
|---|---|
| public static final SizeUnits PERCENT Represents a size as a percentage. | |
| POINTS_PER_INCH | back to summary |
|---|---|
| private static final double POINTS_PER_INCH | |
| POINTS_PER_PICA | back to summary |
|---|---|
| private static final double POINTS_PER_PICA | |
| PT | back to summary |
|---|---|
| public static final SizeUnits PT Represents a size in points. | |
| PX | back to summary |
|---|---|
| public static final SizeUnits PX Represents a size in pixels. | |
| RAD | back to summary |
|---|---|
| public static final SizeUnits RAD Represents an angle in radians. | |
| S | back to summary |
|---|---|
| public static final SizeUnits S Represents time in seconds. | |
| TURN | back to summary |
|---|---|
| public static final SizeUnits TURN Represents an angle in turns. Note 1 Turn = 360 Degrees. | |
| SizeUnits | back to summary |
|---|---|
| private SizeUnits(boolean absolute) | |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute() Gets whether this
| |
| pixels | back to summary |
|---|---|
| public abstract double pixels(double value, double multiplier, Font font) Calculates pixels for a particular
| |
| pixelSize | back to summary |
|---|---|
| private static double pixelSize(Font font) | |
| points | back to summary |
|---|---|
| public abstract double points(double value, double multiplier, Font font) Calculates points for a particular
| |
| pointSize | back to summary |
|---|---|
| private static double pointSize(Font font) | |
| round | back to summary |
|---|---|
| private static double round(double d) | |
| valueOf | back to summary |
|---|---|
| public static SizeUnits valueOf(String name) | |
| values | back to summary |
|---|---|
| public static SizeUnits[] values() | |