| java.lang.Object com.sun.perseus.parser.Length
Length | public class Length (Code) | | The LengthParser returns Length objects
from its parserLength method.
The Length class captures the value of the length
valut along with its unit. The resolution into a user space
value depends on the context (e.g., in Perseus, the
com.sun.perseus.builder.BuildContext class holds the context)
defining things like the size of a pixel.
See Also: LengthParser See Also: com.sun.perseus.builder.BuilderUtil version: $Id: Length.java,v 1.2 2006/04/21 06:40:28 st125089 Exp $ |
SVG_LENGTHTYPE_CM | final public static int SVG_LENGTHTYPE_CM(Code) | | Centimeter unit
|
SVG_LENGTHTYPE_IN | final public static int SVG_LENGTHTYPE_IN(Code) | | Inch unit (2.54cm)
|
SVG_LENGTHTYPE_MM | final public static int SVG_LENGTHTYPE_MM(Code) | | Millimeter unit.
|
SVG_LENGTHTYPE_NUMBER | final public static int SVG_LENGTHTYPE_NUMBER(Code) | | Plain length, no unit
|
SVG_LENGTHTYPE_PC | final public static int SVG_LENGTHTYPE_PC(Code) | | Pica unit. A pica is 12 points as defined in
the CSS 2 specification.
|
SVG_LENGTHTYPE_PERCENTAGE | final public static int SVG_LENGTHTYPE_PERCENTAGE(Code) | | Percentage unit, usually used for percentage of
viewport width or height.
|
SVG_LENGTHTYPE_PT | final public static int SVG_LENGTHTYPE_PT(Code) | | Point unit. A point is 1/72th of an inch as
defined in the CSS 2 specification.
|
unit | public int unit(Code) | | The unit value. One of the SVG_LENGTHTYPE_XXX values.
|
value | public float value(Code) | | The actual length value, prior to unit convertion
|
|
|