public class GraphNote extends Object
Represents a note in a Graph
.
[C#] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.Sections.Add(); Graph graph1 = new Graph(sec1,100,400); sec1.Paragraphs.Add(graph1); Circle circle1 = new Circle(graph1,200,50,30); graph1.Shapes.Add(circle1); GraphNote note1 = new GraphNote(sec1); note1.Content = "This is a circle."; note1.PositionX = 160; note1.PositionY = 10; graph1.GraphNotes.Add(note1); 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 circle1 As Circle = New Circle(graph1, 200, 50, 30) graph1.Shapes.Add(circle1) Dim note1 As GraphNote = New GraphNote(sec1) note1.Content = "This is a circle." note1.PositionX = 160 note1.PositionY = 10 graph1.GraphNotes.Add(note1) pdf1.Save(...) [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Circle CenterPosition="200 50" Radius="30" /> <Note Position="160 10">This is a circle.</Note> </Graph> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_HORIZ_SCALING |
Constructor and Description |
---|
GraphNote()
Initializes a new instance of the
GraphNote class. |
GraphNote(Section section)
Initializes a new instance of the
GraphNote class. |
GraphNote(Section section,
String content)
Initializes a new instance of the
GraphNote class. |
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Gets or sets a string that indicates the content of the note.
|
int |
getDirection()
Gets or sets a direction of a text from it's origin.
|
float |
getHorizontalScaling()
Gets or sets horizontal scale of a text.
|
int |
getLongSideAlignment()
Gets or sets an alignment of text relatively to long side of text.
|
float |
getPositionX()
Gets or sets a float value that indicates the x-coordinate of the
beginning position of the note.
|
float |
getPositionY()
Gets or sets a float value that indicates the y-coordinate of the
beginning position of the note.
|
float |
getRotationAngle()
Gets or sets a rotate angle of the GraphNote.
|
TextInfo |
getTextInfo()
Gets or sets a
TextInfo object that indicates the text info
of the note. |
int |
getVerticalTextRotationAngle()
Gets or sets a
VerticalTextRotationType object that indicates
the text rotation angle |
boolean |
isVertical()
Used to define path of text when letters go one under another
|
void |
setContent(String value) |
void |
setDirection(int value) |
void |
setHorizontalScaling(float value) |
void |
setLongSideAlignment(int value) |
void |
setPositionX(float value) |
void |
setPositionY(float value) |
void |
setRotationAngle(float value) |
void |
setTextInfo(TextInfo value) |
void |
setVerticalTextRotationAngle(int value) |
public static final float DEFAULT_HORIZ_SCALING
public GraphNote()
Initializes a new instance of the GraphNote
class.
public GraphNote(Section section)
Initializes a new instance of the GraphNote
class.
section
- The section object.public int getVerticalTextRotationAngle()
Gets or sets a VerticalTextRotationType
object that indicates
the text rotation angle
public void setVerticalTextRotationAngle(int value)
public String getContent()
Gets or sets a string that indicates the content of the note.
public void setContent(String value)
public TextInfo getTextInfo()
Gets or sets a TextInfo
object that indicates the text info
of the note.
public void setTextInfo(TextInfo value)
public float getPositionX()
Gets or sets a float value that indicates the x-coordinate of the beginning position of the note.
public void setPositionX(float value)
public float getPositionY()
Gets or sets a float value that indicates the y-coordinate of the beginning position of the note.
public void setPositionY(float value)
public int getLongSideAlignment()
Gets or sets an alignment of text relatively to long side of text.
public void setLongSideAlignment(int value)
public int getDirection()
Gets or sets a direction of a text from it's origin.
public void setDirection(int value)
public float getHorizontalScaling()
Gets or sets horizontal scale of a text.
public void setHorizontalScaling(float value)
public float getRotationAngle()
Gets or sets a rotate angle of the GraphNote.
public void setRotationAngle(float value)
public boolean isVertical()
Used to define path of text when letters go one under another
Copyright © 2016 Aspose. All Rights Reserved.