aspose.pdf
Class GraphNotes

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by aspose.pdf.GraphNotes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class GraphNotes
extends java.util.ArrayList

Represents a collection of GraphNote objects.

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.setPositionX(160); note1.setPositionY(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>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GraphNotes()
          Constructor - initializes a new instance of the GraphNotes class.
 
Method Summary
 void add(GraphNote graphNote)
          Adds a new GraphNote object into the collection.
 java.lang.Object completeClone()
          Clones a new GraphNotes object.
 void copyTo(GraphNote[] graphNoteArray, int index)
          Copies the elements to a GraphNote object array, starting at a specified array index.
 GraphNote getGraphNote(int index)
          Gets a GraphNote object from the collection according to GraphNote index.
 void insert(GraphNote noteToInsertAfter, GraphNote newNote)
          Inserts a new GraphNote object into the collection after specified GraphNote object.
 void insert(int index, GraphNote graphNote)
          Inserts a new GraphNote object into the collection at specified position.
 void remove(GraphNote noteToRemove)
          Removes a GraphNote object from the collection.
 void setGraphNote(GraphNote value, int index)
          Sets a GraphNote object to the collection according to its index.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

GraphNotes

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

Method Detail

add

public void add(GraphNote graphNote)
Adds a new GraphNote object into the collection.

Parameters:
graphNote - The GraphNote object to be added.

getGraphNote

public GraphNote getGraphNote(int index)
Gets a GraphNote object from the collection according to GraphNote index.

Parameters:
index - position where GraphNote object to be read.
Returns:
An GraphNote object.

setGraphNote

public void setGraphNote(GraphNote value,
                         int index)
Sets a GraphNote object to the collection according to its index.

Parameters:
value - An GraphNote object.
index - position where GraphNote object to be added.

remove

public void remove(GraphNote noteToRemove)
Removes a GraphNote object from the collection.

Parameters:
noteToRemove - The GraphNote object to be removed..

insert

public void insert(int index,
                   GraphNote graphNote)
Inserts a new GraphNote object into the collection at specified position.

Parameters:
index - The zero-based index at which new GraphNote object should be inserted.
graphNote - The GraphNote object to be inserted.

insert

public void insert(GraphNote noteToInsertAfter,
                   GraphNote newNote)
Inserts a new GraphNote object into the collection after specified GraphNote object.

Parameters:
noteToInsertAfter - The GraphNote object to insert after.
newNote - The GraphNote object to be inserted.

copyTo

public void copyTo(GraphNote[] graphNoteArray,
                   int index)
Copies the elements to a GraphNote object array, starting at a specified array index.

Parameters:
graphNoteArray - The GraphNote object array.
index - The start index.

completeClone

public java.lang.Object completeClone()
Clones a new GraphNotes object.

Returns:
The new GraphNotes object.