public class Curve extends NonClosedShape
Represents a curve Shape
in a Graph.
[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[]{0,0,200,80,300,40,350,90}; Curve curve1 = new Curve(graph1,posArr); graph1.Shapes.Add(curve1); 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() {0, 0, 200, 80, 300, 40, 350, 90} Dim curve1 As Curve = New Curve(graph1, posArr) graph1.Shapes.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>
Constructor and Description |
---|
Curve()
Initializes a new instance of the
Curve class. |
Curve(float[] positionArr)
Initializes a new instance of the
Curve class. |
Curve(Graph graph)
Initializes a new instance of the
Curve class. |
Curve(Graph graph,
float[] positionArr)
Initializes a new instance of the
Curve class. |
Modifier and Type | Method and Description |
---|---|
float |
getPosition1X()
Gets or sets a float value that indicates the x-coordinate of the
control point 1 of the curve.
|
float |
getPosition1Y()
Gets or sets a float value that indicates the y-coordinate of the
control point 1 of the curve.
|
float |
getPosition2X()
Gets or sets a float value that indicates the x-coordinate of the
control point 2 of the curve.
|
float |
getPosition2Y()
Gets or sets a float value that indicates the y-coordinate of the
control point 2 of the curve.
|
float |
getPosition3X()
Gets or sets a float value that indicates the x-coordinate of the
control point 3 of the curve.
|
float |
getPosition3Y()
Gets or sets a float value that indicates the y-coordinate of the
control point 3 of the curve.
|
float |
getPosition4X()
Gets or sets a float value that indicates the x-coordinate of the
control point 4 of the curve.
|
float |
getPosition4Y()
Gets or sets a float value that indicates the y-coordinate of the
control point 4 of the curve.
|
void |
setPosition1X(float value) |
void |
setPosition1Y(float value) |
void |
setPosition2X(float value) |
void |
setPosition2Y(float value) |
void |
setPosition3X(float value) |
void |
setPosition3Y(float value) |
void |
setPosition4X(float value) |
void |
setPosition4Y(float value) |
getBlendInfo, getClipShapes, getEndFillArea, getGraph, getGraphicState, getGraphInfo, getID, getOpacity, getStrokeOpacity, isBoundingBoxRelative, isBoundingBoxRelative, setBlendInfo, setClipShapes, setEndFillArea, setGraph, setGraphInfo, setID, setOpacity, setStrokeOpacity
public Curve()
Initializes a new instance of the Curve
class.
public Curve(float[] positionArr)
Initializes a new instance of the Curve
class.
positionArr
- The position array of the control points of the
curve.There should be four control points,so the length of the array
should be eight.public Curve(Graph graph)
Initializes a new instance of the Curve
class.
graph
- The graph object. Graph
object. public Curve(Graph graph, float[] positionArr)
Initializes a new instance of the Curve
class.
graph
- The graph object.positionArr
- The position array of the control points of the
curve.There should be four control points,so the length of the array
should be eight. Graph
object. public float getPosition1X()
Gets or sets a float value that indicates the x-coordinate of the control point 1 of the curve.
public void setPosition1X(float value)
public float getPosition1Y()
Gets or sets a float value that indicates the y-coordinate of the control point 1 of the curve.
public void setPosition1Y(float value)
public float getPosition2X()
Gets or sets a float value that indicates the x-coordinate of the control point 2 of the curve.
public void setPosition2X(float value)
public float getPosition2Y()
Gets or sets a float value that indicates the y-coordinate of the control point 2 of the curve.
public void setPosition2Y(float value)
public float getPosition3X()
Gets or sets a float value that indicates the x-coordinate of the control point 3 of the curve.
public void setPosition3X(float value)
public float getPosition3Y()
Gets or sets a float value that indicates the y-coordinate of the control point 3 of the curve.
public void setPosition3Y(float value)
public float getPosition4X()
Gets or sets a float value that indicates the x-coordinate of the control point 4 of the curve.
public void setPosition4X(float value)
public float getPosition4Y()
Gets or sets a float value that indicates the y-coordinate of the control point 4 of the curve.
public void setPosition4Y(float value)
Copyright © 2016 Aspose. All Rights Reserved.