Package llnl.gnem.core.polygon
Class PolygonSet
java.lang.Object
llnl.gnem.core.polygon.PolygonSet
-
Constructor Summary
ConstructorDescriptionPolygonSet
(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 TypeMethodDescriptionboolean
contains
(double lat, double lon) int
getId()
double
double
double
double
getName()
getType()
boolean
final void
void
removePolygon
(Polygon poly) void
setLatBounds
(double minlat, double maxlat) void
setLonBounds
(double minlon, double maxlon) void
setPolygons
(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
-