public final class Graph extends BaseParagraph
Represents graph - graphics generator paragraph.
Constructor and Description |
---|
Graph()
For Internal usage only
|
Graph(float width,
float height)
Initializes a new instance of the
Graph class. |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone the graph.
|
BorderInfo |
getBorder()
Gets the border.
|
GraphInfo |
getGraphInfo()
Gets a
GraphInfo object that indicates the graph info,such as color, line width,etc. |
double |
getHeight()
Gets float value that indicates the graph height.
|
double |
getLeft()
Gets table left coordinate.
|
List<Shape> |
getShapes()
Gets a
Shapes collection that indicates all shapes in the graph. |
TextFragment |
getTitle()
Gets string value that indicates the title of the graph.
|
double |
getTop()
Gets the table top coordinate.
|
double |
getWidth()
Gets float value that indicates the graph width.
|
boolean |
isChangePosition()
Gets change current position after process paragraph.
|
void |
setBorder(BorderInfo value)
Sets the border.
|
void |
setChangePosition(boolean value)
Sets change current position after process paragraph.
|
void |
setGraphInfo(GraphInfo value)
Gets or sets a
GraphInfo object that indicates the graph info,such as color, line
width,etc. |
void |
setHeight(double value)
Sets float value that indicates the graph height.
|
void |
setLeft(double value)
Sets table left coordinate.
|
void |
setShapes(List<Shape> value)
Sets a
Shapes collection that indicates all shapes in the graph. |
void |
setTitle(TextFragment value)
Sets string value that indicates the title of the graph.
|
void |
setTop(double value)
Sets the table top coordinate.
|
void |
setWidth(double value)
Sets float value that indicates the graph width.
|
getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public Graph()
For Internal usage only
public Graph(float width, float height)
Initializes a new instance of the Graph
class.
width
- The width of the graph.height
- The height of the graph.public GraphInfo getGraphInfo()
Gets a GraphInfo
object that indicates the graph info,such as color, line width,etc.
public void setGraphInfo(GraphInfo value)
Gets or sets a GraphInfo
object that indicates the graph info,such as color, line
width,etc.
value
- GraphInfo objectpublic BorderInfo getBorder()
Gets the border.
public void setBorder(BorderInfo value)
Sets the border.
value
- BorderInfo elementpublic boolean isChangePosition()
Gets change current position after process paragraph.(default true)
public void setChangePosition(boolean value)
Sets change current position after process paragraph.(default true)
value
- boolean valuepublic double getLeft()
Gets table left coordinate.
public void setLeft(double value)
Sets table left coordinate.
value
- table left coordinate.public double getTop()
Gets the table top coordinate.
public void setTop(double value)
Sets the table top coordinate.
value
- the table top coordinate.public List<Shape> getShapes()
Gets a Shapes
collection that indicates all shapes in the graph.
public void setShapes(List<Shape> value)
Sets a Shapes
collection that indicates all shapes in the graph.
value
- List of Shape elementspublic TextFragment getTitle()
Gets string value that indicates the title of the graph.
public void setTitle(TextFragment value)
Sets string value that indicates the title of the graph.
value
- title of the graph.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".
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".
value
- float value that indicates the graph width.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".
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".
value
- that indicates the graph height.public Object deepClone()
Clone the graph.
deepClone
in interface com.aspose.ms.System.ICloneable
deepClone
in class BaseParagraph