Class GoogleMapEdge

  • All Implemented Interfaces:
    MapEdge, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, Serializable

    public class GoogleMapEdge
    extends com.neotropic.flow.component.googlemap.GoogleMapPolyline
    implements MapEdge
    An edge wrapper to Google Map Polyline
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    See Also:
    Serialized Form
    • Method Detail

      • getEdgeLabel

        public String getEdgeLabel()
        Description copied from interface: MapEdge
        Gets the edge label.
        Specified by:
        getEdgeLabel in interface MapEdge
        Returns:
        Edge label.
      • setEdgeLabel

        public void setEdgeLabel​(String label)
        Description copied from interface: MapEdge
        Sets the edge label.
        Specified by:
        setEdgeLabel in interface MapEdge
        Parameters:
        label - Edge label.
      • setControlPoints

        public void setControlPoints​(List<GeoCoordinate> controlPoints)
        Description copied from interface: MapEdge
        Sets the edge control points.
        Specified by:
        setControlPoints in interface MapEdge
        Parameters:
        controlPoints - The edge control points.
      • getClickableEdge

        public boolean getClickableEdge()
        Description copied from interface: MapEdge
        Gets if the edge can receives mouse events.
        Specified by:
        getClickableEdge in interface MapEdge
        Returns:
        If true, the edge can receives mouse events.
      • setClickableEdge

        public void setClickableEdge​(boolean clickable)
        Description copied from interface: MapEdge
        Sets if the edge can receives mouse events.
        Specified by:
        setClickableEdge in interface MapEdge
        Parameters:
        clickable - True to receives mouse events.
      • getEditableEdge

        public boolean getEditableEdge()
        Description copied from interface: MapEdge
        Gets if the edge can be edited.
        Specified by:
        getEditableEdge in interface MapEdge
        Returns:
        If true, the edge can be edited.
      • setEditableEdge

        public void setEditableEdge​(boolean editable)
        Description copied from interface: MapEdge
        Sets if the edge can be edited.
        Specified by:
        setEditableEdge in interface MapEdge
        Parameters:
        editable - True to edit the edge.
      • getPlayAnimation

        public boolean getPlayAnimation()
        Description copied from interface: MapEdge
        Gets if animation is played.
        Specified by:
        getPlayAnimation in interface MapEdge
        Returns:
        If animation is played.
      • setPlayAnimation

        public void setPlayAnimation​(boolean playAnimation)
        Description copied from interface: MapEdge
        Sets true to play animation.
        Specified by:
        setPlayAnimation in interface MapEdge
        Parameters:
        playAnimation - True to play animation.
      • getEdgeVisible

        public boolean getEdgeVisible()
        Description copied from interface: MapEdge
        If true, the edge is visible.
        Specified by:
        getEdgeVisible in interface MapEdge
        Returns:
        If true, the edge is visible.
      • setEdgeVisible

        public void setEdgeVisible​(boolean visible)
        Description copied from interface: MapEdge
        If true, the edge is visible.
        Specified by:
        setEdgeVisible in interface MapEdge
        Parameters:
        visible - If true, the edge is visible.
      • getLength

        public Double getLength()
        Description copied from interface: MapEdge
        Gets the edge length.
        Specified by:
        getLength in interface MapEdge
        Returns:
        The edge length.
      • setLength

        public void setLength​(Double length)
        Description copied from interface: MapEdge
        Sets the edge length.
        Specified by:
        setLength in interface MapEdge
      • computeLength

        public void computeLength​(List<GeoCoordinate> controlPoints,
                                  Consumer<Double> consumerLength)
        Description copied from interface: MapEdge
        Computes edge length.
        Specified by:
        computeLength in interface MapEdge
        Parameters:
        controlPoints - Set of control points.
        consumerLength - Accepted on compute length end.
      • removeAllClickEventListeners

        public void removeAllClickEventListeners()
        Description copied from interface: MapEdge
        Removes all click event listener.
        Specified by:
        removeAllClickEventListeners in interface MapEdge
      • removeAllRightClickEventListeners

        public void removeAllRightClickEventListeners()
        Description copied from interface: MapEdge
        Removes all right click event listener.
        Specified by:
        removeAllRightClickEventListeners in interface MapEdge
      • removeAllPathChangedEventListeners

        public void removeAllPathChangedEventListeners()
        Description copied from interface: MapEdge
        Removes all path changed event listener.
        Specified by:
        removeAllPathChangedEventListeners in interface MapEdge