DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Dimensions

java.lang.Object
  extended by 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.

Licensing:
This class is a DynamicPDF Generator Community Edition feature.


Constructor Summary
Dimensions(float width, float height)
          Initializes a new instance of the Dimensions class.
Dimensions(float left, float top, float right, float bottom)
          Initializes a new instance of the Dimensions class.
Dimensions(PageSize size, PageOrientation orientation)
          Initializes a new instance of the Dimensions 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 Dimensions 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 Dimensions 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 Dimensions 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.

Parameters:
value - the width of the dimensions.

getWidth

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

Returns:
the width of the dimensions.

setHeight

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

Parameters:
value - the height of the page dimensions.

getHeight

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

Returns:
the height of the page dimensions.

setLeft

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

Parameters:
value - the left edge of the dimensions.

getLeft

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

Returns:
the left edge of the dimensions.

setTop

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

Parameters:
value - the top edge of the dimensions.

getTop

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

Returns:
the top edge of the dimensions.

setRight

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

Parameters:
value - the right edge of the dimensions.

getRight

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

Returns:
the right edge of the dimensions.

setBottom

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

Parameters:
value - the bottom edge of the dimensions.

getBottom

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

Returns:
the bottom edge of the dimensions.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software