net.sf.latexdraw.parsers.svg.path
Class SVGPathSegCurvetoCubicSmooth
java.lang.Object
net.sf.latexdraw.parsers.svg.path.SVGPathSeg
net.sf.latexdraw.parsers.svg.path.SVGPathSegCurvetoCubicSmooth
public class SVGPathSegCurvetoCubicSmooth
- extends SVGPathSeg
Defines the SVGPath smooth curveto 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
Field Summary |
protected double |
x
The X-coordinate of the second point of the curve. |
protected double |
x2
The x-coordinate of the second control point. |
protected double |
y
The Y-coordinate of the second point of the curve. |
protected double |
y2
The y-coordinate of the second control point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
protected double x
- The X-coordinate of the second point of the curve. @since 2.0
y
protected double y
- The Y-coordinate of the second point of the curve. @since 2.0
x2
protected double x2
- The x-coordinate of the second control point. @since 2.0
y2
protected double y2
- The y-coordinate of the second control point. @since 2.0
SVGPathSegCurvetoCubicSmooth
public SVGPathSegCurvetoCubicSmooth(double x,
double y,
double x2,
double y2,
boolean isRelative)
- The main constructor.
- Parameters:
x
- The X-coordinate of the second point of the curve.y
- The Y-coordinate of the second point of the curve.x2
- The x-coordinate of the second control point.y2
- The y-coordinate of the second control point.isRelative
- isRelative True: the path segment is relative, false it is absolute.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getX
public double getX()
- Returns:
- the x.
- Since:
- 2.0
getY
public double getY()
- Returns:
- the y.
- Since:
- 2.0
getX2
public double getX2()
- Returns:
- the x2.
- Since:
- 2.0
getY2
public double getY2()
- Returns:
- the y2.
- Since:
- 2.0
getType
public SVGPathSeg.PathSeg getType()
- Specified by:
getType
in class SVGPathSeg
- Returns:
- The type of the segment path.