Package net.sf.latexdraw.parsers.svg.parsers.SVGLength

Examples of net.sf.latexdraw.parsers.svg.parsers.SVGLength.LengthType


   * @return An SVGLength. The length is always converted in PX.
   * @throws ParseException If a problem occurs or if not managed unit are parsed (%, em and ex).
   */
  public SVGLength parseLength() throws ParseException {
    final double value = parseNumber(false);
    final LengthType lgthType;
    final String errorUnit = "Invalid unit";//$NON-NLS-1$
        final String valueAsStr;

        setPosition(0);
    valueAsStr = parseNumberAsString(false);
View Full Code Here


   * @return An SVGLength.
   * @throws ParseException If a problem occurs or if a percentage is parsed.
   */
  public SVGLength parseNumberOrPercent() throws ParseException {
    final double value = parseNumber(false);
    final LengthType type;
    final String valueAsStr;

    setPosition(0);
    valueAsStr = parseNumberAsString(false);
    skipWSP();
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.parsers.svg.parsers.SVGLength.LengthType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.