java.lang.Object
java.awt.geom.RectangularShape
de.grogra.imp2d.objects.Trapezoid
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Trapezoid.Type
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double x, double y) boolean
contains
(double x, double y, double w, double h) double
double
getWidth()
double
getX()
double
getY()
boolean
intersects
(double x, double y, double w, double h) boolean
isEmpty()
void
setFrame
(double x, double y, double w, double h) 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
-
Field Details
-
$TYPE
-
width$FIELD
-
height$FIELD
-
-
Constructor Details
-
Trapezoid
public Trapezoid()
-
-
Method Details
-
getManageableType
-
getX
public double getX()- Specified by:
getX
in classRectangularShape
-
getY
public double getY()- Specified by:
getY
in classRectangularShape
-
getWidth
public double getWidth()- Specified by:
getWidth
in classRectangularShape
-
getHeight
public double getHeight()- Specified by:
getHeight
in classRectangularShape
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classRectangularShape
-
setFrame
public void setFrame(double x, double y, double w, double h) - Specified by:
setFrame
in classRectangularShape
-
getBounds2D
-
contains
public boolean contains(double x, double y) -
intersects
public boolean intersects(double x, double y, double w, double h) -
contains
public boolean contains(double x, double y, double w, double h) -
getPathIterator
-