aspose.pdf
Class GraphNote

java.lang.Object
  extended by aspose.pdf.GraphNote

public class GraphNote
extends java.lang.Object

Represents a note in a .

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); Circle circle1 = new Circle(graph1,200,50,30); graph1.getShapes().add(circle1); GraphNote note1 = new GraphNote(sec1); note1.setContent("This is a circle."); note1.setPosX(160); note1.setPosY(10); graph1.getGraphNotes().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>


Constructor Summary
GraphNote()
          Constructor - initializes a new instance of the GraphNote class.
GraphNote(Section section)
          Constructor - initializes a new instance of the GraphNote class.
 
Method Summary
 java.lang.String getContent()
          Gets a string that indicates the content of the note.
 float getPosX()
          Gets a float value that indicates the x-coordinate of the beginning position of the note.
 float getPosY()
          Gets a float value that indicates the y-coordinate of the beginning position of the note.
 TextInfo getTextInfo()
          Gets the text info of the note.
 void setContent(java.lang.String noteContent)
          Sets a string that indicates the content of the note.
 void setPosX(float posX)
          Sets a float value that indicates the x-coordinate of the beginning position of the note.
 void setPosY(float posY)
          Gets a float value that indicates the y-coordinate of the beginning position of the note.
 void setTextInfo(TextInfo noteTextInfo)
          Sets the text info of the note.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphNote

public GraphNote()
Constructor - initializes a new instance of the GraphNote class.


GraphNote

public GraphNote(Section section)
Constructor - initializes a new instance of the GraphNote class.

Parameters:
section - The section object.
Method Detail

getContent

public java.lang.String getContent()
Gets a string that indicates the content of the note.

Returns:
A String value.

setContent

public void setContent(java.lang.String noteContent)
Sets a string that indicates the content of the note.

Parameters:
noteContent - A String value.

getTextInfo

public TextInfo getTextInfo()
Gets the text info of the note.

Returns:
A TextInfo object.

setTextInfo

public void setTextInfo(TextInfo noteTextInfo)
Sets the text info of the note.

Parameters:
noteTextInfo - A TextInfo object.

getPosX

public float getPosX()
Gets a float value that indicates the x-coordinate of the beginning position of the note.

Returns:
A float value.

setPosX

public void setPosX(float posX)
Sets a float value that indicates the x-coordinate of the beginning position of the note.

Parameters:
posX - A float value.

getPosY

public float getPosY()
Gets a float value that indicates the y-coordinate of the beginning position of the note.

Returns:
A float value.

setPosY

public void setPosY(float posY)
Gets a float value that indicates the y-coordinate of the beginning position of the note.

Parameters:
posY - A float value.