AnyLogic AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.gis.GISMultiRegion
All Implemented Interfaces:
IGeographicSearchEntry, java.io.Serializable, java.lang.Iterable<GISRegion>

public class GISMultiRegion
extends java.lang.Object
implements IGeographicSearchEntry, java.lang.Iterable<GISRegion>, java.io.Serializable
This markup element contains set of GIS regions.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

Constructors 
GISMultiRegion()  
GISMultiRegion​(java.lang.String title, GISRegion... regions)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
boolean add​(GISRegion region)  
boolean addAll​(java.util.Collection<GISRegion> regions)  
double area()
Returns the total area (measured in m2)
double area​(AreaUnits units)
Returns the area of this multiregion (measured in @units)
java.util.List<GISRegion> getRegions()  
java.lang.String getTitle()
Returns full geographic name.
java.util.Iterator<GISRegion> iterator()  
GISRegion randomRegionInside()  
GISRegion randomRegionInside​(java.util.Random rng)  
boolean remove​(GISRegion region)  
boolean removeAll​(java.util.Collection<GISRegion> regions)  
void setFillColor​(java.awt.Paint color)  
void setLineColor​(java.awt.Paint color)  
void setLineStyle​(LineStyle lineStyle)  
void setLineWidth​(double width)  
void setTitle​(java.lang.String title)  
void setVisible​(boolean visible)  
Modifier and Type Method Description

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 Detail

GISMultiRegion

public GISMultiRegion()

GISMultiRegion

public GISMultiRegion​(java.lang.String title,
                      GISRegion... regions)

Method Detail

getTitle

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

setTitle

public void setTitle​(java.lang.String title)

getRegions

public java.util.List<GISRegion> getRegions()

add

public boolean add​(GISRegion region)

addAll

public boolean addAll​(java.util.Collection<GISRegion> regions)

remove

public boolean remove​(GISRegion region)

removeAll

public boolean removeAll​(java.util.Collection<GISRegion> regions)

setVisible

public void setVisible​(boolean visible)

setFillColor

public void setFillColor​(java.awt.Paint color)

setLineColor

public void setLineColor​(java.awt.Paint color)

setLineWidth

public void setLineWidth​(double width)

setLineStyle

public void setLineStyle​(LineStyle lineStyle)

iterator

public java.util.Iterator<GISRegion> iterator()
Specified by:
iterator in interface java.lang.Iterable<GISRegion>

randomRegionInside

public GISRegion randomRegionInside()

randomRegionInside

public GISRegion randomRegionInside​(java.util.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
How can we improve this article?