|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.annotations.Annotation
edu.northwestern.at.wordhoard.model.annotations.TextAnnotation
public class TextAnnotation
A text annotation.
Each text annotation has the following attributes in addition to
those defined for
annotations in general.
work part to which the annotation is attached.
target of the annotation - the text range to which it is
attached.
| Field Summary | |
|---|---|
protected TextRange |
target
The target of the annotation - the range of text to which it is attached. |
protected WorkPart |
workPart
The work part to which this annotation is attached. |
| Fields inherited from class edu.northwestern.at.wordhoard.model.annotations.Annotation |
|---|
category, id, text |
| Constructor Summary | |
|---|---|
TextAnnotation()
Creates a new text annotation. |
|
| Method Summary | |
|---|---|
TextRange |
getTarget()
Gets the target. |
WorkPart |
getWorkPart()
Gets the work part. |
void |
setTarget(TextRange target)
Sets the target. |
void |
setWorkPart(WorkPart workPart)
Sets the work part. |
| Methods inherited from class edu.northwestern.at.wordhoard.model.annotations.Annotation |
|---|
equals, getCategory, getId, getText, hashCode, setCategory, setText |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.northwestern.at.wordhoard.model.annotations.Attachment |
|---|
equals, getCategory, getId, getText, hashCode, setCategory, setText |
| Field Detail |
|---|
protected WorkPart workPart
protected TextRange target
| Constructor Detail |
|---|
public TextAnnotation()
| Method Detail |
|---|
public WorkPart getWorkPart()
getWorkPart in interface TextAttachmentpublic void setWorkPart(WorkPart workPart)
setWorkPart in interface TextAttachmentworkPart - The work part. public TextRange getTarget()
getTarget in interface TextAttachmentpublic void setTarget(TextRange target)
setTarget in interface TextAttachmenttarget - The target - the range of text to which this
annotation is attached.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||