PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class Rectangle

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfArray>
      extended by it.stefanochizzolini.clown.objects.Rectangle

public class Rectangle
extends PdfObjectWrapper<PdfArray>

PDF rectangle object [PDF:1.6:3.8.4].

Remarks

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).

Since:
0.0.8
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

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

Rectangle

public Rectangle(RectangularShape rectangle)

Rectangle

public Rectangle(Point2D lowerLeft,
                 Point2D upperRight)

Rectangle

public Rectangle(double left,
                 double top,
                 double width,
                 double height)

Rectangle

public Rectangle(PdfDirectObject baseObject)
Method Detail

clone

public Rectangle clone(Document context)
Description copied from class: PdfObjectWrapper
Gets a clone of the object, registered inside the given document context.

Specified by:
clone in class PdfObjectWrapper<PdfArray>
Parameters:
context - Which document the clone has to be registered in.

getBottom

public double getBottom()

getHeight

public double getHeight()

getLeft

public double getLeft()

getRight

public double getRight()

getTop

public double getTop()

getWidth

public double getWidth()

getX

public double getX()

getY

public double getY()

setBottom

public void setBottom(double value)

setHeight

public void setHeight(double value)

setLeft

public void setLeft(double value)

setRight

public void setRight(double value)

setTop

public void setTop(double value)

setWidth

public void setWidth(double value)

setX

public void setX(double value)

setY

public void setY(double value)

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.