Class Navigation

java.lang.Object
org.opentrafficsim.editor.Navigation

public class Navigation extends Object
Navigation through coupled nodes.

Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Constructor Details

    • Navigation

      public Navigation(OtsEditor editor, int maxNavigate)
      Constructor.
      Parameters:
      editor - editor
      maxNavigate - maximum number of navigation steps
  • Method Details

    • clear

      public void clear()
      Clear navigation list.
    • setCoupledNode

      public void 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.
      Parameters:
      toNode - key node that is coupled to from a keyref node, may be null.
      fromNode - keyref node that is coupled from to a key node, may be null.
      fromAttribute - attribute in keyref node that refers to coupled node, may be null.
    • getGoBackAction

      public Action getGoBackAction()
      Returns the go-back action.
      Returns:
      go-back action
    • getGotoCoupledNodeAction

      public Action getGotoCoupledNodeAction()
      Returns go-to-coupled-item action.
      Returns:
      go-to-coupled-item action