public final class GraphInfo extends XmlBoundEntity
Encapsulates info for 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[]{100,0,300,0}; Line l1 = new Line(graph1,posArr); l1.getGraphInfo().setColor ( new aspose.pdf.generator.Color("Red")); l1.getGraphInfo().setLineWidth ( 3); l1.getGraphInfo().setLineCapMode ( 1); graph1.getShapes().add(l1); posArr = new float[]{100,50,300,50}; Line l2 = new Line(graph1,posArr); l2.getGraphInfo().setColor ( new aspose.pdf.generator.Color(0,128,128)); l2.getGraphInfo().setDashLengthInBlack ( 2); l2.getGraphInfo().setDashLengthInWhite ( 1); graph1.getShapes().add(l2); Circle circle1 = new Circle(graph1,200,50,30); graph1.getShapes().add(circle1); circle1.getGraphInfo().setFillColor ( new aspose.pdf.generator.Color("Green")); circle1.getGraphInfo().setIsFilled ( true); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Line Color="Red" LineWidth="3" LineCapMode="1" Position="100 0 300 0" /> <Line Color="rgb 0 128 128" Dash="2 1" Position="100 50 300 50" /> <Circle CenterPosition="200 50" Radius="30" FillColor="Green" IsFilled="true" /> </Graph> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
Color |
Color
Indicates the color of the graph.
|
float |
DashLengthInBlack
Gets or sets a float value that indicates the dash length in black.The unit is point.
|
float |
DashLengthInWhite
Gets or sets a float value that indicates the dash length in white.The unit is point.
|
Color |
FillColor
Gets or sets a
Color object that indicates the fill color of the graph. |
String |
FillRule
Gets or sets a string that indicates the graph fill rule.It can be "winding" or "evenodd".
|
int |
Flatness
Gets or sets an positive int value that indicates the flatness.
|
boolean |
IsAddedArrowAtEnd
Gets or sets a bool value that indicates whether add arrow at the end of line.
|
boolean |
IsAddedArrowAtStart
Gets or sets a bool value that indicates whether add arrow at the start of line.
|
boolean |
IsFilled
Gets or sets a bool value that indicates whether this shape is filled.
|
boolean |
IsStroked
Gets or sets a bool value that indicates whether this shape is stroked.
|
int |
LineCapMode
Gets or sets an int value between 0 and 2 that indicates the line cap mode.
|
int |
LineJoinMode
Gets or sets an int value between 0 and 2 that indicates the line join mode.
|
float |
LineWidth
Gets or sets a float value that indicates the line width of the graph.
|
int |
MiterLimit
Gets or sets an int value greater than or equal to 1 that indicates the miter limit.
|
float |
NewOriginX
Gets or sets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.
|
float |
NewOriginY
Gets or sets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.
|
float |
RotationAngle
Gets or sets a float value that indicates the rotation angle of the coordinate system
when transforming a coordinate system.
|
float |
ScalingRateX
Gets or sets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.
|
float |
ScalingRateY
Gets or sets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.
|
float |
SkewAngleX
Gets or sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.
|
float |
SkewAngleY
Gets or sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.
|
Constructor and Description |
---|
GraphInfo()
Initializes a new instance of the
GraphInfo class. |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clones a new GraphInfo object.
|
GraphInfo |
getCopy() |
float |
getCornerRadius()
Gets or sets Round corner radius.
|
BorderInfo |
getGraphBorder()
Gets or sets a borderinfo value that indicates the border information of the graph.
|
void |
setCornerRadius(float value) |
void |
setGraphBorder(BorderInfo value) |
void |
setPolyDash(String dash)
Sets poly dash.
|
load
public float LineWidth
Gets or sets a float value that indicates the line width of the graph.
public Color Color
Indicates the color of the graph.
public Color FillColor
Gets or sets a Color
object that indicates the fill color of the graph.
public float DashLengthInBlack
Gets or sets a float value that indicates the dash length in black.The unit is point. Refer to the programmer's guide for more info.
public float DashLengthInWhite
Gets or sets a float value that indicates the dash length in white.The unit is point. Refer to the programmer's guide for more info.
public boolean IsFilled
Gets or sets a bool value that indicates whether this shape is filled.
public boolean IsStroked
Gets or sets a bool value that indicates whether this shape is stroked.
public boolean IsAddedArrowAtStart
Gets or sets a bool value that indicates whether add arrow at the start of line.
public boolean IsAddedArrowAtEnd
Gets or sets a bool value that indicates whether add arrow at the end of line.
public int LineJoinMode
Gets or sets an int value between 0 and 2 that indicates the line join mode. Refer to the programmer's guide for more info.
public int LineCapMode
Gets or sets an int value between 0 and 2 that indicates the line cap mode. Refer to the programmer's guide for more info.
public int Flatness
Gets or sets an positive int value that indicates the flatness. Refer to the programmer's guide for more info.
public int MiterLimit
Gets or sets an int value greater than or equal to 1 that indicates the miter limit. Refer to the programmer's guide for more info.
public float NewOriginX
Gets or sets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.
public float NewOriginY
Gets or sets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.
public float RotationAngle
Gets or sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
public float ScalingRateX
Gets or sets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.
public float ScalingRateY
Gets or sets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.
public float SkewAngleX
Gets or sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.
public float SkewAngleY
Gets or sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.
public String FillRule
Gets or sets a string that indicates the graph fill rule.It can be "winding" or "evenodd". Refer to the programmer's guide for more info.
public BorderInfo getGraphBorder()
Gets or sets a borderinfo value that indicates the border information of the graph.
public void setGraphBorder(BorderInfo value)
public float getCornerRadius()
Gets or sets Round corner radius.
public void setCornerRadius(float value)
public Object deepClone()
Clones a new GraphInfo object.
public GraphInfo getCopy()
public void setPolyDash(String dash)
Sets poly dash.
dash
- The string contains dash data array, the length of data array shoule be less than 8, separated by blank.Copyright © 2014 Aspose. All Rights Reserved.