net.sf.latexdraw.parsers.svg.parsers
Class SVGLength
java.lang.Object
net.sf.latexdraw.parsers.svg.parsers.SVGLength
public class SVGLength
- extends java.lang.Object
Defines an SVG length implementation.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
10/24/07
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Field Summary |
protected SVGLength.LengthType |
lengthType
The type of the length. |
protected double |
value
The value of the length in the user space. |
protected java.lang.String |
valueAsString
The original parsed length value (without the length token). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected double value
- The value of the length in the user space. @since 0.1
lengthType
protected SVGLength.LengthType lengthType
- The type of the length. @since 0.1
valueAsString
protected java.lang.String valueAsString
- The original parsed length value (without the length token). @since 0.1
SVGLength
public SVGLength(double value,
SVGLength.LengthType lengthType,
java.lang.String valueAsString)
- Builds an SVGLength.
- Parameters:
value
- The value of the length in the user space.lengthType
- The type of the length.valueAsString
- The original parsed length value (without the length token).
getValue
public double getValue()
- Returns:
- the value
getLengthType
public SVGLength.LengthType getLengthType()
- Returns:
- the lengthType
getValueAsString
public java.lang.String getValueAsString()
- Returns:
- the valueAsString