Class Point

All Implemented Interfaces:
com.jbstrap.core.event.handlers.BrowserEventHandler, PopupDrawnEventHandler, PopupHideEventHandler, TooltipLayer<Point>

This class represents a point or marker on the map with designated coordinates. You can add a tooltip that you can configure freely. Read more about tooltip configuration in the TooltipLayer class.
Since:
4.0
See Also:
  • Field Details

  • Constructor Details

    • Point

      public Point(String name, Coordinates coordinates)
      Creates a marker point with a default image.
      Parameters:
      name - The name of the point
      coordinates - Point coordinates
      Throws:
      NullPointerException - Thrown if the value of the name or coordinates parameter is null
  • Method Details

    • getCoordinates

      public Coordinates getCoordinates()
      Gets the point coordinates.
      Returns:
      Point coordinates
    • setCoordinates

      public Point setCoordinates(Coordinates coordinates)
      Sets the point coordinates.
      Parameters:
      coordinates - Longitude and latitude coordinates of the point
      Returns:
      Point class instance
    • getPointImage

      public PointImage getPointImage()
      Gets the point image.
      Returns:
      Point image PointImage
    • setPointImage

      public Point setPointImage(PointImage pointImage)
      Sets the point image.
      Parameters:
      pointImage - Point image PointImage
      Returns:
      Point class instance
    • onPopupDrawn

      public void onPopupDrawn(PopupDrawnEvent event)
      Registering the events for the popup draw event in the popup component.
      Specified by:
      onPopupDrawn in interface PopupDrawnEventHandler
      Parameters:
      event - The popup drawn event component
    • onPopupHide

      public void onPopupHide(PopupHideEvent event)
      Registering the events for the popup hide event in the popup component.
      Specified by:
      onPopupHide in interface PopupHideEventHandler
      Parameters:
      event - The popup hide event component