|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.geom.RectangularShape java.awt.geom.RoundRectangle2D comirva.visu.epsgraphics.objects.EpsRoundRectangle2D
public class EpsRoundRectangle2D
This class encapsulates a eps rectangle with rounded corners.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.RoundRectangle2D |
---|
RoundRectangle2D.Double, RoundRectangle2D.Float |
Field Summary | |
---|---|
protected RoundRectangle2D.Double |
doubleRect
contains the graphical information |
Constructor Summary | |
---|---|
EpsRoundRectangle2D()
construct a default ps round rectangle |
|
EpsRoundRectangle2D(boolean filled)
construct a default filled eps round rectangle |
|
EpsRoundRectangle2D(RoundRectangle2D.Double d)
construct a round rectangle given by the parameter |
|
EpsRoundRectangle2D(RoundRectangle2D.Double d,
boolean filled)
constructs a rounded rectangle |
|
EpsRoundRectangle2D(RoundRectangle2D.Float f)
constructs a rounded rectangle. |
|
EpsRoundRectangle2D(RoundRectangle2D.Float f,
boolean filled)
constructs a rounded rectangle |
Method Summary | |
---|---|
double |
getArcHeight()
|
double |
getArcWidth()
|
Rectangle2D |
getBounds2D()
|
double |
getHeight()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
boolean |
isEmpty()
|
void |
setRoundRect(double x,
double y,
double w,
double h,
double arcWidth,
double arcHeight)
|
String |
toEps()
returns a String that represents the object in postscript code |
Methods inherited from class java.awt.geom.RoundRectangle2D |
---|
contains, contains, equals, getPathIterator, hashCode, intersects, setFrame, setRoundRect |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RoundRectangle2D.Double doubleRect
Constructor Detail |
---|
public EpsRoundRectangle2D()
public EpsRoundRectangle2D(boolean filled)
public EpsRoundRectangle2D(RoundRectangle2D.Double d)
d
- The rounded rectangle to be represented in pspublic EpsRoundRectangle2D(RoundRectangle2D.Double d, boolean filled)
d
- The rounded rectangle to be represented in psfilled
- whether fill or stroke itpublic EpsRoundRectangle2D(RoundRectangle2D.Float f)
f
- The rounded rectangle to be represented in pspublic EpsRoundRectangle2D(RoundRectangle2D.Float f, boolean filled)
f
- The rounded rectangle to be represented in psfilled
- whether fill or stroke itMethod Detail |
---|
public String toEps()
EpsObject
toEps
in interface EpsObject
at.jku.cp.epsgraphics.objects.EpsObject#toEps()
public double getArcHeight()
getArcHeight
in class RoundRectangle2D
public double getArcWidth()
getArcWidth
in class RoundRectangle2D
public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
setRoundRect
in class RoundRectangle2D
public double getHeight()
getHeight
in class RectangularShape
public double getWidth()
getWidth
in class RectangularShape
public double getX()
getX
in class RectangularShape
public double getY()
getY
in class RectangularShape
public boolean isEmpty()
isEmpty
in class RectangularShape
public Rectangle2D getBounds2D()
getBounds2D
in interface Shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |