|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.parsers.svg.path.SVGPathSeg
net.sf.latexdraw.parsers.svg.path.SVGPathSegArc
public class SVGPathSegArc
Defines the SVGPath arc 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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSeg |
---|
SVGPathSeg.PathSeg |
Field Summary | |
---|---|
protected double |
angle
The x-axis rotation angle. |
protected boolean |
largeArcFlag
The value of the large-arc-flag parameter. |
protected double |
rx
The x radius of the arc. |
protected double |
ry
The y radius of the arc. |
protected boolean |
sweepFlag
The value of the sweep-flag parameter. |
protected double |
x
The X-coordinate of the second point of the arc. |
protected double |
y
The Y-coordinate of the second point of the arc. |
Fields inherited from class net.sf.latexdraw.parsers.svg.path.SVGPathSeg |
---|
isRelative, type |
Constructor Summary | |
---|---|
SVGPathSegArc(double x,
double y,
double rx,
double ry,
double angle,
boolean largeArcFlag,
boolean sweepFlag,
boolean isRelative)
The main constructor. |
Method Summary | |
---|---|
double |
getAngle()
|
java.awt.geom.Arc2D |
getArc2D(double x0,
double y0)
Creates a Java Arc2D corresponding to the position and the angles of the arc segment (computations based on the SVG specification instructions concerning the build of an arc, p. 643-649). |
double |
getRX()
|
double |
getRY()
|
SVGPathSeg.PathSeg |
getType()
|
double |
getX()
|
double |
getY()
|
boolean |
isLargeArcFlag()
|
boolean |
isSweepFlag()
|
java.lang.String |
toString()
|
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 |
Field Detail |
---|
protected double x
protected double y
protected double rx
protected double ry
protected double angle
protected boolean largeArcFlag
protected boolean sweepFlag
Constructor Detail |
---|
public SVGPathSegArc(double x, double y, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, boolean isRelative)
x
- The X-coordinate of the second point of the arc.y
- The Y-coordinate of the second point of the arc.rx
- The x radius of the arc.ry
- The y radius of the arc.angle
- The x-axis rotation angle.isRelative
- True: the path segment is relative, false it is absolute.largeArcFlag
- The value of the large-arc-flag parameter.sweepFlag
- The value of the sweep-flag parameter.Method Detail |
---|
public java.awt.geom.Arc2D getArc2D(double x0, double y0)
x0
- The X-coordinate of the initial position.y0
- The Y-coordinate of the initial position.
public double getX()
public double getY()
public double getRX()
public double getRY()
public double getAngle()
public boolean isLargeArcFlag()
public boolean isSweepFlag()
public SVGPathSeg.PathSeg getType()
getType
in class SVGPathSeg
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |