com.etymon.pj.object
Class PjRectangle
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjArray
com.etymon.pj.object.PjRectangle
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjRectangle
- extends PjArray
A representation of the PDF Rectangle type.
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. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.