|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.models.impl.LShape
net.sf.latexdraw.glib.models.impl.LPositionShape
net.sf.latexdraw.glib.models.impl.LRectangularShape
net.sf.latexdraw.glib.models.impl.LEllipse
class LEllipse
Defines a model of an ellipse.
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.
02/13/2008
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
IShape.BorderPos, IShape.FillingStyle, IShape.LineStyle, IShape.Position |
Field Summary |
---|
Fields inherited from class net.sf.latexdraw.glib.models.impl.LShape |
---|
arrows, bordersPosition, dashSepBlack, dashSepWhite, dbleBordCol, dbleBordSep, dotSep, fillingCol, fillingStyle, gradAngle, gradColEnd, gradColStart, gradMidPt, hasDbleBord, hasShadow, hatchingsAngle, hatchingsCol, hatchingsSep, hatchingsWidth, id, lineColour, lineStyle, modified, opacity, points, rotationAngle, shadowAngle, shadowCol, shadowSize, showPts, thickness |
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
GOLDEN_ANGLE, PPC |
Constructor Summary | |
---|---|
protected |
LEllipse(boolean isUniqueID)
Creates an Ellipse. |
protected |
LEllipse(IPoint tl,
IPoint br,
boolean isUniqueID)
Creates an ellipse. |
Method Summary | |
---|---|
IEllipse |
duplicate()
Creates a duplicate of the shape (however id are not the same). |
double |
getA()
|
double |
getB()
|
IPoint[] |
getIntersection(ILine line)
Computes the intersection points between the ellipse and the given line. |
double |
getRx()
|
double |
getRy()
|
void |
setCentre(IPoint centre)
Translates the shape to its new centre. |
void |
setRx(double rx)
Sets the x radius of the ellipse. |
void |
setRy(double ry)
Sets the y radius of the ellipse. |
Methods inherited from class net.sf.latexdraw.glib.models.impl.LRectangularShape |
---|
getHeight, getWidth, isBordersMovable, isDbleBorderable, isFillable, isInteriorStylable, isLineStylable, isShadowable, isThicknessable, setHeight, setWidth |
Methods inherited from class net.sf.latexdraw.glib.models.impl.LPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IRectangularShape |
---|
getHeight, getWidth, setHeight, setWidth |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
Methods inherited from interface org.malai.properties.Modifiable |
---|
isModified, setModified |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IArrowable |
---|
getArrowInset, getArrowLength, getArrowSizeDim, getArrowSizeNum, getBracketNum, getDotSizeDim, getDotSizeNum, getRBracketNum, getTBarSizeDim, getTBarSizeNum, setArrowInset, setArrowLength, setArrowSizeDim, setArrowSizeNum, setBracketNum, setDotSizeDim, setDotSizeNum, setRBracketNum, setTBarSizeDim, setTBarSizeNum |
Constructor Detail |
---|
protected LEllipse(boolean isUniqueID)
isUniqueID
- isUniqueID True: the ellipse will have a unique ID.protected LEllipse(IPoint tl, IPoint br, boolean isUniqueID)
tl
- The top-left point of the ellipse.br
- The bottom-right point of the ellipse.isUniqueID
- True: the ellipse will have a unique ID.
java.lang.IllegalArgumentException
- If a or b is not valid.Method Detail |
---|
public IEllipse duplicate()
IShape
duplicate
in interface IEllipse
duplicate
in interface IShape
duplicate
in class LShape
public IPoint[] getIntersection(ILine line)
IEllipse
getIntersection
in interface IEllipse
line
- The line to test.
public double getRx()
getRx
in interface IEllipse
public double getRy()
getRy
in interface IEllipse
public void setRx(double rx)
IEllipse
setRx
in interface IEllipse
rx
- The new x radius.public void setRy(double ry)
IEllipse
setRy
in interface IEllipse
ry
- The new y radius.public void setCentre(IPoint centre)
IEllipse
setCentre
in interface IEllipse
centre
- The new centre.public double getA()
getA
in interface IEllipse
public double getB()
getB
in interface IEllipse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |