public class RSTImpl
extends com.vaadin.ui.Panel
implements org.corpus_tools.salt.core.GraphTraverseHandler
VJITWrapper.
A node with an incoming rst edge will be moved one level up, so that it becomes a sibling of its
original parent. This is done, because in typical rst visualizations these nodes are drawn as
siblings of their parent, so they are in one horizontal line with their parent, but they are
actually modeled as children, which is confusing, when we want to render these nodes. The json,
which is generated, looks nearly like this:
{
"id" : "root"
"children" : [
{
"id" : "rst_0_1",
"name" : 1
"edges" : [{"sType" : "rst", from: "rst_0_2", to : "rst_0_1"}
},
{
"id" : "rst_0_2",
"name" : "2
}]
}
The example above shows the two nodes, which are connected by a rst edge. They are on the same
level in the json tree. The *natural* tree would have looked like this:
{
"id" : "root"
"children" : [
{
"id" : "rst_0_1",
"name" : 1
"edges" : [{"sType" : "rst", from: "rst_0_2", to : "rst_0_1"},
"children" : [{
"id" : "rst_0_2",
"name" : "2
}]
}]
}
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Constructor and Description |
|---|
RSTImpl(VisualizerInput visInput) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(CssRenderInfo renderInfo) |
boolean |
checkConstraint(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SRelation incomingEdge,
org.corpus_tools.salt.core.SNode currNode,
long order) |
void |
nodeLeft(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SNode currNode,
org.corpus_tools.salt.core.SRelation edge,
org.corpus_tools.salt.core.SNode fromNode,
long order) |
void |
nodeReached(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SNode currNode,
org.corpus_tools.salt.core.SRelation sRelation,
org.corpus_tools.salt.core.SNode fromNode,
long order) |
addAction, addActionHandler, addClickListener, changeVariables, focus, getActionManager, getCustomAttributes, getScrollLeft, getScrollTop, getState, getState, getTabIndex, paintContent, readDesign, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, setCaption, setScrollLeft, setScrollTop, setTabIndex, writeDesignaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedforEach, spliteratorpublic RSTImpl(VisualizerInput visInput)
public void addExtension(CssRenderInfo renderInfo)
public boolean checkConstraint(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SRelation incomingEdge,
org.corpus_tools.salt.core.SNode currNode,
long order)
checkConstraint in interface org.corpus_tools.salt.core.GraphTraverseHandlerpublic void nodeLeft(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SNode currNode,
org.corpus_tools.salt.core.SRelation edge,
org.corpus_tools.salt.core.SNode fromNode,
long order)
nodeLeft in interface org.corpus_tools.salt.core.GraphTraverseHandlerpublic void nodeReached(org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE traversalType,
String traversalId,
org.corpus_tools.salt.core.SNode currNode,
org.corpus_tools.salt.core.SRelation sRelation,
org.corpus_tools.salt.core.SNode fromNode,
long order)
nodeReached in interface org.corpus_tools.salt.core.GraphTraverseHandlerCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.