Modifier and Type | Field and Description |
---|---|
static byte |
ABSOLUTE_LENGTH_UNIT |
static byte |
ANGLE_UNIT |
static UnitType |
AUTO
Measurement is not defined.
|
static byte |
AUTO_UNIT |
static UnitType |
CH
Measurement is relative to width of the "0" (zero).
|
static UnitType |
CM
Measurement is in centimeters
|
static UnitType |
DEG
Measurement is in degrees.
|
static UnitType |
DPCM
Measurement is in dots per centimeters.
|
static UnitType |
DPI
Measurement is in dots per inch.
|
static UnitType |
DPPX
Measurement is in Dots per pixels unit.
|
static byte |
DURATION_UNIT |
static UnitType |
EM
Measurement is relative to the height of the parent element's font.
|
static byte |
EMPTY |
static UnitType |
EX
Measurement is relative to the height of the lowercase letter x of the parent element's font.
|
static byte |
FONT_RELATIVE |
static byte |
FREQUENCY_UNIT |
static UnitType |
GRAD
Measurement is in gradians.
|
static UnitType |
HZ
Measurement is in hertz.
|
static UnitType |
IN
Measurement is in inches
|
static UnitType |
INTEGER
Measurement is an integer number.
|
static UnitType |
K_HZ
Measurement is in kiloHertz.
|
static UnitType |
MM
Measurement is in millimeters
|
static UnitType |
MS
Measurement is in milliseconds.
|
static byte |
NUMBER_UNIT |
static UnitType |
PC
Measurement is in picas
|
static UnitType |
PERCENTAGE
Measurement is in percentage.
|
static byte |
PERCENTAGE_UNIT |
static UnitType |
PT
Measurement is in points
|
static UnitType |
PX
Measurement is in pixels
|
static UnitType |
Q
Measurement is in quarter-millimeters
|
static UnitType |
RAD
Measurement is in radians.
|
static UnitType |
REAL
Measurement is a real number.
|
static UnitType |
REM
Measurement is relative to font-size of the root element.
|
static byte |
RESOLUTION_UNIT |
static UnitType |
S
Measurement is in seconds.
|
static UnitType |
TURN
Measurement is in turns.
|
static UnitType |
VH
Measurement is relative to 1% of the height of the viewport* Try it
|
static byte |
VIEWPORT_PERCENTAGE_UNIT |
static UnitType |
VMAX
Measurement is relative to 1% of viewport's* larger dimension Try it
|
static UnitType |
VMIN
Measurement is relative to 1% of viewport's* smaller dimension Try it
|
static UnitType |
VW
Measurement is relative to 1% of the width of the viewport*
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object , is equal to this instance. |
boolean |
equals(UnitType other)
Determines whether the specified
UnitType , is equal to this instance. |
byte |
getCategory()
Gets the unit category code.
|
UnitType |
getFraction()
The default unit type is used for storage the fraction part of the
UnitType . |
int |
getMultiplier() |
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(UnitType first,
UnitType second)
Determines whether the two specified
UnitType values are equal. |
static boolean |
op_Inequality(UnitType first,
UnitType second)
Determines whether the two specified
UnitType values are not equal. |
static java.lang.String |
to_String(UnitType value)
Performs an explicit conversion from
UnitType to String . |
static UnitType |
to_UnitType(java.lang.String value)
Performs an implicit conversion from
String to UnitType . |
java.lang.String |
toString()
Returns a
String that represents this instance. |
public static final byte EMPTY
public static final byte FONT_RELATIVE
public static final byte VIEWPORT_PERCENTAGE_UNIT
public static final byte ABSOLUTE_LENGTH_UNIT
public static final byte ANGLE_UNIT
public static final byte DURATION_UNIT
public static final byte FREQUENCY_UNIT
public static final byte RESOLUTION_UNIT
public static final byte PERCENTAGE_UNIT
public static final byte NUMBER_UNIT
public static final byte AUTO_UNIT
public static final UnitType EM
Measurement is relative to the height of the parent element's font.
public static final UnitType EX
Measurement is relative to the height of the lowercase letter x of the parent element's font.
public static final UnitType CH
Measurement is relative to width of the "0" (zero).
public static final UnitType REM
Measurement is relative to font-size of the root element.
public static final UnitType VW
Measurement is relative to 1% of the width of the viewport*
public static final UnitType VH
Measurement is relative to 1% of the height of the viewport* Try it
public static final UnitType VMIN
Measurement is relative to 1% of viewport's* smaller dimension Try it
public static final UnitType VMAX
Measurement is relative to 1% of viewport's* larger dimension Try it
public static final UnitType CM
Measurement is in centimeters
public static final UnitType MM
Measurement is in millimeters
public static final UnitType Q
Measurement is in quarter-millimeters
public static final UnitType IN
Measurement is in inches
public static final UnitType PC
Measurement is in picas
public static final UnitType PT
Measurement is in points
public static final UnitType PX
Measurement is in pixels
public static final UnitType DEG
Measurement is in degrees.
public static final UnitType GRAD
Measurement is in gradians.
public static final UnitType RAD
Measurement is in radians.
public static final UnitType TURN
Measurement is in turns.
public static final UnitType S
Measurement is in seconds.
public static final UnitType MS
Measurement is in milliseconds.
public static final UnitType HZ
Measurement is in hertz.
public static final UnitType K_HZ
Measurement is in kiloHertz.
public static final UnitType DPI
Measurement is in dots per inch.
public static final UnitType DPCM
Measurement is in dots per centimeters.
public static final UnitType DPPX
Measurement is in Dots per pixels unit.
public static final UnitType AUTO
Measurement is not defined.
public static final UnitType PERCENTAGE
Measurement is in percentage.
public static final UnitType INTEGER
Measurement is an integer number.
public static final UnitType REAL
Measurement is a real number.
public static boolean op_Equality(UnitType first, UnitType second)
Determines whether the two specified UnitType
values are equal.
public static boolean op_Inequality(UnitType first, UnitType second)
Determines whether the two specified UnitType
values are not equal.
public static UnitType to_UnitType(java.lang.String value)
Performs an implicit conversion from String
to UnitType
.
value
- The value.public static java.lang.String to_String(UnitType value)
Performs an explicit conversion from UnitType
to String
.
value
- The value.public byte getCategory()
Gets the unit category code.
Value: The category.public int getMultiplier()
public UnitType getFraction()
The default unit type is used for storage the fraction part of the UnitType
.
public boolean equals(java.lang.Object obj)
Determines whether the specified Object
, is equal to this instance.
equals
in interface com.aspose.ms.System.IEquatable<UnitType>
equals
in class java.lang.Object
obj
- The Object
to compare with this instance.true
if the specified Object
is equal to this instance; otherwise, false
.public boolean equals(UnitType other)
Determines whether the specified UnitType
, is equal to this instance.
public int hashCode()
Returns a hash code for this instance.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns a String
that represents this instance.
toString
in class java.lang.Object
String
that represents this instance.