public class GliderRegionOfInterest extends AVListImpl
Modifier and Type | Class and Description |
---|---|
static class |
GliderRegionOfInterest.RegionSet
A class to encapsulate an unmodifiable list of regions, useful when region lists are passed as properties.
|
Modifier and Type | Field and Description |
---|---|
static String |
GLIDER_REGION_OF_INTEREST |
Constructor and Description |
---|
GliderRegionOfInterest(GliderRegionOfInterest region)
Copy constructor.
|
GliderRegionOfInterest(Iterable<? extends LatLon> locations,
Color color)
Create a region of interest and assign it a color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Color |
getColor()
Return the region's color.
|
List<LatLon> |
getLocations()
Returns the region's vertices.
|
int |
hashCode() |
void |
setColor(Color color)
Set the region's color.
|
void |
setLocations(Iterable<? extends LatLon> locations)
Set the region's location.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
public static final String GLIDER_REGION_OF_INTEREST
public GliderRegionOfInterest(GliderRegionOfInterest region)
region
- the region of interest to copy.IllegalArgumentException
- if region
is null.public GliderRegionOfInterest(Iterable<? extends LatLon> locations, Color color)
locations
- the lat/lon vertices of the region of interest.color
- the color in which to draw the region.IllegalArgumentException
- if either argument is null.public Color getColor()
public List<LatLon> getLocations()
public void setColor(Color color)
color
- the color in which to draw the region.IllegalArgumentException
- if color
is null.public void setLocations(Iterable<? extends LatLon> locations)
locations
- the lat/lon vertices of the region.IllegalArgumentException
- if locations
is null.