public final class Graph extends Paragraph
Represents a graph Paragraph
.
[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); float[] posArr = new float[]{0,0,200,80,300,40,350,90}; Curve curve1 = new Curve(graph1,posArr); graph1.getShapes().add(curve1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Curve Position="0 0 200 80 300 40 350 90" /> </Graph> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
float |
GraphHeight
Gets or sets a float value that indicates the graph height.
|
GraphInfo |
GraphInfo
Gets or sets a
GraphInfo object that indicates the graph info. |
GraphNotes |
GraphNotes
Gets or sets a
GraphNotes collection that indicates all notes in the graph. |
float |
GraphWidth
Gets or sets a float value that indicates the graph width.
|
Hyperlink |
Hyperlink
Gets or sets a
Hyperlink object that indicates the hyper link info of the graph. |
boolean |
IsNeedRepeating
Gets or sets a bool value that indicates whether the paragraph need to be repeated on next page.
|
Shapes |
Shapes
Gets or sets a
Shapes collection that indicates all shapes in the graph. |
TextInfo |
TextInfo |
String |
Title
Gets or sets a string value that indicates the title of the graph.
|
boolean |
UseTOCasTargetList
Get or set a bool value that indicates whether the graph will be referenced in TOC instead of special ImageList
|
int |
ZIndex
Gets or sets a int value that indicates the Z-order of the graph.
|
_PositioningType, FixedHeight, FixedWidth, ID, IsDisabled, IsFirstParagraph, IsFirstParagraphInColumn, IsInList, IsKeptTogether, IsKeptWithNext, IsOnOddPage, Left, Margin, ReferenceParagraphID, Top
Constructor and Description |
---|
Graph()
Initializes a new instance of the
Graph class. |
Graph(float width,
float height) |
Graph(HeaderFooter hf) |
Graph(HeaderFooter hf,
float width,
float height) |
Graph(Section parentSection)
Initializes a new instance of the
Graph class. |
Graph(Section parentSection,
float width,
float height)
Initializes a new instance of the
Graph class. |
Modifier and Type | Method and Description |
---|---|
Object |
completeClone()
Clones a new
Graph object. |
int |
getAlignment()
Gets or sets a
HorizontalAlignmentType object that indicates the alignment type of the cell. |
int |
getAutoNumber()
Gets or sets a automated seqence number for Graph objects.
|
ClippingPath |
getClipping() |
float |
getRotatingAngle()
Gets or sets a float value that indicates the rotation angle of the coordinate system
when transforming a coordinate system.
|
void |
setAlignment(int value) |
void |
setAutoNumber(int value) |
void |
setClipping(ClippingPath value) |
void |
setRotatingAngle(float value) |
copyTo, getBookmarked, setBookmarked
load
public GraphInfo GraphInfo
Gets or sets a GraphInfo
object that indicates the graph info.
public TextInfo TextInfo
public Shapes Shapes
Gets or sets a Shapes
collection that indicates all shapes in the graph.
public boolean IsNeedRepeating
Gets or sets a bool value that indicates whether the paragraph need to be repeated on next page. Default value is false.The attribute is only valid when the paragraph itself and the object its ReferenceParagraphID referred to both are included in RepeatingRows.
public Hyperlink Hyperlink
Gets or sets a Hyperlink
object that indicates the hyper link info of the graph.
public String Title
Gets or sets a string value that indicates the title of the graph.
public boolean UseTOCasTargetList
Get or set a bool value that indicates whether the graph will be referenced in TOC instead of special ImageList
public GraphNotes GraphNotes
Gets or sets a GraphNotes
collection that indicates all notes in the graph.
public float GraphWidth
Gets or sets a 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 float GraphHeight
Gets or sets a 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 int ZIndex
Gets or sets a int value that indicates the Z-order of the graph. A graph with larger ZIndex will be placed over the graph with smaller ZIndex. ZIndex can be negative. Graph with negative ZIndex will be placed behind the text in the page.
public Graph()
Initializes a new instance of the Graph
class.
public Graph(float width, float height)
public Graph(HeaderFooter hf)
public Graph(HeaderFooter hf, float width, float height)
public Graph(Section parentSection)
Initializes a new instance of the Graph
class.
parentSection
- The specified Section
object.
Section
object.
public Graph(Section parentSection, float width, float height)
Initializes a new instance of the Graph
class.
parentSection
- The specified Section
object.width
- The width of the graph.height
- The height of the graph.
Section
object.
public float getRotatingAngle()
Gets or sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
public void setRotatingAngle(float value)
public int getAlignment()
Gets or sets a HorizontalAlignmentType
object that indicates the alignment type of the cell.
public void setAlignment(int value)
public ClippingPath getClipping()
public void setClipping(ClippingPath value)
public int getAutoNumber()
Gets or sets a automated seqence number for Graph objects. The default first value is 1. If set to be n,the value of the next Graph will be (n+1).
public void setAutoNumber(int value)
public Object completeClone()
Clones a new Graph
object. Both format and shapes are cloned.
completeClone
in class Paragraph
Graph
object.Copyright © 2014 Aspose. All Rights Reserved.