Package provided.owlMaps.demo.model
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 viewvoid
displayText(java.lang.String text)
Display the given text on the viewvoid
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 addlabel
- A label to associate with the generated component
-
setLatLng
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
-