edu.northwestern.at.wordhoard.model.annotations
Interface TextAttachment

All Superinterfaces:
Attachment
All Known Implementing Classes:
AuthoredTextAnnotation, RemoteAnnotation, TextAnnotation

public interface TextAttachment
extends Attachment

A text attachment.

Each text attachment has the following attributes in addition to those defined for annotations in general.


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 interface edu.northwestern.at.wordhoard.model.annotations.Attachment
equals, getCategory, getId, getText, hashCode, setCategory, setText
 

Method Detail

getWorkPart

WorkPart getWorkPart()
Gets the work part.

Returns:
The work part.

setWorkPart

void setWorkPart(WorkPart workPart)
Sets the work part.

Parameters:
workPart - The work part.

getTarget

TextRange getTarget()
Gets the target.

Returns:
The target - the range of text to which this annotation is attached.

setTarget

void setTarget(TextRange target)
Sets the target.

Parameters:
target - The target - the range of text to which this annotation is attached.