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>


Field Summary
static float DEFAULT_HORIZ_SCALING
           
 
Constructor Summary
GraphNote()
          Constructor - initializes a new instance of the GraphNote class.
GraphNote(Section section)
          Constructor - initializes a new instance of the GraphNote class.
GraphNote(Section section, java.lang.String content)
          Constructor - initializes a new instance of the GraphNote class.
 
Method Summary
protected  java.lang.Object clone()
           
 java.lang.String getContent()
          Gets a string that indicates the content of the note.
 float getHorizontalScaling()
          Get value of horizontal scale for text.
 LongSideAlignmentType getLongSideAlignment()
          Returns an alignment of text relatively to long side of text.
 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.
 float getRotationAngle()
          Returns text rotation angle.
 TextDirection getTextDirection()
          Returns a direction of a text from it's origin.
 TextInfo getTextInfo()
          Gets the text info of the note.
 boolean isVertical()
          Used to define path of text when letters go one under another
 void setContent(java.lang.String noteContent)
          Sets a string that indicates the content of the note.
 void setHorizontalScaling(float horizontalScaling)
          Set value of horizontal scaling for text.
 void setLongSideAlignment(LongSideAlignmentType longSideAlignment)
          Sets an alignment of text relatively to long side of text.
 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 setRotationAngle(float rotationAngle)
          Sets text rotation angle.
 void setTextDirection(TextDirection textDirection)
          Sets a direction of a text from it's origin.
 void setTextInfo(TextInfo noteTextInfo)
          Sets the text info of the note.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HORIZ_SCALING

public static final float DEFAULT_HORIZ_SCALING
See Also:
Constant Field Values
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.

GraphNote

public GraphNote(Section section,
                 java.lang.String content)
Constructor - initializes a new instance of the GraphNote class.

Parameters:
section - The section object.
content - The content of this graph note.
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.

getRotationAngle

public float getRotationAngle()
Returns text rotation angle.


setRotationAngle

public void setRotationAngle(float rotationAngle)
Sets text rotation angle.


isVertical

public boolean isVertical()
Used to define path of text when letters go one under another


getLongSideAlignment

public LongSideAlignmentType getLongSideAlignment()
Returns an alignment of text relatively to long side of text.


setLongSideAlignment

public void setLongSideAlignment(LongSideAlignmentType longSideAlignment)
Sets an alignment of text relatively to long side of text.


getTextDirection

public TextDirection getTextDirection()
Returns a direction of a text from it's origin.


setTextDirection

public void setTextDirection(TextDirection textDirection)
Sets a direction of a text from it's origin.


getHorizontalScaling

public float getHorizontalScaling()
Get value of horizontal scale for text. The value is in percents of text width.


setHorizontalScaling

public void setHorizontalScaling(float horizontalScaling)
Set value of horizontal scaling for text.

Parameters:
horizontalScaling - - horizontal scaling value in percents

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object