Interface IModel2ViewAdapter


public interface IModel2ViewAdapter
The adapter from the demo model to its view
Author:
swong
  • Method Summary

    Modifier and Type Method Description
    void addMapComp​(java.util.function.Supplier<javax.swing.JComponent> mapCompFac, java.lang.String label)
    Add the map component to the view
    void displayText​(java.lang.String text)
    Display the given text on the view
    void setLatLng​(ILatLng latLng)
    Display the given latitude and longitude on the view
  • Method Details

    • addMapComp

      void addMapComp​(java.util.function.Supplier<javax.swing.JComponent> mapCompFac, java.lang.String label)
      Add the map component to the view
      Parameters:
      mapCompFac - The map component to add
      label - A label to associate with the generated component
    • setLatLng

      void setLatLng​(ILatLng latLng)
      Display the given latitude and longitude on the view
      Parameters:
      latLng - The latitude and longitude to display
    • displayText

      void displayText​(java.lang.String text)
      Display the given text on the view
      Parameters:
      text - The text to display