public class DepTreeBaseInteractor<T extends ParseInterface<E>,E extends WordInterface>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
DepTreeBaseInteractor.ChangeTextListener
Used for text change events on a graphical element of the dependency
tree.
|
static class |
DepTreeBaseInteractor.Com |
protected class |
DepTreeBaseInteractor.ConnectListener
Used for link reconnection events on a graphical element of the
dependency
tree.
|
static class |
DepTreeBaseInteractor.DTMouseEventListener
Used after being attached to a graphical element of the dependency tree.
|
static interface |
DepTreeBaseInteractor.DTRefreshListener |
class |
DepTreeBaseInteractor.NodeSelection
Used for the field _selection containing the currently selected node and
level
|
protected class |
DepTreeBaseInteractor.SelectListener
Used for selection events on a graphical element of the dependency tree.
|
| Modifier and Type | Field and Description |
|---|---|
DepTree<T,E> |
_dt |
DepTreeBaseInteractor.NodeSelection |
_selection |
| Modifier | Constructor and Description |
|---|---|
protected |
DepTreeBaseInteractor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDTRefreshListener(DepTreeBaseInteractor.DTRefreshListener listener) |
void |
addPopupListener(PopupListener listener) |
void |
draw(boolean isChanged)
Draws the dependency tree for a parse
|
protected DepTreeBaseInteractor.DTMouseEventListener |
getChangeTextListener() |
void |
redraw(DepTreeNode node,
java.lang.String level,
boolean isChanged)
Redraws graph, assuming that the words have not changed, only labels or
connections, with a new highlighted selection at the given node and level
|
void |
refreshDisplay(boolean isChanged)
Refreshes the canvas that displays the dependency tree so it shows
changes
done to the underlying DOM document
|
public DepTree<T extends ParseInterface<E>,E extends WordInterface> _dt
public DepTreeBaseInteractor.NodeSelection _selection
public void draw(boolean isChanged)
isChanged - is true if the actual content of the parse is changed, instead
of just recoloring nodes so the GUI can change accordinglypublic void redraw(DepTreeNode node, java.lang.String level, boolean isChanged)
node - the node that has changedlevel - the level that the node has changed atisChanged - is true if the actual content of the parse is changed, instead
of just recoloring nodes so the GUI can change accordinglypublic void refreshDisplay(boolean isChanged)
isChanged - is true if the actual content of the parse is changed, instead
of just recoloring nodes so the GUI can change accordinglypublic void addDTRefreshListener(DepTreeBaseInteractor.DTRefreshListener listener)
public void addPopupListener(PopupListener listener)
protected DepTreeBaseInteractor.DTMouseEventListener getChangeTextListener()