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 java.lang.String |
GLIDER_REGION_OF_INTEREST |
Constructor and Description |
---|
GliderRegionOfInterest(GliderRegionOfInterest region)
Copy constructor.
|
GliderRegionOfInterest(java.lang.Iterable<? extends LatLon> locations,
java.awt.Color color)
Create a region of interest and assign it a color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.awt.Color |
getColor()
Return the region's color.
|
java.util.List<LatLon> |
getLocations()
Returns the region's vertices.
|
int |
hashCode() |
void |
setColor(java.awt.Color color)
Set the region's color.
|
void |
setLocations(java.lang.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 java.lang.String GLIDER_REGION_OF_INTEREST
public GliderRegionOfInterest(GliderRegionOfInterest region)
region
- the region of interest to copy.java.lang.IllegalArgumentException
- if region
is null.public GliderRegionOfInterest(java.lang.Iterable<? extends LatLon> locations, java.awt.Color color)
locations
- the lat/lon vertices of the region of interest.color
- the color in which to draw the region.java.lang.IllegalArgumentException
- if either argument is null.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.awt.Color getColor()
public java.util.List<LatLon> getLocations()
public int hashCode()
hashCode
in class java.lang.Object
public void setColor(java.awt.Color color)
color
- the color in which to draw the region.java.lang.IllegalArgumentException
- if color
is null.public void setLocations(java.lang.Iterable<? extends LatLon> locations)
locations
- the lat/lon vertices of the region.java.lang.IllegalArgumentException
- if locations
is null.