Package com.storedobject.svg
Class Document
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Node>,Collection<Node>,List<Node>,RandomAccess,SequencedCollection<Node>
The Document class represents a collection of
Node objects and provides functionality
to generate scalable vector graphic (SVG) output for the collection. It allows the
storage and management of Node instances while adding SVG-specific methods to generate
graphical representations of the contained nodes.- Author:
- Syam
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
Document
public Document()Default constructor for the Document class. Initializes a new instance of the Document without any content or nodes. -
Document
Constructs a new Document object, initializing it with a single Node.- Parameters:
node- The Node to be added to the Document during its creation.
-
-
Method Details
-
getSvg
-
toString
- Overrides:
toStringin classAbstractCollection<Node>
-