|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy
net.sourceforge.nite.tools.comparison.nonspanning.MergedViewDisplayStrategy
public class MergedViewDisplayStrategy
EXTREMELY SPECIFIC
Constructor Summary | |
---|---|
MergedViewDisplayStrategy(NTranscriptionView ntv,
java.lang.String neTypeRole,
java.lang.String abbrevAttrib,
java.lang.String attributeName,
NLayer annotatorlayer,
java.lang.String annotatorattr,
java.lang.String autoannotatorname,
java.lang.String manualannotatorname)
Initialize neTypeRole is the role of the pointer to the NE ontology; abbrevAttrib is the name of the attrib in the ne ontology that isused in the 'brackets'; attributeName is non-null if we should display an attribute of the named entity rather than a pointer to a type ontology (jonathan 25/3/6) |
Method Summary | |
---|---|
boolean |
display(NOMElement element)
Display annotation element by changing the text style of all text for all relevant transcription elements. |
javax.swing.text.Style |
getann1style()
END-OF-CONSTRUCTORS |
javax.swing.text.Style |
getann2style()
|
javax.swing.text.Style |
getAnnotatorStyle(NOMElement element)
Return template style for given annotator for an annotation element that points to ontology, or null if no annotator or annotator not known |
boolean |
getdisplayautoannotator()
|
boolean |
getdisplaymanualannotator()
|
javax.swing.text.Style |
getdualstyle()
|
void |
hideautoannotator()
|
void |
hidemanualannotator()
|
void |
setannotatordisplay(int anndisplay)
|
void |
setlogging(boolean flag)
Do we want to notify user of display failure? Set this before displaying any text. |
void |
showautoannotator()
|
void |
showmanualannotator()
|
void |
styletext(boolean flag)
Do we want to style the text pointed to by the annotation element? Set this before displaying any text. |
void |
undisplay(NOMElement element)
Undisplay annotation elements by removing the relevant styles from the style chain for the appropriate transcription elements. |
Methods inherited from class net.sourceforge.nite.gui.transcriptionviewer.AbstractDisplayStrategy |
---|
init, setTransToAnnoMap |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergedViewDisplayStrategy(NTranscriptionView ntv, java.lang.String neTypeRole, java.lang.String abbrevAttrib, java.lang.String attributeName, NLayer annotatorlayer, java.lang.String annotatorattr, java.lang.String autoannotatorname, java.lang.String manualannotatorname)
Method Detail |
---|
public javax.swing.text.Style getann1style()
public javax.swing.text.Style getann2style()
public javax.swing.text.Style getdualstyle()
public void showautoannotator()
public void hideautoannotator()
public void showmanualannotator()
public void hidemanualannotator()
public boolean getdisplayautoannotator()
public boolean getdisplaymanualannotator()
public void setannotatordisplay(int anndisplay)
public void styletext(boolean flag)
public void setlogging(boolean flag)
public boolean display(NOMElement element)
public void undisplay(NOMElement element)
public javax.swing.text.Style getAnnotatorStyle(NOMElement element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |