Class Rectangle2D
java.lang.Object
com.itextpdf.awt.geom.RectangularShape
com.itextpdf.awt.geom.Rectangle2D
- Direct Known Subclasses:
Rectangle, Rectangle2D.Double, Rectangle2D.Float
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double x, double y) voidvoidadd(Rectangle2D r) booleancontains(double x, double y) booleancontains(double x, double y, double width, double height) abstract Rectangle2Dabstract Rectangle2DbooleangetPathIterator(AffineTransform t, double flatness) inthashCode()static voidintersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst) booleanintersects(double x, double y, double width, double height) booleanintersectsLine(double x1, double y1, double x2, double y2) booleanabstract intoutcode(double x, double y) intvoidsetFrame(double x, double y, double width, double height) abstract voidsetRect(double x, double y, double width, double height) voidstatic voidunion(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst) Methods inherited from class RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, getX, getY, intersects, isEmpty, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
-
Field Details
-
OUT_LEFT
public static final int OUT_LEFT- See Also:
-
OUT_TOP
public static final int OUT_TOP- See Also:
-
OUT_RIGHT
public static final int OUT_RIGHT- See Also:
-
OUT_BOTTOM
public static final int OUT_BOTTOM- See Also:
-
-
Constructor Details
-
Rectangle2D
protected Rectangle2D()
-
-
Method Details
-
setRect
public abstract void setRect(double x, double y, double width, double height) -
outcode
public abstract int outcode(double x, double y) -
createIntersection
-
createUnion
-
setRect
-
setFrame
public void setFrame(double x, double y, double width, double height) - Specified by:
setFramein classRectangularShape
-
getBounds2D
-
intersectsLine
public boolean intersectsLine(double x1, double y1, double x2, double y2) -
intersectsLine
-
outcode
-
contains
public boolean contains(double x, double y) -
intersects
public boolean intersects(double x, double y, double width, double height) -
contains
public boolean contains(double x, double y, double width, double height) -
intersect
-
union
-
add
public void add(double x, double y) -
add
-
add
-
getPathIterator
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape- Overrides:
getPathIteratorin classRectangularShape
-
hashCode
-
equals
-