|
|||||||||
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.gui.transcriptionviewer.OntologyColourDisplayStrategy
public class OntologyColourDisplayStrategy
SLIGHTLY GENERIC A trick: given an ontology, an element is displayed in the colour determined by its first pointer to an element in that ontology. This displaystrategy can be shared for many annotation element types. Basic: the colour is determined `randomly' from the ontology. Extension: maybe we want to have some conttrol over the colours? for now, using this for more than one ontology will cause extreme confusion wrt what ontology. within ontology, colour means ONE elemtn....
Constructor Summary | |
---|---|
OntologyColourDisplayStrategy(NTranscriptionView ntv,
java.lang.String role)
Initialize a OntologyColourDisplayStrategy that uses the given template style for display. |
Method Summary | |
---|---|
boolean |
display(NOMElement element)
Display annotation element by changing the text style of all text for all relevant transcription elements. |
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 OntologyColourDisplayStrategy(NTranscriptionView ntv, java.lang.String role)
Method Detail |
---|
public boolean display(NOMElement element)
public void undisplay(NOMElement element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |