public class GraphInfo extends Object implements com.aspose.ms.System.ICloneable
Encapsulates info for a Graph
paragraph.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,100,400); sec1.Paragraphs.Add(graph1); float[] posArr = new float[]{100,0,300,0}; Line l1 = new Line(graph1,posArr); l1.GraphInfo.Color = new Aspose.Pdf.Generator.Color("Red"); l1.GraphInfo.LineWidth = 3; l1.GraphInfo.LineCapMode = 1; graph1.Shapes.Add(l1); posArr = new float[]{100,50,300,50}; Line l2 = new Line(graph1,posArr); l2.GraphInfo.Color = new Aspose.Pdf.Generator.Color(0,128,128); l2.GraphInfo.DashLengthInBlack = 2; l2.GraphInfo.DashLengthInWhite = 1; graph1.Shapes.Add(l2); Circle circle1 = new Circle(graph1,200,50,30); graph1.Shapes.Add(circle1); circle1.GraphInfo.FillColor = new Aspose.Pdf.Generator.Color("Green"); circle1.GraphInfo.IsFilled = true; pdf1.Save(...); [Visual Basic] Dim pdf1 As Pdf = New Pdf() Dim sec1 As Section = pdf1.Sections.Add() Dim graph1 As Graph = New Graph(sec1, 100, 400) sec1.Paragraphs.Add(graph1) Dim posArr() As Single = New Single() {100, 0, 300, 0} Dim l1 As Line = New Line(graph1, posArr) l1.GraphInfo.Color = New Aspose.Pdf.Generator.Color("Red") l1.GraphInfo.LineWidth = 3 l1.GraphInfo.LineCapMode = 1 graph1.Shapes.Add(l1) posArr = New Single() {100, 50, 300, 50} Dim l2 As Line = New Line(graph1, posArr) l2.GraphInfo.Color = New Aspose.Pdf.Generator.Color(0, 128, 128) l2.GraphInfo.DashLengthInBlack = 2 l2.GraphInfo.DashLengthInWhite = 1 graph1.Shapes.Add(l2) Dim circle1 As Circle = New Circle(graph1, 200, 50, 30) graph1.Shapes.Add(circle1) circle1.GraphInfo.FillColor = New Aspose.Pdf.Generator.Color("Green") circle1.GraphInfo.IsFilled = 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>
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.
|
int |
getBorderStyle() |
Color |
getColor()
Gets or sets a
Color object that indicates the color of the
graph. |
float |
getCornerRadius()
Gets or sets Round corner radius.
|
float |
getDashLengthInBlack()
Gets or sets a float value that indicates the dash length in
black.The unit is point.
|
float |
getDashLengthInWhite()
Gets or sets a float value that indicates the dash length in
white.The unit is point.
|
Color |
getFillColor()
Gets or sets a
Color object that indicates the fill color of
the graph. |
String |
getFillRule()
Gets or sets a string that indicates the graph fill rule.It can be
"winding" or "evenodd".
|
int |
getFlatness()
Gets or sets an positive int value that indicates the flatness.
|
BorderInfo |
getGraphBorder()
Gets or sets a borderinfo value that indicates the border information
of the graph.
|
int |
getLineCapMode()
Gets or sets an int value between 0 and 2 that indicates the line cap
mode.
|
int |
getLineJoinMode()
Gets or sets an int value between 0 and 2 that indicates the line
join mode.
|
float |
getLineWidth()
Gets or sets a float value that indicates the line width of the
graph.
|
int |
getMiterLimit()
Gets or sets an int value greater than or equal to 1 that indicates
the miter limit.
|
float |
getNewOriginX()
Gets or sets a float value that indicates the x-coordinate of the new
origin when transforming a coordinate system.
|
float |
getNewOriginY()
Gets or sets a float value that indicates the y-coordinate of the new
origin when transforming a coordinate system.
|
PolyDashArray |
getPolyDashArr() |
float |
getRotationAngle()
Gets or sets a float value that indicates the rotation angle of the
coordinate system when transforming a coordinate system.
|
float |
getScalingRateX()
Gets or sets a float value that indicates the scaling rate of the
x-coordinate when transforming a coordinate system.
|
float |
getScalingRateY()
Gets or sets a float value that indicates the scaling rate of the
y-coordinate when transforming a coordinate system.
|
float |
getSkewAngleX()
Gets or sets a float value that indicates the skew angle of the
x-coordinate when transforming a coordinate system.
|
float |
getSkewAngleY()
Gets or sets a float value that indicates the skew angle of the
y-coordinate when transforming a coordinate system.
|
boolean |
isAddedArrowAtEnd()
Gets or sets a bool value that indicates whether add arrow at the end
of line.
|
void |
isAddedArrowAtEnd(boolean value) |
boolean |
isAddedArrowAtStart()
Gets or sets a bool value that indicates whether add arrow at the
start of line.
|
void |
isAddedArrowAtStart(boolean value) |
boolean |
isFilled()
Gets or sets a bool value that indicates whether this shape is
filled.
|
void |
isFilled(boolean value) |
boolean |
isStroked()
Gets or sets a bool value that indicates whether this shape is
stroked.
|
void |
isStroked(boolean value) |
void |
setBorderStyle(int value) |
void |
setColor(Color value) |
void |
setCornerRadius(float value) |
void |
setDashLengthInBlack(float value) |
void |
setDashLengthInWhite(float value) |
void |
setFillColor(Color value) |
void |
setFillRule(String value) |
void |
setFlatness(int value) |
void |
setGraphBorder(BorderInfo value) |
void |
setLineCapMode(int value) |
void |
setLineJoinMode(int value) |
void |
setLineWidth(float value) |
void |
setMiterLimit(int value) |
void |
setNewOriginX(float value) |
void |
setNewOriginY(float value) |
void |
setPolyDash(String dash)
Sets poly dash.
|
void |
setPolyDashArr(PolyDashArray value) |
void |
setRotationAngle(float value) |
void |
setScalingRateX(float value) |
void |
setScalingRateY(float value) |
void |
setSkewAngleX(float value) |
void |
setSkewAngleY(float value) |
public PolyDashArray getPolyDashArr()
public void setPolyDashArr(PolyDashArray value)
public float getLineWidth()
Gets or sets a float value that indicates the line width of the graph.
public void setLineWidth(float value)
public BorderInfo getGraphBorder()
Gets or sets a borderinfo value that indicates the border information of the graph.
public void setGraphBorder(BorderInfo value)
public Color getColor()
Gets or sets a Color
object that indicates the color of the
graph.
public void setColor(Color value)
public Color getFillColor()
Gets or sets a Color
object that indicates the fill color of
the graph.
public void setFillColor(Color value)
public float getDashLengthInBlack()
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 void setDashLengthInBlack(float value)
public float getDashLengthInWhite()
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 void setDashLengthInWhite(float value)
public float getCornerRadius()
Gets or sets Round corner radius.
public void setCornerRadius(float value)
public boolean isFilled()
Gets or sets a bool value that indicates whether this shape is filled.
public void isFilled(boolean value)
public boolean isStroked()
Gets or sets a bool value that indicates whether this shape is stroked.
public void isStroked(boolean value)
public boolean isAddedArrowAtStart()
Gets or sets a bool value that indicates whether add arrow at the start of line.
public void isAddedArrowAtStart(boolean value)
public boolean isAddedArrowAtEnd()
Gets or sets a bool value that indicates whether add arrow at the end of line.
public void isAddedArrowAtEnd(boolean value)
public int getLineJoinMode()
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 void setLineJoinMode(int value)
public int getLineCapMode()
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 void setLineCapMode(int value)
public int getFlatness()
Gets or sets an positive int value that indicates the flatness. Refer to the programmer's guide for more info.
public void setFlatness(int value)
public int getMiterLimit()
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 void setMiterLimit(int value)
public float getNewOriginX()
Gets or sets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.
public void setNewOriginX(float value)
public float getNewOriginY()
Gets or sets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.
public void setNewOriginY(float value)
public float getRotationAngle()
Gets or sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
public void setRotationAngle(float value)
public float getScalingRateX()
Gets or sets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.
public void setScalingRateX(float value)
public float getScalingRateY()
Gets or sets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.
public void setScalingRateY(float value)
public float getSkewAngleX()
Gets or sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.
public void setSkewAngleX(float value)
public float getSkewAngleY()
Gets or sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.
public void setSkewAngleY(float value)
public String getFillRule()
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 void setFillRule(String value)
public Object deepClone()
Clones a new GraphInfo object.
deepClone
in interface com.aspose.ms.System.ICloneable
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.public int getBorderStyle()
public void setBorderStyle(int value)
Copyright © 2016 Aspose. All Rights Reserved.