Interface MapNode

  • All Known Implementing Classes:
    GoogleMapNode

    public interface MapNode
    Node to add in the Outside Plant View.
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    • Method Detail

      • getNodeLabel

        String getNodeLabel()
        Gets the node label.
        Returns:
        Node label.
      • setNodeLabel

        void setNodeLabel​(String label)
        Sets the node label.
        Parameters:
        label - Node label.
      • getNodeTitle

        String getNodeTitle()
        Gets the node title.
        Returns:
        Node title.
      • setNodeTitle

        void setNodeTitle​(String title)
        Sets the node title.
        Parameters:
        title - Node title.
      • getClickableNode

        boolean getClickableNode()
        Gets if the node can receives mouse events.
        Returns:
        If true, the node can receives mouse events.
      • setClickableNode

        void setClickableNode​(boolean clickable)
        Sets if the node can receives mouse events.
        Parameters:
        clickable - True to receives mouse events.
      • getDraggableNode

        boolean getDraggableNode()
        Gets if the node can be dragged.
        Returns:
        If true, the node can be dragged.
      • setDraggableNode

        void setDraggableNode​(boolean draggable)
        Sets if the node can be dragged.
        Parameters:
        draggable - True to drag the node.
      • getPlayAnimation

        boolean getPlayAnimation()
        Gets if animation is played.
        Returns:
        If animation is played.
      • setPlayAnimation

        void setPlayAnimation​(boolean playAnimation)
        Sets true to play animation.
        Parameters:
        playAnimation - True to play animation.
      • getNodeVisible

        boolean getNodeVisible()
        If true, the node is visible.
        Returns:
        If true, the node is visible.
      • setNodeVisible

        void setNodeVisible​(boolean visible)
        If true, the node is visible.
        Parameters:
        visible - If true, the node is visible.
      • addClickEventListener

        void addClickEventListener​(ClickEvent.ClickEventListener clickEventListener)
        Adds a click event listener.
        Parameters:
        clickEventListener - Callback executed on node click.
      • removeClickEventListener

        void removeClickEventListener​(ClickEvent.ClickEventListener clickEventListener)
        Removes a click event listener.
        Parameters:
        clickEventListener - Callback executed on node click.
      • removeAllClickEventListeners

        void removeAllClickEventListeners()
        Removes all click event listener.
      • addRightClickEventListener

        void addRightClickEventListener​(RightClickEvent.RightClickEventListener rightClickEventListener)
        Adds a right click event listener.
        Parameters:
        rightClickEventListener - Callback executed on node right click.
      • removeRightClickEventListener

        void removeRightClickEventListener​(RightClickEvent.RightClickEventListener rightClickEventListener)
        Removes a right click event listener.
        Parameters:
        rightClickEventListener - Callback executed on node right click.
      • removeAllRightClickEventListeners

        void removeAllRightClickEventListeners()
        Removes all right click event listener.
      • addPositionChangedEventListener

        void addPositionChangedEventListener​(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
        Adds position changed event listener.
        Parameters:
        positionChangedEventListener - Callback executed on node position changed.
      • removePositionChangedEventListener

        void removePositionChangedEventListener​(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
        Removes position changed event listener.
        Parameters:
        positionChangedEventListener - Callback executed on node position changed.
      • removeAllPositionChangedEventListeners

        void removeAllPositionChangedEventListeners()
        Removes all position changed event listeners.