AnyLogic
Expand
Font size
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 Summary

ConstructorDescription
GISMultiRegion() 
GISMultiRegion(String title, GISRegion... regions) 

Method Summary

Modifier and TypeMethodDescription
booleanadd(GISRegion region) 
booleanaddAll(Collection<GISRegion> regions) 
doublearea()
Returns the total area (measured in m2)
doublearea(AreaUnits units)
Returns the area of this multiregion (measured in @units)
List<GISRegion>getRegions() 
StringgetTitle()
Returns full geographic name.
Iterator<GISRegion>iterator() 
GISRegionrandomRegionInside() 
GISRegionrandomRegionInside(Random rng) 
booleanremove(GISRegion region) 
booleanremoveAll(Collection<GISRegion> regions) 
voidsetFillColor(Paint color) 
voidsetLineColor(Paint color) 
voidsetLineStyle(LineStyle lineStyle) 
voidsetLineWidth(double width) 
voidsetTitle(String title) 
voidsetVisible(boolean visible) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface java.lang.Iterable

forEach, spliterator

Constructor Details

GISMultiRegion

public GISMultiRegion()

GISMultiRegion

public GISMultiRegion(String title,
 GISRegion... regions)

Method Details

getTitle

public String getTitle()
Description copied from interface: IGeographicSearchEntry
Returns full geographic name.
Specified by:
getTitle in interface IGeographicSearchEntry
Returns:
geographic name

setTitle

public void setTitle(String title)

getRegions

public List<GISRegion> getRegions()

add

public boolean add(GISRegion region)

addAll

public boolean addAll(Collection<GISRegion> regions)

remove

public boolean remove(GISRegion region)

removeAll

public boolean removeAll(Collection<GISRegion> regions)

setVisible

public void setVisible(boolean visible)

setFillColor

public void setFillColor(Paint color)

setLineColor

public void setLineColor(Paint color)

setLineWidth

public void setLineWidth(double width)

setLineStyle

public void setLineStyle(LineStyle lineStyle)

iterator

public Iterator<GISRegion> iterator()
Specified by:
iterator in interface Iterable<GISRegion>

randomRegionInside

public GISRegion randomRegionInside()

randomRegionInside

public GISRegion randomRegionInside(Random rng)

area

public double area()
Returns the total area (measured in m2)
Returns:
the total area

area

public double area(AreaUnits units)
Returns the area of this multiregion (measured in @units)
Returns:
the area of this multiregion