lt.monarch.math.geom
Class RoundedRectangle

java.lang.Object
  extended by java.awt.geom.Area
      extended by lt.monarch.math.geom.RoundedRectangle
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, Primitive, Primitive2D

public class RoundedRectangle
extends java.awt.geom.Area
implements Primitive2D

Rectangle with one rounded edge

See Also:
Serialized Form

Constructor Summary
Constructor and Description
RoundedRectangle(int x, int y, int w, int h, int arcw, int arch, Alignment al)
           
RoundedRectangle(Rectangle2D r, int arcw, int arch, Alignment al)
           
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes object
 java.util.List<Point2D> get2DPoints()
          Get a list of 2D points
 
Methods inherited from class java.awt.geom.Area
add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getBounds2D, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lt.monarch.math.geom.Primitive
getBounds2D
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

RoundedRectangle

public RoundedRectangle(Rectangle2D r,
                        int arcw,
                        int arch,
                        Alignment al)

RoundedRectangle

public RoundedRectangle(int x,
                        int y,
                        int w,
                        int h,
                        int arcw,
                        int arch,
                        Alignment al)
Method Detail

get2DPoints

public java.util.List<Point2D> get2DPoints()
Description copied from interface: Primitive2D
Get a list of 2D points

Specified by:
get2DPoints in interface Primitive2D
Returns:
list of 2D points

dispose

public void dispose()
Description copied from interface: Primitive2D
Disposes object

Specified by:
dispose in interface Primitive
Specified by:
dispose in interface Primitive2D