Package com.itextpdf.awt.geom
Class Rectangle2D.Float
- java.lang.Object
-
- com.itextpdf.awt.geom.RectangularShape
-
- com.itextpdf.awt.geom.Rectangle2D
-
- com.itextpdf.awt.geom.Rectangle2D.Float
-
- All Implemented Interfaces:
Shape,java.lang.Cloneable
- Enclosing class:
- Rectangle2D
public static class Rectangle2D.Float extends Rectangle2D
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.itextpdf.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float, Rectangle2D.Iterator
-
-
Field Summary
Fields Modifier and Type Field Description floatheightfloatwidthfloatxfloaty-
Fields inherited from class com.itextpdf.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
-
-
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 px, double py)voidsetRect(double x, double y, double width, double height)voidsetRect(float x, float y, float width, float height)voidsetRect(Rectangle2D r)java.lang.StringtoString()-
Methods inherited from class com.itextpdf.awt.geom.Rectangle2D
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
-
Methods inherited from class com.itextpdf.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(float x, float y, float width, float height)
-
setRect
public void setRect(double x, double y, double width, double height)- Specified by:
setRectin classRectangle2D
-
setRect
public void setRect(Rectangle2D r)
- Overrides:
setRectin classRectangle2D
-
outcode
public int outcode(double px, double py)- 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-