| Modifier and Type | Field and Description |
|---|---|
| private float | _lengthAsFloat
The specified length value, as a float; pulled from the CSS text |
| private short | _lengthPrimitiveType
The specified primitive SAC data type given for this length, from the CSS text |
| private CalculatedStyle | |
| private static final float | |
| private static final int | |
| private static final float | |
| private static final float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public static float | calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx)
|
| public float | Returns: the absolute value or computed absolute valueName of the property cssName, float baseValue, CssContext ctx)Overrides com. Implements com. Computes a relative unit (e.g. percentage) as an absolute value, using the input value. |
| public short | |
| private CalculatedStyle | |
| public boolean | |
| public boolean |
| _lengthAsFloat | back to summary |
|---|---|
| private float _lengthAsFloat The specified length value, as a float; pulled from the CSS text | |
| _lengthPrimitiveType | back to summary |
|---|---|
| private short _lengthPrimitiveType The specified primitive SAC data type given for this length, from the CSS text | |
| _style | back to summary |
|---|---|
| private CalculatedStyle _style | |
| CM__PER__IN | back to summary |
|---|---|
| private static final float CM__PER__IN | |
| MM__PER__CM | back to summary |
|---|---|
| private static final int MM__PER__CM | |
| PC__PER__PT | back to summary |
|---|---|
| private static final float PC__PER__PT | |
| PT__PER__IN | back to summary |
|---|---|
| private static final float PT__PER__IN | |
| LengthValue | back to summary |
|---|---|
| public LengthValue(CalculatedStyle style, CSSName name, PropertyValue value) | |
| asFloat | back to summary |
|---|---|
| public float asFloat() Overrides com. Implements com.
| |
| calcFloatProportionalValue | back to summary |
|---|---|
| public static float calcFloatProportionalValue(CalculatedStyle style, CSSName cssName, String stringValue, float relVal, short primitiveType, float baseValue, CssContext ctx) | |
| getFloatProportionalTo | back to summary |
|---|---|
| public float getFloatProportionalTo(CSSName cssName, float baseValue, CssContext ctx) Overrides com. Implements com. Computes a relative unit (e.g. percentage) as an absolute value, using the input value. Used for such properties whose parent value cannot be known before layout/render | |
| getLengthPrimitiveType | back to summary |
|---|---|
| public short getLengthPrimitiveType() | |
| getStyle | back to summary |
|---|---|
| private CalculatedStyle getStyle() | |
| hasAbsoluteUnit | back to summary |
|---|---|
| public boolean hasAbsoluteUnit() Overrides com. Implements com.
| |
| isDependentOnFontSize | back to summary |
|---|---|
| public boolean isDependentOnFontSize() Overrides com. Implements com.
| |