Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.GISMultiRegion
- All Implemented Interfaces:
IGeographicSearchEntry
,Serializable
,Iterable<GISRegion>
public class GISMultiRegion extends Object implements IGeographicSearchEntry, Iterable<GISRegion>, Serializable
This markup element contains set of GIS regions.
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
GISMultiRegion() | |
GISMultiRegion |
Modifier and Type | Method | Description |
---|---|---|
boolean | add | |
boolean | addAll | |
double | area() |
Returns the total area (measured in m2)
|
double | area |
Returns the area of this multiregion (measured in @units)
|
List<GISRegion> | getRegions() | |
String | getTitle() |
Returns full geographic name.
|
Iterator<GISRegion> | iterator() | |
GISRegion | randomRegionInside() | |
GISRegion | randomRegionInside | |
boolean | remove | |
boolean | removeAll | |
void | setFillColor | |
void | setLineColor | |
void | setLineStyle | |
void | setLineWidth | |
void | setTitle | |
void | setVisible |
public GISMultiRegion()
public GISMultiRegion(String title, GISRegion... regions)
public String getTitle()
Description copied from interface:
IGeographicSearchEntry
Returns full geographic name.
- Specified by:
getTitle
in interfaceIGeographicSearchEntry
- Returns:
- geographic name
public void setTitle(String title)
public List<GISRegion> getRegions()
public boolean add(GISRegion region)
public boolean addAll(Collection<GISRegion> regions)
public boolean remove(GISRegion region)
public boolean removeAll(Collection<GISRegion> regions)
public void setVisible(boolean visible)
public void setFillColor(Paint color)
public void setLineColor(Paint color)
public void setLineWidth(double width)
public void setLineStyle(LineStyle lineStyle)
public Iterator<GISRegion> iterator()
public GISRegion randomRegionInside()
public GISRegion randomRegionInside(Random rng)
public double area()
Returns the total area (measured in m2)
- Returns:
- the total area
public double area(AreaUnits units)
Returns the area of this multiregion (measured in @units)
- Returns:
- the area of this multiregion