public class Annotation extends ArrayList<AnnotationLink> implements XMLize, ListReorderListener
modCount
Constructor and Description |
---|
Annotation()
create an empty annotation.
|
Modifier and Type | Method and Description |
---|---|
void |
addLink(String s,
Graph graph) |
void |
appendToComment(String comment)
Add the string containing the comments to the end of the actual comments.
|
Object |
clone() |
boolean |
containsLink(AnnotationLink al) |
boolean |
containsLink(String s) |
void |
copyFrom(Annotation other) |
void |
deleted(int[] sel) |
void |
delLink(String s,
Graph graph) |
String |
getComment()
return the String containing the comments.
|
String |
getHTMLComment() |
String |
getLink(int index)
get the vector of url
|
List<AnnotationLink> |
getLinkList() |
boolean |
isEmpty() |
void |
openLink(int index) |
void |
reordered(int[] mapping) |
void |
setComment(String comment)
Set the string containing the comments.
|
void |
setLink(String s,
int index,
Graph graph) |
void |
toXML(XMLWriter out)
write the XML representation of this object to a file
|
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public List<AnnotationLink> getLinkList()
public String getLink(int index)
public void openLink(int index)
public boolean containsLink(AnnotationLink al)
public boolean containsLink(String s)
public String getComment()
public void setComment(String comment)
comment
- the new commentpublic void appendToComment(String comment)
comment
- the new commentpublic void toXML(XMLWriter out) throws IOException
XMLize
toXML
in interface XMLize
IOException
public Object clone()
clone
in class ArrayList<AnnotationLink>
public void copyFrom(Annotation other)
public boolean isEmpty()
isEmpty
in interface Collection<AnnotationLink>
isEmpty
in interface List<AnnotationLink>
isEmpty
in class ArrayList<AnnotationLink>
public String getHTMLComment()
public void reordered(int[] mapping)
reordered
in interface ListReorderListener
public void deleted(int[] sel)
deleted
in interface ListReorderListener
Copyright © 2005–2020. All rights reserved.