Class GliderRegionOfInterest
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwindx.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
Nested Classes Modifier and Type Class Description static class
GliderRegionOfInterest.RegionSet
A class to encapsulate an unmodifiable list of regions, useful when region lists are passed as properties.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GLIDER_REGION_OF_INTEREST
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
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
-
-
-
-
Field Detail
-
GLIDER_REGION_OF_INTEREST
public static final java.lang.String GLIDER_REGION_OF_INTEREST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GliderRegionOfInterest
public GliderRegionOfInterest(java.lang.Iterable<? extends LatLon> locations, java.awt.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:
java.lang.IllegalArgumentException
- if either argument is null.
-
GliderRegionOfInterest
public GliderRegionOfInterest(GliderRegionOfInterest region)
Copy constructor. Performs a shallow copy.- Parameters:
region
- the region of interest to copy.- Throws:
java.lang.IllegalArgumentException
- ifregion
is null.
-
-
Method Detail
-
getLocations
public java.util.List<LatLon> getLocations()
Returns the region's vertices.- Returns:
- the lat/lon vertices of the region.
-
setLocations
public void setLocations(java.lang.Iterable<? extends LatLon> locations)
Set the region's location.- Parameters:
locations
- the lat/lon vertices of the region.- Throws:
java.lang.IllegalArgumentException
- iflocations
is null.
-
getColor
public java.awt.Color getColor()
Return the region's color.- Returns:
- the region's color
-
setColor
public void setColor(java.awt.Color color)
Set the region's color.- Parameters:
color
- the color in which to draw the region.- Throws:
java.lang.IllegalArgumentException
- ifcolor
is null.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-