public class DataSelection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DataSelection |
NULL
Null DataSelection
|
static java.lang.String |
PROP_ASTIMEDRIVER
status template
|
static java.lang.String |
PROP_CHOOSERTIMEMATCHING
chooser time matching property
|
static java.lang.String |
PROP_DATESELECTION
Flag to use any times set elsewhere
|
static java.lang.String |
PROP_DEFAULT_LEVELS
Property for selected levels
|
static java.lang.String |
PROP_DEFAULTVIEW
view manager - used for time/region matching
|
static java.lang.String |
PROP_HASCORNER
region option
|
static java.lang.String |
PROP_PROGRESSIVERESOLUTION
progressive resolution
|
static java.lang.String |
PROP_REGIONOPTION
region option
|
static java.lang.String |
PROP_TIMESUBSET
as time subset selection
|
static java.lang.String |
PROP_USEDEFAULTAREA
region option
|
static java.lang.String |
PROP_USEDISPLAYAREA
region option
|
static java.lang.String |
PROP_USESELECTEDAREA
region option
|
static java.lang.String |
PROP_USESTIMEDRIVER
status template
|
static int |
TIMESMODE_USEOTHER
Flag to use any times set elsewhere
|
static int |
TIMESMODE_USETHIS
Flag to use any times set here
|
Constructor and Description |
---|
DataSelection()
Construct a
DataSelection . |
DataSelection(boolean setDefaults)
Construct a
DataSelection . |
DataSelection(DataSelection that)
Construct a
DataSelection from another instance. |
DataSelection(int zStride)
ctor
|
DataSelection(int xStride,
int yStride,
int zStride)
ctor
|
DataSelection(java.util.List times)
Construct a
DataSelection with a list of times. |
DataSelection(java.util.List times,
int timesMode)
Construct a
DataSelection with a list of times and
a particular times mode. |
DataSelection(java.lang.Object fromLevel,
java.lang.Object toLevel)
ctor
|
Modifier and Type | Method and Description |
---|---|
DataSelection |
cloneMe()
Method for creating a clone of this DataSelection
|
boolean |
equals(java.lang.Object o)
See if the Object in question is equal to this DataSelection.
|
java.lang.Object |
getFromLevel()
Get the FromLevel property.
|
GeoSelection |
getGeoSelection()
Get the GeoSelection property.
|
GeoSelection |
getGeoSelection(boolean createIfNeeded)
Get the GeoSelection property.
|
java.util.Hashtable |
getProperties()
Get the Properties property.
|
java.lang.Object |
getProperty(java.lang.Object key)
get the property
|
boolean |
getProperty(java.lang.String name,
boolean dflt)
Get the named boolean property
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String dflt)
Get the named object property
|
java.util.List<visad.DateTime> |
getTimeDriverTimes()
Get the TimeDriverTimes property.
|
java.util.List |
getTimes()
Get the list of times held by this DataSelection
|
int |
getTimesMode()
Get the times mode.
|
java.lang.Object |
getToLevel()
Get the ToLevel property.
|
boolean |
getUseThisTimes()
Determine whether we should use the times from this
DataSelection or not.
|
int |
hashCode()
Get the hash code for this DataSelection
|
boolean |
hasTimes()
Check whether this DataSelection has a time selection or not.
|
static DataSelection |
merge(DataSelection higherPriority,
DataSelection lowerPriority)
If either of the params are null then simply return the other one.
|
void |
putProperty(java.lang.Object key,
java.lang.Object value)
put the property
|
void |
removeProperty(java.lang.Object key)
remove the property identified by the given key
|
void |
setBounds(double north,
double west,
double south,
double east)
set the clipping bounds
|
void |
setFromLevel(java.lang.Object value)
Set the FromLevel property.
|
void |
setGeoSelection(GeoSelection value)
Set the GeoSelection property.
|
void |
setLevel(java.lang.Object level)
Set the level.
|
void |
setLevelRange(java.lang.Object fromLevel,
java.lang.Object toLevel)
Set the Level property.
|
void |
setProperties(java.util.Hashtable value)
Set the Properties property.
|
void |
setTheTimeDriverTimes(java.util.List<visad.DateTime> value)
Set the TimeDriverTimes property.
|
void |
setTimes(java.util.List selectedTimes)
Set the times list held by this DataSelection.
|
void |
setTimesMode(int mode)
Set the times mode.
|
void |
setToLevel(java.lang.Object value)
Set the ToLevel property.
|
void |
setXStride(int stride)
set the x stride
|
void |
setXYStride(int stride)
set the x and y stride
|
void |
setYStride(int stride)
set the y stride
|
void |
setZStride(int stride)
set the z stride
|
java.lang.String |
toString()
Return a string representation of this DataSelection.
|
public static final DataSelection NULL
public static final java.lang.String PROP_DEFAULT_LEVELS
public static final java.lang.String PROP_DATESELECTION
public static final java.lang.String PROP_USESTIMEDRIVER
public static final java.lang.String PROP_ASTIMEDRIVER
public static final java.lang.String PROP_CHOOSERTIMEMATCHING
public static final java.lang.String PROP_TIMESUBSET
public static final java.lang.String PROP_PROGRESSIVERESOLUTION
public static final java.lang.String PROP_REGIONOPTION
public static final java.lang.String PROP_HASCORNER
public static final java.lang.String PROP_USEDISPLAYAREA
public static final java.lang.String PROP_USEDEFAULTAREA
public static final java.lang.String PROP_USESELECTEDAREA
public static final java.lang.String PROP_DEFAULTVIEW
public static final int TIMESMODE_USETHIS
public static final int TIMESMODE_USEOTHER
public DataSelection()
DataSelection
.public DataSelection(java.lang.Object fromLevel, java.lang.Object toLevel)
fromLevel
- from leveltoLevel
- -0public DataSelection(int zStride)
zStride
- z stridepublic DataSelection(int xStride, int yStride, int zStride)
xStride
- strideyStride
- stridezStride
- stridepublic DataSelection(boolean setDefaults)
DataSelection
.setDefaults
- If true then we set our defaults from the global defaultspublic DataSelection(java.util.List times)
DataSelection
with a list of times.
Use the default times modetimes
- List
of DateTimespublic DataSelection(java.util.List times, int timesMode)
DataSelection
with a list of times and
a particular times mode.times
- List
of DateTimestimesMode
- mode to use (TIMESMODE_USETHIS, TIMESMODE_USEOTHER)public DataSelection(DataSelection that)
DataSelection
from another instance.that
- other DataSelectionpublic void setXYStride(int stride)
stride
- the stridepublic void setXStride(int stride)
stride
- the stridepublic void setYStride(int stride)
stride
- the stridepublic void setZStride(int stride)
stride
- the stridepublic void setBounds(double north, double west, double south, double east)
north
- northwest
- westsouth
- southeast
- eastpublic static DataSelection merge(DataSelection higherPriority, DataSelection lowerPriority)
higherPriority
- DataSelection with higher prioritylowerPriority
- DataSelection with lower prioritypublic boolean getUseThisTimes()
public void setTimesMode(int mode)
mode
- (TIMESMODE_USEOTHER, TIMESMODE_USETHIS)public int getTimesMode()
public DataSelection cloneMe()
public boolean hasTimes()
public void setTimes(java.util.List selectedTimes)
selectedTimes
- The new times list.public java.util.List getTimes()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object in questionpublic java.lang.String toString()
toString
in class java.lang.Object
public void setLevel(java.lang.Object level)
level
- The levelpublic void setLevelRange(java.lang.Object fromLevel, java.lang.Object toLevel)
fromLevel
- from leveltoLevel
- to levelpublic void setFromLevel(java.lang.Object value)
value
- The new value for FromLevelpublic java.lang.Object getFromLevel()
public void setToLevel(java.lang.Object value)
value
- The new value for ToLevelpublic java.lang.Object getToLevel()
public void setGeoSelection(GeoSelection value)
value
- The new value for GeoSelectionpublic GeoSelection getGeoSelection()
public GeoSelection getGeoSelection(boolean createIfNeeded)
createIfNeeded
- If true then create the geosubset of we don't have one already.public void setProperties(java.util.Hashtable value)
value
- The new value for Propertiespublic java.util.Hashtable getProperties()
public java.lang.Object getProperty(java.lang.Object key)
key
- property keypublic void removeProperty(java.lang.Object key)
key
- property keypublic boolean getProperty(java.lang.String name, boolean dflt)
name
- name of propertydflt
- default valuepublic java.lang.String getProperty(java.lang.String name, java.lang.String dflt)
name
- name of propertydflt
- default valuepublic void putProperty(java.lang.Object key, java.lang.Object value)
key
- keyvalue
- valuepublic void setTheTimeDriverTimes(java.util.List<visad.DateTime> value)
value
- The new value for TimeDriverTimespublic java.util.List<visad.DateTime> getTimeDriverTimes()