Graph
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.drawing.Graph, com.aspose.pdf.BaseParagraph, com.aspose.pdf.drawing.Graph
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public final class Graph extends BaseParagraph
Represents graph - graphics generator paragraph.
Constructors
| Constructor | Description |
|---|---|
| Graph | For Internal usage only |
| Graph | Initializes a new instance of the {@link Graph} class. |
| Graph | Initializes a new instance of the {@code Graph} class. |
Methods
| Method | Description |
|---|---|
| deepClone | Clone the graph. |
| getBorder | Gets the border. |
| getGraphInfo | Gets a {@code GraphInfo} object that indicates the graph info,such as color, line width,etc. |
| getHeight | Gets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight=“10cm” or GraphHeight=“5inch”. |
| getLeft | Gets table left coordinate. |
| getShapes | Gets a collection that indicates all shapes in the graph. |
| getTitle | Gets string value that indicates the title of the graph. |
| getTop | Gets the table top coordinate. |
| getWidth | Gets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth=“10cm” or GraphWidth=“5inch”. |
| isChangePosition | Gets change current position after process paragraph.(default true) |
| setBorder | Sets the border. |
| setChangePosition | Sets change current position after process paragraph.(default true) |
| setGraphInfo | Gets or sets a {@code GraphInfo} object that indicates the graph info,such as color, line width,etc. |
| setHeight | Sets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight=“10cm” or GraphHeight=“5inch”. |
| setLeft | Sets table left coordinate. |
| setShapes | Sets a collection that indicates all shapes in the graph. |
| setTitle | Sets string value that indicates the title of the graph. |
| setTop | Sets the table top coordinate. |
| setWidth | Sets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth=“10cm” or GraphWidth=“5inch”. |
Graph
public Graph()
For Internal usage only
Graph
public Graph(double width, double height)
Initializes a new instance of the {@link Graph} class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| width | The width of the graph. | |
| height | The height of the graph. |
Graph
@Deprecated public Graph(float width, float height)
Initializes a new instance of the {@code Graph} class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| width | The width of the graph. | |
| height | The height of the graph. |
deepClone
public Object deepClone()
Clone the graph.
Returns: The cloned object
getBorder
public BorderInfo getBorder()
Gets the border.
Returns: BorderInfo element
getGraphInfo
public GraphInfo getGraphInfo()
Gets a {@code GraphInfo} object that indicates the graph info,such as color, line width,etc.
Returns: GraphInfo object
getHeight
public double getHeight()
Gets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight=“10cm” or GraphHeight=“5inch”.
Returns: value that indicates the graph height.
getLeft
public double getLeft()
Gets table left coordinate.
Returns: table left coordinate.
getShapes
public final BoundsCheckableList < Shape > getShapes()
Gets a collection that indicates all shapes in the graph.
Returns: BoundsCheckableList of Shapes.
getTitle
public TextFragment getTitle()
Gets string value that indicates the title of the graph.
Returns: title of the graph.
getTop
public double getTop()
Gets the table top coordinate.
Returns: the table top coordinate.
getWidth
public double getWidth()
Gets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth=“10cm” or GraphWidth=“5inch”.
Returns: float value that indicates the graph width.
isChangePosition
public boolean isChangePosition()
Gets change current position after process paragraph.(default true)
Returns: boolean value
setBorder
Sets the border.
setChangePosition
public void setChangePosition(boolean value)
Sets change current position after process paragraph.(default true)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setGraphInfo
Gets or sets a {@code GraphInfo} object that indicates the graph info,such as color, line width,etc.
setHeight
public void setHeight(double value)
Sets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight=“10cm” or GraphHeight=“5inch”.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | that indicates the graph height. |
setLeft
public void setLeft(double value)
Sets table left coordinate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | table left coordinate. |
setShapes
Sets a collection that indicates all shapes in the graph.
setTitle
Sets string value that indicates the title of the graph.
setTop
public void setTop(double value)
Sets the table top coordinate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | the table top coordinate. |
setWidth
public void setWidth(double value)
Sets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth=“10cm” or GraphWidth=“5inch”.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value that indicates the graph width. |