com.itextpdf.awt.geom
Class Rectangle
java.lang.Object
com.itextpdf.awt.geom.RectangularShape
com.itextpdf.awt.geom.Rectangle2D
com.itextpdf.awt.geom.Rectangle
- All Implemented Interfaces:
- Shape, Serializable, Cloneable
public class Rectangle
- extends Rectangle2D
- implements Shape, Serializable
- See Also:
- Serialized Form
Method Summary |
void |
add(double px,
double py)
|
void |
add(int px,
int py)
|
void |
add(Point p)
|
void |
add(Rectangle r)
|
boolean |
contains(double px,
double py)
|
boolean |
contains(double rx,
double ry,
double rw,
double rh)
|
boolean |
contains(int px,
int py)
|
boolean |
contains(int rx,
int ry,
int rw,
int rh)
|
boolean |
contains(Point p)
|
boolean |
contains(Rectangle r)
|
Rectangle2D |
createIntersection(Rectangle2D r)
|
Rectangle2D |
createUnion(Rectangle2D r)
|
boolean |
equals(Object obj)
|
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
|
double |
getHeight()
|
Point |
getLocation()
|
Dimension |
getSize()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
void |
grow(double dx,
double dy)
|
void |
grow(int mx,
int my)
|
Rectangle |
intersection(Rectangle r)
|
boolean |
intersects(Rectangle r)
|
boolean |
isEmpty()
|
int |
outcode(double px,
double py)
|
void |
setBounds(double x,
double y,
double width,
double height)
|
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setBounds(Rectangle r)
|
void |
setLocation(double x,
double y)
|
void |
setLocation(int mx,
int my)
|
void |
setLocation(Point p)
|
void |
setRect(double x,
double y,
double width,
double height)
|
void |
setSize(Dimension d)
|
void |
setSize(double width,
double height)
|
void |
setSize(int mx,
int my)
|
String |
toString()
|
void |
translate(double mx,
double my)
|
void |
translate(int mx,
int my)
|
Rectangle |
union(Rectangle r)
|
Methods inherited from class com.itextpdf.awt.geom.Rectangle2D |
add, add, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class com.itextpdf.awt.geom.RectangularShape |
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
x
public double x
y
public double y
width
public double width
height
public double height
Rectangle
public Rectangle()
Rectangle
public Rectangle(Point p)
Rectangle
public Rectangle(Point p,
Dimension d)
Rectangle
public Rectangle(double x,
double y,
double width,
double height)
Rectangle
public Rectangle(int width,
int height)
Rectangle
public Rectangle(Rectangle r)
Rectangle
public Rectangle(Rectangle r)
Rectangle
public Rectangle(Dimension d)
getX
public double getX()
- Specified by:
getX
in class RectangularShape
getY
public double getY()
- Specified by:
getY
in class RectangularShape
getHeight
public double getHeight()
- Specified by:
getHeight
in class RectangularShape
getWidth
public double getWidth()
- Specified by:
getWidth
in class RectangularShape
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in class RectangularShape
getSize
public Dimension getSize()
setSize
public void setSize(int mx,
int my)
setSize
public void setSize(double width,
double height)
setSize
public void setSize(Dimension d)
getLocation
public Point getLocation()
setLocation
public void setLocation(int mx,
int my)
setLocation
public void setLocation(double x,
double y)
setLocation
public void setLocation(Point p)
setRect
public void setRect(double x,
double y,
double width,
double height)
- Specified by:
setRect
in class Rectangle2D
getBounds
public Rectangle getBounds()
- Specified by:
getBounds
in interface Shape
- Overrides:
getBounds
in class RectangularShape
getBounds2D
public Rectangle2D getBounds2D()
- Specified by:
getBounds2D
in interface Shape
- Overrides:
getBounds2D
in class Rectangle2D
setBounds
public void setBounds(int x,
int y,
int width,
int height)
setBounds
public void setBounds(double x,
double y,
double width,
double height)
setBounds
public void setBounds(Rectangle r)
grow
public void grow(int mx,
int my)
grow
public void grow(double dx,
double dy)
translate
public void translate(int mx,
int my)
translate
public void translate(double mx,
double my)
add
public void add(int px,
int py)
add
public void add(double px,
double py)
- Overrides:
add
in class Rectangle2D
add
public void add(Point p)
add
public void add(Rectangle r)
contains
public boolean contains(int px,
int py)
contains
public boolean contains(double px,
double py)
- Specified by:
contains
in interface Shape
- Overrides:
contains
in class Rectangle2D
contains
public boolean contains(Point p)
contains
public boolean contains(int rx,
int ry,
int rw,
int rh)
contains
public boolean contains(double rx,
double ry,
double rw,
double rh)
- Specified by:
contains
in interface Shape
- Overrides:
contains
in class Rectangle2D
contains
public boolean contains(Rectangle r)
createIntersection
public Rectangle2D createIntersection(Rectangle2D r)
- Specified by:
createIntersection
in class Rectangle2D
intersection
public Rectangle intersection(Rectangle r)
intersects
public boolean intersects(Rectangle r)
outcode
public int outcode(double px,
double py)
- Specified by:
outcode
in class Rectangle2D
createUnion
public Rectangle2D createUnion(Rectangle2D r)
- Specified by:
createUnion
in class Rectangle2D
union
public Rectangle union(Rectangle r)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Rectangle2D
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.