java.lang.Object
java.awt.geom.RectangularShape
de.grogra.imp2d.objects.Octagon
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Octagon.Typestatic final SCOType.Fieldstatic final SCOType.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) booleancontains(double x, double y, double w, double h) doubledoublegetWidth()doublegetX()doublegetY()booleanintersects(double x, double y, double w, double h) booleanisEmpty()voidsetFrame(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
-
Octagon
public Octagon()
-
-
Method Details
-
getManageableType
-
getX
public double getX()- Specified by:
getXin classRectangularShape
-
getY
public double getY()- Specified by:
getYin classRectangularShape
-
getWidth
public double getWidth()- Specified by:
getWidthin classRectangularShape
-
getHeight
public double getHeight()- Specified by:
getHeightin classRectangularShape
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classRectangularShape
-
setFrame
public void setFrame(double x, double y, double w, double h) - Specified by:
setFramein 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
-