public class RouteAroundRegionViewModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.io.File |
SERIALIZATION_FILE |
Constructor and Description |
---|
RouteAroundRegionViewModel(RouteAroundRegionManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addRegion(Shape region)
Adds a new region to the list of route around regions.
|
java.util.List<Shape> |
getRegions() |
boolean |
getRouteAroundGeoFences() |
boolean |
isLoaded()
Getters for view state
|
boolean |
removeRegion(Shape region)
Removes a region from the list of route around regions.
|
void |
saveState()
Saves the state of the manager to a file
|
void |
setRouteAroundGeoFences(boolean value)
Sets the state of the "route around geofences" checkbox.
|
public RouteAroundRegionViewModel(RouteAroundRegionManager manager)
public void saveState()
public void setRouteAroundGeoFences(boolean value)
public void addRegion(Shape region)
public boolean removeRegion(Shape region)
region
- The region to remove from the listpublic boolean isLoaded()
public boolean getRouteAroundGeoFences()
public java.util.List<Shape> getRegions()