Package llnl.gnem.core.polygon
Class PolygonSet
java.lang.Object
llnl.gnem.core.polygon.PolygonSet
-
Constructor Summary
ConstructorsConstructorDescriptionPolygonSet(PolygonSetType type, String name, int id, double minlat, double maxlat, double minlon, double maxlon) PolygonSet(PolygonSetType type, String name, int id, Collection<Polygon> polygons) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double lat, double lon) intgetId()doubledoubledoubledoublegetName()getType()booleanfinal voidvoidremovePolygon(Polygon poly) voidsetLatBounds(double minlat, double maxlat) voidsetLonBounds(double minlon, double maxlon) voidsetPolygons(List<Polygon> polygons) toString()
-
Constructor Details
-
PolygonSet
public PolygonSet(PolygonSetType type, String name, int id, double minlat, double maxlat, double minlon, double maxlon) -
PolygonSet
-
-
Method Details
-
setLatBounds
public void setLatBounds(double minlat, double maxlat) -
setLonBounds
public void setLonBounds(double minlon, double maxlon) -
refreshSetBounds
public final void refreshSetBounds() -
getType
-
getId
public int getId() -
getName
-
getMinLat
public double getMinLat() -
getMaxLat
public double getMaxLat() -
getMinLon
public double getMinLon() -
getMaxLon
public double getMaxLon() -
toString
-
contains
public boolean contains(double lat, double lon) -
hasPolygons
public boolean hasPolygons() -
removePolygon
-
setPolygons
-
getPolygons
-