DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Dimensions

java.lang.Object
  |
  +--com.cete.dynamicpdf.Dimensions
All Implemented Interfaces:
java.lang.Cloneable

public class Dimensions
extends java.lang.Object
implements java.lang.Cloneable

Class provides the dimensions of a rectangle.


Constructor Summary
Dimensions(float width, float height)
          Initializes a new instance of the class.
Dimensions(float left, float top, float right, float bottom)
          Initializes a new instance of the class.
Dimensions(PageSize size, PageOrientation orientation)
          Initializes a new instance of the class.
 
Method Summary
 float getBottom()
          Gets the bottom edge of the dimensions.
 float getHeight()
          Gets the height of the page dimensions.
 float getLeft()
          Gets the left edge of the dimensions.
 float getRight()
          Gets the right edge of the dimensions.
 float getTop()
          Gets the top edge of the dimensions.
 float getWidth()
          Gets the width of the dimensions.
 void setBottom(float value)
          Sets the bottom edge of the dimensions.
 void setHeight(float value)
          Sets the height of the page dimensions.
 void setLeft(float value)
          Sets the left edge of the dimensions.
 void setRight(float value)
          Sets the right edge of the dimensions.
 void setTop(float value)
          Sets the top edge of the dimensions.
 void setWidth(float value)
          Sets the width of the dimensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dimensions

public Dimensions(PageSize size,
                  PageOrientation orientation)
Initializes a new instance of the class.

Parameters:
size - The page size of the dimensions.
orientation - The orientation of the dimensions.

Dimensions

public Dimensions(float width,
                  float height)
Initializes a new instance of the class.

Parameters:
width - the width of the dimensions.
height - the height of the dimensions.

Dimensions

public Dimensions(float left,
                  float top,
                  float right,
                  float bottom)
Initializes a new instance of the class.

Parameters:
left - the left edge of the dimensions.
top - the top edge of the dimensions.
right - the right edge of the dimensions.
bottom - the bottom edge of the dimensions.
Method Detail

setWidth

public void setWidth(float value)
Sets the width of the dimensions.


getWidth

public float getWidth()
Gets the width of the dimensions.


setHeight

public void setHeight(float value)
Sets the height of the page dimensions.


getHeight

public float getHeight()
Gets the height of the page dimensions.


setLeft

public void setLeft(float value)
Sets the left edge of the dimensions.


getLeft

public float getLeft()
Gets the left edge of the dimensions.


setTop

public void setTop(float value)
Sets the top edge of the dimensions.


getTop

public float getTop()
Gets the top edge of the dimensions.


setRight

public void setRight(float value)
Sets the right edge of the dimensions.


getRight

public float getRight()
Gets the right edge of the dimensions.


setBottom

public void setBottom(float value)
Sets the bottom edge of the dimensions.


getBottom

public float getBottom()
Gets the bottom edge of the dimensions.


DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software