com.etymon.pj.object
Class PjRectangle

java.lang.Object
  extended by com.etymon.pj.object.BaseObject
      extended by com.etymon.pj.object.PjObject
          extended by com.etymon.pj.object.PjArray
              extended by com.etymon.pj.object.PjRectangle
All Implemented Interfaces:
java.lang.Cloneable

public class PjRectangle
extends PjArray

A representation of the PDF Rectangle type.


Field Summary
 
Fields inherited from class com.etymon.pj.object.PjArray
_v
 
Constructor Summary
PjRectangle()
          Creates a Rectangle object.
PjRectangle(java.util.Vector v)
          Creates a Rectangle as a wrapper around a Vector.
 
Method Summary
 java.lang.Object clone()
          Returns a deep copy of this object.
 PjNumber getLowerLeftX()
           
 PjNumber getLowerLeftY()
           
 PjNumber getUpperRightX()
           
 PjNumber getUpperRightY()
           
static boolean isLike(PjArray array)
          Examines an array to see if it is a PDF Rectangle object.
 void setLowerLeftX(PjNumber number)
           
 void setLowerLeftY(PjNumber number)
           
 void setUpperRightX(PjNumber number)
           
 void setUpperRightY(PjNumber number)
           
 
Methods inherited from class com.etymon.pj.object.PjArray
cloneVector, getVector, renumber, writePdf
 
Methods inherited from class com.etymon.pj.object.BaseObject
toString, write, write, write, writeln
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PjRectangle

public PjRectangle()
Creates a Rectangle object.


PjRectangle

public PjRectangle(java.util.Vector v)
Creates a Rectangle as a wrapper around a Vector.

Parameters:
v - the Vector to use for this Rectangle.
Method Detail

setLowerLeftX

public void setLowerLeftX(PjNumber number)

getLowerLeftX

public PjNumber getLowerLeftX()

setLowerLeftY

public void setLowerLeftY(PjNumber number)

getLowerLeftY

public PjNumber getLowerLeftY()

setUpperRightX

public void setUpperRightX(PjNumber number)

getUpperRightX

public PjNumber getUpperRightX()

setUpperRightY

public void setUpperRightY(PjNumber number)

getUpperRightY

public PjNumber getUpperRightY()

isLike

public static boolean isLike(PjArray array)
Examines an array to see if it is a PDF Rectangle object.

Parameters:
array - the array to examine.
Returns:
true if the array could be interpreted as a valid PjRectangle object.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a deep copy of this object.

Overrides:
clone in class PjArray
Returns:
a deep copy of this object.
Throws:
java.lang.CloneNotSupportedException - if the instance can not be cloned.