|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.GeoSelection
public class GeoSelection
Holds geo-location information - lat/lon bounding box, image size, etc. This is used to pass information from a chooser into a datasource.
| Field Summary | |
|---|---|
static int |
STRIDE_BASE
No stride value |
static int |
STRIDE_NONE
No stride value |
| Constructor Summary | |
|---|---|
GeoSelection()
ctor |
|
GeoSelection(GeoLocationInfo boundingBox)
ctor |
|
GeoSelection(GeoLocationInfo boundingBox,
boolean useFullBounds,
int xStride,
int yStride,
int zStride,
Real level)
ctor. |
|
GeoSelection(GeoLocationInfo boundingBox,
int stride)
ctor |
|
GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride)
ctor. |
|
GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride,
Real level)
ctor. |
|
GeoSelection(GeoSelection that)
Copy ctor |
|
GeoSelection(Real level)
ctor |
|
| Method Summary | |
|---|---|
void |
clearStride()
Clear the stride settings |
boolean |
equals(Object obj)
equals |
GeoLocationInfo |
getBoundingBox()
Get the BoundingBox property. |
static GeoLocationInfo |
getDefaultBoundingBox()
Get the default bbox |
boolean |
getHasNonOneStride()
Does this selection have any stride other than NONE and BASE |
boolean |
getHasValidState()
Do we have either a bounding box or any valid strides |
ucar.unidata.geoloc.LatLonRect |
getLatLonRect()
Utility to get a lat lon rect if we have one. |
Real |
getLevel()
Get the Level property. |
boolean |
getUseFullBounds()
Get the UseFullBounds property. |
int |
getXStride()
Get the XStride property. |
int |
getXStrideToUse()
Get the XStride property if it is valid. |
int |
getYStride()
Get the YStride property. |
int |
getYStrideToUse()
Get the YStride property if it is valid. |
int |
getZStride()
Get the ZStride property. |
int |
getZStrideToUse()
Get the ZStride property if it is valid. |
int |
hashCode()
hash me |
boolean |
hasSpatialSubset()
Is there a spatial subset defined |
boolean |
hasStride()
Do we have any stride defined |
boolean |
hasXStride()
Do we have a stride defined |
boolean |
hasYStride()
Do we have a stride defined |
boolean |
hasZStride()
Do we have a stride defined |
static GeoSelection |
merge(GeoSelection highPriority,
GeoSelection lowPriority)
Create a new GeoSelection by merging the two subsets. |
void |
setBoundingBox(GeoLocationInfo value)
Set the BoundingBox property. |
static void |
setDefaultBoundingBox(GeoLocationInfo defaultBox)
Define the global bounding box that is used as the default |
void |
setLatLonRect(Rectangle2D.Float rect)
Set the bounds using the rectangle |
void |
setLevel(Real value)
Set the Level property. |
void |
setStride(int value)
Set the Stride property. |
void |
setUseFullBounds(boolean value)
Set the UseFullBounds property. |
void |
setXStride(int value)
Set the XStride property. |
void |
setYStride(int value)
Set the YStride property. |
void |
setZStride(int value)
Set the ZStride property. |
String |
toString()
tostring |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STRIDE_NONE
public static final int STRIDE_BASE
| Constructor Detail |
|---|
public GeoSelection()
public GeoSelection(Real level)
level - The level to usepublic GeoSelection(GeoSelection that)
that - The object to copypublic GeoSelection(GeoLocationInfo boundingBox)
boundingBox - The bounding box. May be null.
public GeoSelection(GeoLocationInfo boundingBox,
int stride)
boundingBox - The bounding box. May be null.stride - The stride for x, y and z
public GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride)
boundingBox - The bounding box. May be null.xStride - X strideyStride - Y stridezStride - Z stride
public GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride,
Real level)
boundingBox - The bounding box. May be null.xStride - X strideyStride - Y stridezStride - Z stridelevel - The level to use
public GeoSelection(GeoLocationInfo boundingBox,
boolean useFullBounds,
int xStride,
int yStride,
int zStride,
Real level)
boundingBox - The bounding box. May be null.useFullBounds - Use full boundsxStride - X strideyStride - Y stridezStride - Z stridelevel - The level to use| Method Detail |
|---|
public static GeoLocationInfo getDefaultBoundingBox()
public static void setDefaultBoundingBox(GeoLocationInfo defaultBox)
defaultBox - default boxpublic void setLatLonRect(Rectangle2D.Float rect)
rect - rectpublic ucar.unidata.geoloc.LatLonRect getLatLonRect()
public boolean getHasValidState()
public boolean hasSpatialSubset()
public boolean getHasNonOneStride()
public static GeoSelection merge(GeoSelection highPriority,
GeoSelection lowPriority)
highPriority - Take state from this first if definedlowPriority - Use this state
public void setStride(int value)
value - The new value for Stridepublic void clearStride()
public boolean hasXStride()
public boolean hasYStride()
public boolean hasZStride()
public boolean hasStride()
public void setXStride(int value)
value - The new value for XStridepublic int getXStride()
public int getXStrideToUse()
public void setYStride(int value)
value - The new value for YStridepublic int getYStride()
public int getYStrideToUse()
public void setZStride(int value)
value - The new value for ZStridepublic int getZStride()
public int getZStrideToUse()
public void setBoundingBox(GeoLocationInfo value)
value - The new value for BoundingBoxpublic GeoLocationInfo getBoundingBox()
public String toString()
toString in class Objectpublic void setLevel(Real value)
value - The new value for Levelpublic Real getLevel()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - obj
public void setUseFullBounds(boolean value)
value - The new value for UseFullBoundspublic boolean getUseFullBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||