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 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.
Listeners for user interaction.
-
Uses of XsdTreeNode in org.opentrafficsim.editor
Subclasses of XsdTreeNode in org.opentrafficsim.editorModifier and TypeClassDescriptionclassExtendsXsdTreeNodewith event producer capabilities.Fields in org.opentrafficsim.editor declared as XsdTreeNodeModifier and TypeFieldDescription(package private) XsdTreeNodeXsdTreeNode.choiceChoice node, represents an xsd:choice of which 1 option is shown.(package private) XsdTreeNodeXsdTreeNode.parentParent node.(package private) XsdTreeNodeXsdTreeNode.selectedCurrently selection option in the choice node.Fields in org.opentrafficsim.editor with type parameters of type XsdTreeNodeModifier and TypeFieldDescription(package private) List<XsdTreeNode>XsdTreeNode.childrenChildren nodes.(package private) List<XsdTreeNode>XsdTreeNode.optionsOption nodes.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.XsdTreeNode.getChild(int index) Returns the child at given index; directly for anXsdTreeTableModel.OtsEditor.getChoiceNode()Returns the node that is the currently selected choice.OtsEditor.getClipboard()Returns the clipboard node.XsdTreeNode.getCoupledKeyrefNodeAttribute(int index) Returns the node to which an attribute refers via a KeyValidator.XsdTreeNode.getCoupledKeyrefNodeAttribute(String attribute) Returns the node to which an attribute refers via a KeyValidator.XsdTreeNode.getCoupledKeyrefNodeValue()Returns the node to which the value refers via a KeyValidator.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.ScenarioWrapper.getScenarioNode()Returns the scenario node.XsdOption.optionNode()Returns the value of theoptionNoderecord component.Methods in org.opentrafficsim.editor that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescriptionXsdTreeNode.getChildren()Returns a list of the child nodes.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.(package private) static voidXsdTreeNodeUtil.addChildren(Node node, XsdTreeNode parentNode, List<XsdTreeNode> children, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes, Schema schema, boolean flattenSequence, int skip) Main expansion algorithm.static voidXsdTreeNodeUtil.addXsdAllValidator(XsdTreeNode shared, XsdTreeNode node) Add xsd all validator to the given node.booleanXsdTreeNode.canContain(XsdTreeNode copied) Returns whether this node can contain the information of the given node.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, org.djutils.event.EventListener listener) Recursively throws creation events for all current nodes in the tree.(package private) static booleanXsdTreeNodeUtil.haveSameType(XsdTreeNode node1, XsdTreeNode node2) Returns whether nodes are of the same type.voidNodeActions.insert(XsdTreeNode node) Insert node.(package private) voidXsdTreeNode.invalidateAll(XsdTreeNode node) Invalidates entire tree in a nested manner.booleanScenarioWrapper.isScenario(XsdTreeNode node) Returns whether this wraps the given node.voidNodeActions.move(XsdTreeNode node, int down) Move node.voidEvalWrapper.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidEvalWrapper.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.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 coupledNode, XsdTreeNode backNode, String backAttribute) 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.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 TypeMethodDescription(package private) static voidXsdTreeNodeUtil.addChildren(Node node, XsdTreeNode parentNode, List<XsdTreeNode> children, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes, Schema schema, boolean flattenSequence, int skip) Main expansion algorithm.voidXsdTreeNode.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.ScenarioWrapper(XsdTreeNode scenarioNode) Constructor.XsdOption(XsdTreeNode optionNode, XsdTreeNode choice, boolean firstInGroup, boolean selected) Creates an instance of aXsdOptionrecord class.(package private)XsdTreeNode(XsdTreeNode parent, Node xsdNode, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes) Construct a node without referring node.(package private)XsdTreeNode(XsdTreeNode parent, Node xsdNode, org.djutils.immutablecollections.ImmutableList<Node> hiddenNodes, Node referringXsdNode) Constructor with referring node for extended types. -
Uses of XsdTreeNode in org.opentrafficsim.editor.decoration
Fields in org.opentrafficsim.editor.decoration declared as XsdTreeNodeFields in org.opentrafficsim.editor.decoration with type parameters of type XsdTreeNodeModifier and TypeFieldDescriptionprotected final Predicate<XsdTreeNode>AbstractNodeDecoratorAttribute.predicatePredicate to accept nodes that should have this attribute decorator.Methods in org.opentrafficsim.editor.decoration with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidLayoutCustomizer.accept(XsdTreeNode node) abstract voidAbstractNodeDecoratorAttribute.notifyAttributeChanged(XsdTreeNode node, String attribute) Notified when a node has been removed.voidAutomaticConnectorId.notifyAttributeChanged(XsdTreeNode node, String attribute) Notified when a node has been removed.voidAutomaticLinkId.notifyAttributeChanged(XsdTreeNode node, String attribute) Notified when a node has been removed.abstract voidAbstractNodeDecorator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidAbstractNodeDecoratorAttribute.notifyCreated(XsdTreeNode node) Notified when a node has been created.abstract voidAbstractNodeDecoratorRemove.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.Constructor parameters in org.opentrafficsim.editor.decoration with type arguments of type XsdTreeNodeModifierConstructorDescriptionAbstractNodeDecoratorAttribute(OtsEditor editor, Predicate<XsdTreeNode> predicate, String... attributes) 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()Returns the string function that produces the right string from the contents of a node.ClassNameTypeStringFunction.getStringFunction()Returns the string function that produces the right string from the contents of a node.CorrelationStringFunction.getStringFunction()Returns the string function that produces the right string from the contents of a node.OdOptionsItemStringFunction.getStringFunction()Returns the string function that produces the right string from the contents of a node.XiIncludeStringFunction.getStringFunction()Returns the string function that produces the right string from the contents of a node.Methods in org.opentrafficsim.editor.decoration.string with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidAbstractStringFunction.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidChoiceNodeStringFunction.notifyCreated(XsdTreeNode node) Notified when a node has been created.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 TypeMethodDescriptionprotected XsdTreeNodeXPathValidator.getContext(XsdTreeNode node) Returns a node that represent the proper context.CoupledValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.KeyrefValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.RoadLayoutElementValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.TrafficLightValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.Methods in org.opentrafficsim.editor.decoration.validation that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescriptionprotected Map<XsdTreeNode,List<String>> KeyValidator.getAllValueSets(XsdTreeNode node) Returns the present values of the fields for each node within the given context.Methods in org.opentrafficsim.editor.decoration.validation with parameters of type XsdTreeNodeModifier and TypeMethodDescriptionvoidKeyrefValidator.addNode(XsdTreeNode node) Adds node to this key, if applicable.voidKeyValidator.addNode(XsdTreeNode node) Adds node to this key, if applicable.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) XPathValidator.gatherFieldValues(XsdTreeNode node) Gathers all the field values, i.e. attribute, child element value, or own value.protected Map<XsdTreeNode,List<String>> KeyValidator.getAllValueSets(XsdTreeNode node) Returns the present values of the fields for each node within the given context.protected XsdTreeNodeXPathValidator.getContext(XsdTreeNode node) Returns a node that represent the proper context.CoupledValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.KeyrefValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.RoadLayoutElementValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.TrafficLightValidator.getCoupledKeyrefNode(XsdTreeNode node) Returns the coupled node.KeyrefValidator.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.RoadLayoutElementValidator.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.TrafficLightValidator.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.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.intXPathValidator.Field.getValidPathIndex(XsdTreeNode node) Returns which field path is valid for the given node.XPathValidator.Field.getValue(XsdTreeNode node) Returns the field value of the given node.protected booleanXPathValidator.isSelectedInContext(XsdTreeNode node) Returns whether the given node is of the correct type and in the correct context for this validator.voidAttributesNotEqualValidator.notifyAttributeChanged(XsdTreeNode node, String attribute) Notified when a node has been removed.voidAttributesNotEqualValidator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidNoDuplicateChildrenValidator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidParentValidator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidRoadLayoutElementValidator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidTrafficLightValidator.notifyCreated(XsdTreeNode node) Notified when a node has been created.voidNoDuplicateChildrenValidator.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.voidParentValidator.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.voidRoadLayoutElementValidator.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.voidTrafficLightValidator.notifyRemoved(XsdTreeNode node) Notified when a node has been removed.voidKeyrefValidator.removeNode(XsdTreeNode node) Remove node.voidKeyValidator.removeNode(XsdTreeNode node) Remove 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.voidKeyrefValidator.updateFieldValue(XsdTreeNode node, int fieldIndex, String newValue) Update value as it was changed at the key.AttributesNotEqualValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.KeyrefValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.KeyValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.ParentValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.RoadLayoutElementValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.TrafficLightValidator.validate(XsdTreeNode node) Returns message why a value is invalid, ornullif the value is valid.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 that return types with arguments of type XsdTreeNodeModifier and TypeMethodDescription(package private) Map<XsdTreeNode,RoadLayoutOffsets.CseData> RoadLayoutListener.calculateData()Returns the offsets of the layout this listener is listening to.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) Returns whether the node may be ignored.EditorMap.getData(XsdTreeNode node) Returns the map data of the given XSD node.(package private) RoadLayoutListenerEditorMap.getRoadLayoutListener(XsdTreeNode node) Returns the road layout listener from which aMapLinkDatacan obtain offsets.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<org.djutils.eval.Eval> eval) Constructor.FlattenerListener(XsdTreeNode flattenerNode, Supplier<org.djutils.eval.Eval> eval) Constructor.MapCrossSectionData(XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) 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, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor.MapLinkData(EditorMap map, XsdTreeNode linkNode, OtsEditor editor) Constructor.MapNodeData(EditorMap map, XsdTreeNode nodeNode, OtsEditor editor) Constructor.MapShoulderData(org.djunits.value.vdouble.scalar.Length startOffset, XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor.MapSinkData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.MapStripeData(StripeAnimation.StripeData.Type type, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Length startOffset, XsdTreeNode linkNode, org.djutils.draw.line.PolyLine2d centerLine, org.djutils.draw.line.Polygon2d contour, org.opentrafficsim.road.network.lane.SliceInfo sliceInfo) Constructor.MapTrafficLightData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor.RoadLayoutListener(XsdTreeNode layoutNode, Supplier<org.djutils.eval.Eval> eval) Constructor. -
Uses of XsdTreeNode in org.opentrafficsim.editor.listeners
Constructors in org.opentrafficsim.editor.listeners with parameters of type XsdTreeNodeModifierConstructorDescriptionChoiceListener(XsdTreeNode choiceNode, XsdTreeNode option, int reselectionRow, OtsEditor editor, de.javagl.treetable.JTreeTable treeTable, JTable attributesTable) Constructor.