gov.nasa.worldwind.applications.glider
Class GliderRegionOfInterest
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.applications.glider.GliderRegionOfInterest
- All Implemented Interfaces:
- AVList
public class GliderRegionOfInterest - extends AVListImpl
Describes a region to highlight. Current highlight method is to draw the region's border in an application specified
color.
|
Nested Class Summary |
static class |
GliderRegionOfInterest.RegionSet
A class to encapsulate an unmodifiable list of regions, useful when region lists are passed as properties. |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
GLIDER_REGION_OF_INTEREST
public static final String GLIDER_REGION_OF_INTEREST
- See Also:
- Constant Field Values
GliderRegionOfInterest
public GliderRegionOfInterest(GliderRegionOfInterest region)
- Copy constructor. Performs a shallow copy.
- Parameters:
region - the region of interest to copy.
- Throws:
IllegalArgumentException - if region is null.
GliderRegionOfInterest
public GliderRegionOfInterest(Iterable<? extends LatLon> locations,
Color color)
- Create a region of interest and assign it a color.
- Parameters:
locations - the lat/lon vertices of the region of interest.color - the color in which to draw the region.
- Throws:
IllegalArgumentException - if either argument is null.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
getColor
public Color getColor()
- Return the region's color.
- Returns:
- the region's color
getLocations
public List<LatLon> getLocations()
- Returns the region's vertices.
- Returns:
- the lat/lon vertices of the region.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
setColor
public void setColor(Color color)
- Set the region's color.
- Parameters:
color - the color in which to draw the region.
- Throws:
IllegalArgumentException - if color is null.
setLocations
public void setLocations(Iterable<? extends LatLon> locations)
- Set the region's location.
- Parameters:
locations - the lat/lon vertices of the region.
- Throws:
IllegalArgumentException - if locations is null.
|
|