net.sf.latexdraw.parsers.svg.path
Class SVGPathSegLinetoHorizontal

java.lang.Object
  extended by net.sf.latexdraw.parsers.svg.path.SVGPathSeg
      extended by net.sf.latexdraw.parsers.svg.path.SVGPathSegLineto
          extended by net.sf.latexdraw.parsers.svg.path.SVGPathSegLinetoHorizontal

public class SVGPathSegLinetoHorizontal
extends SVGPathSegLineto

Defines the SVGPath horizontal lineto segment.

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/20/07

Version:
3.0
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSeg
SVGPathSeg.PathSeg
 
Field Summary
 
Fields inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSegLineto
x, y
 
Fields inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSeg
isRelative, type
 
Constructor Summary
SVGPathSegLinetoHorizontal(double x, boolean isRelative)
          The main constructor.
 
Method Summary
 SVGPathSeg.PathSeg getType()
           
 double getY()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSegLineto
getPoint, getX
 
Methods inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSeg
isRelative, setRelative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SVGPathSegLinetoHorizontal

public SVGPathSegLinetoHorizontal(double x,
                                  boolean isRelative)
The main constructor.

Parameters:
x - The X-coordinate of the second point of the line.
isRelative - isRelative True: the path segment is relative, false it is absolute.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class SVGPathSegLineto

getType

public SVGPathSeg.PathSeg getType()
Overrides:
getType in class SVGPathSegLineto
Returns:
The type of the segment path.

getY

public double getY()
Overrides:
getY in class SVGPathSegLineto
Returns:
the y.