|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfArray> it.stefanochizzolini.clown.objects.Rectangle
public class Rectangle
PDF rectangle object [PDF:1.6:3.8.4].
Rectangles are described by two diagonally-opposite corners.
Corner pairs which don't respect the canonical form (lower-left and upper-right) are automatically normalized to provide a consistent representation.
Coordinates are expressed within the PDF coordinate space (lower-left origin and positively-oriented axes).
Constructor Summary | |
---|---|
Rectangle(double left,
double top,
double width,
double height)
|
|
Rectangle(PdfDirectObject baseObject)
|
|
Rectangle(Point2D lowerLeft,
Point2D upperRight)
|
|
Rectangle(RectangularShape rectangle)
|
Method Summary | |
---|---|
Rectangle |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
double |
getBottom()
|
double |
getHeight()
|
double |
getLeft()
|
double |
getRight()
|
double |
getTop()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
void |
setBottom(double value)
|
void |
setHeight(double value)
|
void |
setLeft(double value)
|
void |
setRight(double value)
|
void |
setTop(double value)
|
void |
setWidth(double value)
|
void |
setX(double value)
|
void |
setY(double value)
|
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rectangle(RectangularShape rectangle)
public Rectangle(Point2D lowerLeft, Point2D upperRight)
public Rectangle(double left, double top, double width, double height)
public Rectangle(PdfDirectObject baseObject)
Method Detail |
---|
public Rectangle clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfArray>
context
- Which document the clone has to be registered in.public double getBottom()
public double getHeight()
public double getLeft()
public double getRight()
public double getTop()
public double getWidth()
public double getX()
public double getY()
public void setBottom(double value)
public void setHeight(double value)
public void setLeft(double value)
public void setRight(double value)
public void setTop(double value)
public void setWidth(double value)
public void setX(double value)
public void setY(double value)
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |