Package com.lapissea.glfw
Class GlfwMonitor.Rect
- java.lang.Object
-
- java.awt.geom.RectangularShape
-
- java.awt.geom.Rectangle2D
-
- com.lapissea.glfw.GlfwMonitor.Rect
-
- Enclosing class:
- GlfwMonitor
public static final class GlfwMonitor.Rect extends Rectangle2D
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
-
-
Field Summary
Fields Modifier and Type Field Description intheightintwidthintxinty-
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
-
-
Constructor Summary
Constructors Constructor Description Rect(int x, int y, int w, int h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle2DcreateIntersection(Rectangle2D r)Rectangle2DcreateUnion(Rectangle2D r)Rectangle2DgetBounds2D()doublegetHeight()doublegetWidth()doublegetX()doublegetY()booleanisEmpty()intoutcode(double x, double y)voidsetRect(double x, double y, double w, double h)StringtoString()-
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
-
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
-
-
-
-
Method Detail
-
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
-
setRect
public void setRect(double x, double y, double w, double h)- Specified by:
setRectin classRectangle2D
-
outcode
public int outcode(double x, double y)- Specified by:
outcodein classRectangle2D
-
getBounds2D
public Rectangle2D getBounds2D()
- Specified by:
getBounds2Din interfaceShape- Overrides:
getBounds2Din classRectangle2D
-
createIntersection
public Rectangle2D createIntersection(Rectangle2D r)
- Specified by:
createIntersectionin classRectangle2D
-
createUnion
public Rectangle2D createUnion(Rectangle2D r)
- Specified by:
createUnionin classRectangle2D
-
-