Maven module :un.api : api-geometry :
Class : un.impl.geometry.s2d.RoundedRectangle
Extends/Implements : un.impl.geometry.s2d.AbstractGeometry2D
Subclasses : -

A Rounded Rectangle.
Specification :
current user coordinate system. Rounded rect-angles can be achieved by
setting appropriate values for attributes ‘rx’ and ‘ry’.
author  Johann Sorel


Variables : x, y, width, height
Functions : RoundedRectangle, RoundedRectangle, RoundedRectangle, getX, setX, getY, setY, getWidth, setWidth, getHeight, setHeight, getRx, setRx, getRy, setRy, createPathIterator


protected double x

protected double y

protected double width

protected double height


public void RoundedRectangle ()

public void RoundedRectangle (double x, double y, double width, double height)

public void RoundedRectangle (double x, double y, double width, double height, double rx, double ry)


The x-axis coordinate of the side of the rectangle which has the smaller
x-axis coordinate value in the current user coordinate system.
public double getX ()

public void setX (double x)


The y-axis coordinate of the side of the rectangle which has the smaller
y-axis coordinate value in the current user coordinate system.
public double getY ()

public void setY (double y)


The width of the rectangle.
public double getWidth ()

public void setWidth (double width)


The height of the rectangle.
public double getHeight ()

public void setHeight (double height)


For rounded rectangles, the x-axis radius of the ellipse used
to round off the corners of the rectangle.
public double getRx ()

public void setRx (double rx)


For rounded rectangles, the y-axis radius of the ellipse used
to round off the corners of the rectangle.
public double getRy ()

public void setRy (double ry)

public PathIterator createPathIterator ()