Uses of Class
org.opentrafficsim.editor.XsdTreeNode
Packages that use XsdTreeNode
Package
Description
The OTS editor allows visual editing for a simulation in OTS.
Decorators enhance the basic flexible functionality of the editor.
String functions provide additional information in the name of nodes in the tree.
Validators validate either a node, a node value or attribute value.
Extensions provide additional methods of providing user input, other than via the tree.
The map editor allows visual specification of the network.
-
Uses of XsdTreeNode in org.opentrafficsim.editor
Subclasses of XsdTreeNode in org.opentrafficsim.editorModifier and TypeClassDescriptionclassExtendsXsdTreeNodewith event producer capabilities.Methods in org.opentrafficsim.editor that return XsdTreeNodeModifier and TypeMethodDescriptionXsdTreeNode.add()Adds a node of similar type next to this node under the parent.XsdOption.choice()Returns the value of thechoicerecord component.XsdTreeNode.duplicate()Creates a full copy of this node, next to this node under the same parent.XsdTreeNode.duplicate(XsdTreeNode newParent) Duplicates this node, but under the given parent node.XsdTreeNode.emptyCopy()Creates an empty copy of this node, i.e. without children, options, attributes.ChildNodeFinder.get()Returns the previously found node.XsdTreeNode.getChild(int index) Returns the child at given index.OtsEditor.getChoiceNode()Returns the node that is the currently selected choice.OtsEditor.getClipboard()Returns the clipboard node.XsdTreeNode.getFirstChild(String name) Returns the first child with given name.AttributesTableModel.getNode()Returns the underlying node for which attributes are shown.XsdTreeNode.getOption()Returns the selected option.XsdTreeNode.getParent()Returns the parent node.OtsEditor.getTreeNodeAtPoint(Point point) Returns the XsdTreeNode of the row under the given point (from a mouse or key event).XsdOption.optionNode()Returns the value of theoptionNoderecord component.ScenarioWrapper.scenarioNode()Returns the scenario node.Methods in org.opentrafficsim.editor that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescriptionXsdTreeNode.getChildren()Returns a list of the child nodes.XsdTreeNode.getCoupledNodeAttribute(int index) Returns the node to which an attribute refers via aCoupledValidator.XsdTreeNode.getCoupledNodeAttribute(String attribute) Returns the node to which an attribute refers via aCoupledValidator.XsdTreeNode.getCoupledNodeValue()Returns the node to which the value refers via aCoupledValidator.XsdTreeNode.getPath()Returns the path from root to this node.Methods in org.opentrafficsim.editor with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidNodeActions.add(XsdTreeNode node) Add node.booleanXsdTreeNode.canContain(XsdTreeNode copied) Returns whether this node can contain the information of the given node.voidOtsEditor.collapse(XsdTreeNode node) Collapses the given node, if expanded.booleanOtsEditor.confirmNodeRemoval(XsdTreeNode node) Requests the user to confirm the deletion of a node.voidNodeActions.copy(XsdTreeNode node) Copy node.voidXsdTreeNode.copyInto(XsdTreeNode copyNode) Copies the active status, value, choice, attributes and children of this node in to the given node.voidNodeActions.cut(XsdTreeNode node) Cut node.voidNodeActions.duplicate(XsdTreeNode node) Duplicate node.XsdTreeNode.duplicate(XsdTreeNode newParent) Duplicates this node, but under the given parent node.voidNodeActions.expand(XsdTreeNode node, TreePath path, boolean expanded) Expand, or collapse, node.protected static voidXsdTreeNodeUtil.fireCreatedEventOnExistingNodes(XsdTreeNode node, EventListener listener) Recursively throws creation event on specific listener for all current nodes in the tree.voidNodeActions.insert(XsdTreeNode node) Insert node.booleanScenarioWrapper.isScenario(XsdTreeNode node) Returns whether this wraps the given node.voidNodeActions.move(XsdTreeNode node, int down) Move node.voidEvalWrapper.notifyCreated(XsdTreeNode node) voidEvalWrapper.notifyRemoved(XsdTreeNode node) voidNodeActions.paste(XsdTreeNode node) Paste node.voidNodeActions.remove(XsdTreeNode node) Remove node.voidNodeActions.revolveOption(XsdTreeNode node, List<XsdOption> options) Revolve to the next option of the node.voidOtsEditor.saveFileAs(XsdTreeNode root) Shows a dialog to define a file and saves in to it.voidXsdTreeNode.setChild(int index, XsdTreeNode child) Sets the given node as child of this node.voidOtsEditor.setChoiceNode(XsdTreeNode choiceNode) Sets the node that is the currently selected choice.voidOtsEditor.setClipboard(XsdTreeNode clipboard, boolean cut) Sets a node in the clipboard.voidOtsEditor.setCoupledNode(XsdTreeNode toNode, XsdTreeNode fromNode, String fromAttribute) Sets coupled node from user action, i.e. the node that contains the key value to which a user selected node with keyref refers to.voidNodeActions.setOption(XsdTreeNode selected) Set node as selected in its choice.voidXsdTreeNode.setOption(XsdTreeNode node) Sets the node as newly selected option.voidUndo.setPostActionShowNode(XsdTreeNode node) Sets the node to show in the tree after the action.voidOtsEditor.show(XsdTreeNode node, String attribute) Shows and selects the given node in the tree.voidUndo.startAction(Undo.ActionType type, XsdTreeNode node, String attribute) Starts a new action, which groups all sub-actions until a new action is started.Method parameters in org.opentrafficsim.editor with type arguments of type XsdTreeNodeModifier and TypeMethodDescriptionvoidXsdTreeNode.addConsumer(String menuItem, Consumer<XsdTreeNode> consumer) A consumer can be set externally and will receive this node when its menu item is selected.voidXsdTreeNode.addNodeValidator(Function<XsdTreeNode, String> validator) Adds a validator for the node.voidXsdTreeNode.setStringFunction(Function<XsdTreeNode, String> stringFunction, boolean overwrite) This function can be set externally and supplies an additionalStringto clarify this node in the tree.Constructors in org.opentrafficsim.editor with parameters of type XsdTreeNodeModifierConstructorDescriptionAttributesTableModel(XsdTreeNode node, de.javagl.treetable.JTreeTable treeTable) Constructor.ChildNodeFinder(XsdTreeNode parent) Constructor.ScenarioWrapper(XsdTreeNode scenarioNode) Creates an instance of aScenarioWrapperrecord class.XsdOption(XsdTreeNode optionNode, XsdTreeNode choice, boolean selected) Creates an instance of aXsdOptionrecord class. -
Uses of XsdTreeNode in org.opentrafficsim.editor.decoration
Methods in org.opentrafficsim.editor.decoration with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidLayoutCustomizer.accept(XsdTreeNode node) protected booleanAbstractNodeDecorator.acceptNode(XsdTreeNode node) Accept node by internal predicate.abstract voidAbstractNodeDecoratorAttribute.notifyAttributeChanged(XsdTreeNode node, String attribute) Notified when a node has been removed.voidAutomaticConnectorId.notifyAttributeChanged(XsdTreeNode node, String attribute) voidAutomaticLinkId.notifyAttributeChanged(XsdTreeNode node, String attribute) abstract voidAbstractNodeDecorator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidAutomaticLinkId.notifyCreated(XsdTreeNode node) voidLayoutCustomizer.notifyCreated(XsdTreeNode node) abstract voidAbstractNodeDecoratorRemove.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.voidLayoutCustomizer.notifyRemoved(XsdTreeNode node) protected voidAutomaticLinkId.setLastNode(XsdTreeNode lastNode) Set last node from attribute change.Constructor parameters in org.opentrafficsim.editor.decoration with type arguments of type XsdTreeNodeModifierConstructorDescriptionAbstractNodeDecorator(OtsEditor editor, Predicate<XsdTreeNode> predicate) Constructor.AbstractNodeDecoratorAttribute(OtsEditor editor, Predicate<XsdTreeNode> predicate, String... attributes) Constructor.AbstractNodeDecoratorRemove(OtsEditor editor, Predicate<XsdTreeNode> predicate) Constructor.protectedAutomaticLinkId(OtsEditor editor, Predicate<XsdTreeNode> predicate, String... attributes) Constructor for sub classes. -
Uses of XsdTreeNode in org.opentrafficsim.editor.decoration.string
Methods in org.opentrafficsim.editor.decoration.string that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescriptionabstract Function<XsdTreeNode,String> AbstractStringFunction.getStringFunction()Returns the string function that produces the right string from the contents of a node.AttributesStringFunction.getStringFunction()ClassNameTypeStringFunction.getStringFunction()CorrelationStringFunction.getStringFunction()OdOptionsItemStringFunction.getStringFunction()XiIncludeStringFunction.getStringFunction()Methods in org.opentrafficsim.editor.decoration.string with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidAbstractStringFunction.notifyCreated(XsdTreeNode node) voidChoiceNodeStringFunction.notifyCreated(XsdTreeNode node) Constructor parameters in org.opentrafficsim.editor.decoration.string with type arguments of type XsdTreeNodeModifierConstructorDescriptionAbstractStringFunction(OtsEditor editor, Predicate<XsdTreeNode> predicate) Constructor. -
Uses of XsdTreeNode in org.opentrafficsim.editor.decoration.validation
Methods in org.opentrafficsim.editor.decoration.validation that return XsdTreeNodeModifier and TypeMethodDescriptiondefault XsdTreeNodeCoupledValidator.getCoupledNode(XsdTreeNode node) Returns the coupled node.Methods in org.opentrafficsim.editor.decoration.validation that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescriptionCoupledValidator.getCouplings()Returns a map with all node couplings.CoupledValidator.getCouplings()Returns a map with all node couplings.KeyrefValidator.getCouplings()KeyrefValidator.getCouplings()RoadLayoutElementValidator.getCouplings()RoadLayoutElementValidator.getCouplings()TrafficLightValidator.getCouplings()Returns a map with all node couplings.TrafficLightValidator.getCouplings()Returns a map with all node couplings.Methods in org.opentrafficsim.editor.decoration.validation with parameters of type XsdTreeNodeModifier and TypeMethodDescriptiondefault voidCoupledValidator.addCoupling(XsdTreeNode fromNode, XsdTreeNode toNode) Add coupling from one node to another.voidKeyrefValidator.addNode(XsdTreeNode node) voidKeyValidator.addNode(XsdTreeNode node) abstract voidXPathValidator.addNode(XsdTreeNode node) Adds node to this key, if applicable.voidXsdAllValidator.addNode(XsdTreeNode node) Add node to this validator.NoDuplicateChildrenValidator.apply(XsdTreeNode node) XsdAllValidator.apply(XsdTreeNode node) default XsdTreeNodeCoupledValidator.getCoupledNode(XsdTreeNode node) Returns the coupled node.KeyrefValidator.getOptions(XsdTreeNode node, Object field) RoadLayoutElementValidator.getOptions(XsdTreeNode node, Object field) TrafficLightValidator.getOptions(XsdTreeNode node, Object field) ValueValidator.getOptions(XsdTreeNode node, Object field) Returns the options that a validator allows, typically an xsd:keyref returning defined values under the referred xsd:key or xsd:unique.voidAttributesNotEqualValidator.notifyAttributeChanged(XsdTreeNode node, String attribute) voidAttributesNotEqualValidator.notifyCreated(XsdTreeNode node) voidNoDuplicateChildrenValidator.notifyCreated(XsdTreeNode node) voidParentValidator.notifyCreated(XsdTreeNode node) voidRoadLayoutElementValidator.notifyCreated(XsdTreeNode node) voidTrafficLightValidator.notifyCreated(XsdTreeNode node) voidNoDuplicateChildrenValidator.notifyRemoved(XsdTreeNode node) voidParentValidator.notifyRemoved(XsdTreeNode node) voidRoadLayoutElementValidator.notifyRemoved(XsdTreeNode node) voidTrafficLightValidator.notifyRemoved(XsdTreeNode node) default voidCoupledValidator.removeCoupling(XsdTreeNode fromNode) Remove coupling of node.voidKeyrefValidator.removeNode(XsdTreeNode node) voidKeyValidator.removeNode(XsdTreeNode node) abstract voidXPathValidator.removeNode(XsdTreeNode node) Remove node.static voidCoupledValidator.setAttributeIfNotNull(XsdTreeNode node, String attribute, String value) Sets the given value on the attribute of the node, if the current value is notnull.static voidCoupledValidator.setValueIfNotNull(XsdTreeNode node, String value) Sets the given value on the node, if the current value is notnull.AttributesNotEqualValidator.validate(XsdTreeNode node) KeyrefValidator.validate(XsdTreeNode node) KeyValidator.validate(XsdTreeNode node) ParentValidator.validate(XsdTreeNode node) RoadLayoutElementValidator.validate(XsdTreeNode node) TrafficLightValidator.validate(XsdTreeNode node) ValueValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid. -
Uses of XsdTreeNode in org.opentrafficsim.editor.extensions
Methods in org.opentrafficsim.editor.extensions with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidDefinitionsSaver.accept(XsdTreeNode node) voidRoadLayoutEditor.accept(XsdTreeNode t) voidRouteEditor.accept(XsdTreeNode t) voidTrafCodEditor.accept(XsdTreeNode t) -
Uses of XsdTreeNode in org.opentrafficsim.editor.extensions.map
Methods in org.opentrafficsim.editor.extensions.map that return XsdTreeNodeModifier and TypeMethodDescriptionChangeListener.getNode()Returns the main node.MapData.getNode()Returns the tree node.Methods in org.opentrafficsim.editor.extensions.map with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidMapLinkData.addCoordinate(XsdTreeNode node) The map was notified a new coordinate node was added.protected booleanChangeListener.canBeIgnored(XsdTreeNode node) Returns whether the node may be ignored.protected booleanRoadLayoutListener.canBeIgnored(XsdTreeNode node) EditorMap.getData(XsdTreeNode node) Returns the map data of the given XSD node.voidMapLinkData.notifyNodeIdChanged(XsdTreeNode node) Notification from the Map that a node (Ots.Network.Node) id was changed.voidEditorMap.reinitialize(XsdTreeNode node) Reinitialize animation on object who's animator stores static information that depends on something that was changed.voidMapLinkData.removeCoordinate(XsdTreeNode node) The map was notified a coordinate node was removed.protected voidMapLaneBasedObjectData.setLinkNode(XsdTreeNode linkNode) Sets a node as link.protected <T> voidMapData.setValue(Consumer<T> setter, ExpressionAdapter<T, ?> adapter, XsdTreeNode node, String attribute) Generic method to set a value based on a changed attribute.Constructors in org.opentrafficsim.editor.extensions.map with parameters of type XsdTreeNodeModifierConstructorDescriptionChangeListener(XsdTreeNode node, Supplier<Eval> eval) Constructor.FlattenerListener(XsdTreeNode flattenerNode, Supplier<Eval> eval) Constructor.MapCrossSectionData(XsdTreeNode linkNode, CrossSectionGeometry geometry) Constructor.MapData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.MapGeneratorData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.MapLaneBasedObjectData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.MapLaneData(String id, XsdTreeNode linkNode, CrossSectionGeometry geometry) Constructor.MapLinkData(EditorMap map, XsdTreeNode linkNode, OtsEditor editor) Constructor.MapNodeData(EditorMap map, XsdTreeNode nodeNode, OtsEditor editor) Constructor.MapShoulderData(XsdTreeNode linkNode, CrossSectionGeometry geometry) Constructor.MapSinkData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.MapStripeData(Length dashOffset, XsdTreeNode linkNode, CrossSectionGeometry geometry, List<StripeElement> elements, StripeElement.StripeLateralSync lateralSync, PolyLine2d linkLine, MapLinkData.MiddleOffset middleOffset, Direction startDirection, Direction endDirection) Constructor.MapTrafficLightData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.RoadLayoutListener(XsdTreeNode layoutNode, Supplier<Eval> eval) Constructor.