aspose.pdf
Class RectData

java.lang.Object
  extended by aspose.pdf.RectData

public class RectData
extends java.lang.Object

Represents a rectangle data structure which specifies the low-left and up-right coordinates.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); RectData rect1 = new RectData(); rect1.setLowerLeftX(100); rect1.setLowerLeftY(100); rect1.setUperRightX(PageSize.A4Width); rect1.setUperRightY(PageSize.A4Height); pdf1.getPageSetup().setCropBox(rect1); Section sec1 = pdf1.getSections().add(); Text text1 = new Text("this is text content"); text1.getMargin().Top = 30; sec1.getParagraphs().add(text1); pdf1.save(....); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf" CropBox="100 100 595 842"> <Section> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>


Constructor Summary
RectData()
          Initializes a new instance of the RectData class.
 
Method Summary
 java.lang.Object Clone()
          Clones a new RectData object.
 float getLowerLeftX()
          Gets a float value that indicates the x-coordinate of the lower-left point.
 float getLowerLeftY()
          Gets a float value that indicates the y-coordinate of the lower-left point.
 float getUperRightX()
          Gets a float value that indicates the x-coordinate of the upper-right point.
 float getUperRightY()
          Gets a float value that indicates the y-coordinate of the upper-right point.
 void setLowerLeftX(float value)
          Sets a float value that indicates the x-coordinate of the lower-left point.
 void setLowerLeftY(float value)
          Sets a float value that indicates the y-coordinate of the lower-left point.
 void setUperRightX(float value)
          Sets a float value that indicates the x-coordinate of the upper-right point.
 void setUperRightY(float value)
          Sets a float value that indicates the y-coordinate of the upper-right point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectData

public RectData()
Initializes a new instance of the RectData class.

Method Detail

getLowerLeftX

public float getLowerLeftX()
Gets a float value that indicates the x-coordinate of the lower-left point.


setLowerLeftX

public void setLowerLeftX(float value)
Sets a float value that indicates the x-coordinate of the lower-left point.

Parameters:
value -

getLowerLeftY

public float getLowerLeftY()
Gets a float value that indicates the y-coordinate of the lower-left point.


setLowerLeftY

public void setLowerLeftY(float value)
Sets a float value that indicates the y-coordinate of the lower-left point.

Parameters:
value -

getUperRightX

public float getUperRightX()
Gets a float value that indicates the x-coordinate of the upper-right point.


setUperRightX

public void setUperRightX(float value)
Sets a float value that indicates the x-coordinate of the upper-right point.

Parameters:
value -

getUperRightY

public float getUperRightY()
Gets a float value that indicates the y-coordinate of the upper-right point.


setUperRightY

public void setUperRightY(float value)
Sets a float value that indicates the y-coordinate of the upper-right point.

Parameters:
value -

Clone

public java.lang.Object Clone()
Clones a new RectData object.

Returns:
The new cloned RectData object.