public class Rectangle extends Object
A Rectangle is the representation of a geometric figure.
Constructor and Description |
---|
Rectangle(float urx,
float ury)
Constructs a Rectangle-object starting from the origin (0, 0).
|
Rectangle(float llx,
float lly,
float urx,
float ury)
Constructs a Rectangle-object.
|
Modifier and Type | Method and Description |
---|---|
float |
getBottom() |
com.aspose.ms.System.Collections.ArrayList |
getChunks()
Gets all the chunks in this element.
|
float |
getHeight()
Returns the height of the rectangle.
|
float |
getLeft() |
String |
getMarkupAttribute(String name) |
com.aspose.ms.System.Collections.ICollection |
getMarkupAttributeNames() |
Properties |
getMarkupAttributes() |
float |
getRight() |
float |
getTop()
Get/set the upper right y-coordinate.
|
int |
getType()
Gets the type of the text element.
|
float |
getWidth()
Returns the width of the rectangle.
|
void |
setMarkupAttribute(String name,
String value) |
void |
setMarkupAttributes(Properties value) |
void |
setTop(float value) |
public Rectangle(float llx, float lly, float urx, float ury)
Constructs a Rectangle-object.
llx
- lower left xlly
- lower left yurx
- upper right xury
- upper right ypublic Rectangle(float urx, float ury)
Constructs a Rectangle-object starting from the origin (0, 0).
urx
- upper right xury
- upper right ypublic int getType()
Gets the type of the text element.
Value: a typepublic com.aspose.ms.System.Collections.ArrayList getChunks()
Gets all the chunks in this element.
Value: an ArrayListpublic float getTop()
Get/set the upper right y-coordinate.
Value: a floatpublic void setTop(float value)
public float getLeft()
public float getRight()
public float getBottom()
public float getWidth()
Returns the width of the rectangle.
Value: a widthpublic float getHeight()
Returns the height of the rectangle.
Value: a heightpublic void setMarkupAttribute(String name, String value)
name
- attribute namevalue
- attribute valuepublic String getMarkupAttribute(String name)
name
- attribute namepublic com.aspose.ms.System.Collections.ICollection getMarkupAttributeNames()
Value: a collection of string attribute names
public Properties getMarkupAttributes()
Value: a Properties-object containing all the markupAttributes.
public void setMarkupAttributes(Properties value)
Copyright © 2016 Aspose. All Rights Reserved.