Package com.itextpdf.awt.geom
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 class
static class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double x, double y) void
void
add
(Rectangle2D r) boolean
contains
(double x, double y) boolean
contains
(double x, double y, double width, double height) abstract Rectangle2D
abstract Rectangle2D
boolean
getPathIterator
(AffineTransform t, double flatness) int
hashCode()
static void
intersect
(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst) boolean
intersects
(double x, double y, double width, double height) boolean
intersectsLine
(double x1, double y1, double x2, double y2) boolean
abstract int
outcode
(double x, double y) int
void
setFrame
(double x, double y, double width, double height) abstract void
setRect
(double x, double y, double width, double height) void
static void
union
(Rectangle2D src1, Rectangle2D src2, Rectangle2D dst) Methods inherited from class com.itextpdf.awt.geom.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:
setFrame
in 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:
getPathIterator
in interfaceShape
- Overrides:
getPathIterator
in classRectangularShape
-
hashCode
public int hashCode() -
equals
-