com.aspose.pdf.elements
Class Rectangle

java.lang.Object
  extended by com.aspose.pdf.elements.Shape
      extended by com.aspose.pdf.elements.Rectangle

public class Rectangle
extends Shape

Represents a rectangle Shape in a Pdf document.


Constructor Summary
Rectangle()
          Initialize a new instance of the Rectangle class.
Rectangle(float posX, float posY, float width, float height)
          Initialize a new instance of the Rectangle class.
 
Method Summary
 float getHeight()
          Gets a float value that indicates the height of the rectangle.
 float getposX()
          Gets a float value that indicates the posX position of the rectangle.
 float getPosY()
          Gets a float value that indicates the posY position of the rectangle.
 float getWidth()
          Gets a float value that indicates the width of the rectangle.
 Rectangle setHeight(float height)
          Sets a float value that indicates the height of the rectangle.
 Rectangle setposX(float posX)
          Sets a float value that indicates the posX position of the rectangle.
 Rectangle setposY(float posY)
          Sets a float value that indicates the posY position of the rectangle.
 Rectangle setWidth(float width)
          Sets a float value that indicates the width of the rectangle.
 
Methods inherited from class com.aspose.pdf.elements.Shape
getGraphInfo, getID, setGraphInfo, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle()
Initialize a new instance of the Rectangle class.


Rectangle

public Rectangle(float posX,
                 float posY,
                 float width,
                 float height)
Initialize a new instance of the Rectangle class.

Method Detail

getPosY

public float getPosY()
Gets a float value that indicates the posY position of the rectangle.

Returns:
Returns the posY.

setposY

public Rectangle setposY(float posY)
Sets a float value that indicates the posY position of the rectangle.

Parameters:
posY - The posY to set.

getHeight

public float getHeight()
Gets a float value that indicates the height of the rectangle.

Returns:
Returns the height.

setHeight

public Rectangle setHeight(float height)
Sets a float value that indicates the height of the rectangle.

Parameters:
height - The height to set.

getposX

public float getposX()
Gets a float value that indicates the posX position of the rectangle.

Returns:
Returns the posX.

setposX

public Rectangle setposX(float posX)
Sets a float value that indicates the posX position of the rectangle.

Parameters:
posX - The posX to set.

getWidth

public float getWidth()
Gets a float value that indicates the width of the rectangle.

Returns:
Returns the width.

setWidth

public Rectangle setWidth(float width)
Sets a float value that indicates the width of the rectangle.

Parameters:
width - The width to set.