|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataSelection
public class DataSelection
A class that represents some selection of data.
| Field Summary | |
|---|---|
static DataSelection |
NULL
Null DataSelection |
static String |
PROP_CHOOSERTIMEMATCHING
|
static String |
PROP_DATESELECTION
Flag to use any times set elsewhere |
static String |
PROP_DEFAULT_LEVELS
Property for selected levels |
static 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 Summary | |
|---|---|
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(List times)
Construct a DataSelection with a list of times. |
|
DataSelection(List times,
int timesMode)
Construct a DataSelection with a list of times and
a particular times mode. |
|
DataSelection(Object fromLevel,
Object toLevel)
ctor |
|
| Method Summary | |
|---|---|
DataSelection |
cloneMe()
Method for creating a clone of this DataSelection |
boolean |
equals(Object o)
See if the Object in question is equal to this DataSelection. |
Object |
getFromLevel()
Get the FromLevel property. |
GeoSelection |
getGeoSelection()
Get the GeoSelection property. |
GeoSelection |
getGeoSelection(boolean createIfNeeded)
Get the GeoSelection property. |
Hashtable |
getProperties()
Get the Properties property. |
Object |
getProperty(Object key)
get the property |
List<DateTime> |
getTimeDriverTimes()
Get the TimeDriverTimes property. |
List |
getTimes()
Get the list of times held by this DataSelection |
int |
getTimesMode()
Get the times mode. |
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(Object key,
Object value)
put the property |
void |
removeProperty(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(Object value)
Set the FromLevel property. |
void |
setGeoSelection(GeoSelection value)
Set the GeoSelection property. |
void |
setLevel(Object level)
Set the level. |
void |
setLevelRange(Object fromLevel,
Object toLevel)
Set the Level property. |
void |
setProperties(Hashtable value)
Set the Properties property. |
void |
setTheTimeDriverTimes(List<DateTime> value)
Set the TimeDriverTimes property. |
void |
setTimes(List selectedTimes)
Set the times list held by this DataSelection. |
void |
setTimesMode(int mode)
Set the times mode. |
void |
setToLevel(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 |
String |
toString()
Return a string representation of this DataSelection. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DataSelection NULL
public static final String PROP_DEFAULT_LEVELS
public static final String PROP_DATESELECTION
public static final String PROP_USESTIMEDRIVER
public static final String PROP_CHOOSERTIMEMATCHING
public static final int TIMESMODE_USETHIS
public static final int TIMESMODE_USEOTHER
| Constructor Detail |
|---|
public DataSelection()
DataSelection.
public DataSelection(Object fromLevel,
Object toLevel)
fromLevel - from leveltoLevel - -0public DataSelection(int zStride)
zStride - z stride
public 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(List times)
DataSelection with a list of times.
Use the default times mode
times - List of DateTimes
public DataSelection(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 DataSelection| Method Detail |
|---|
public 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 stride
public void setBounds(double north,
double west,
double south,
double east)
north - northwest - westsouth - southeast - east
public static DataSelection merge(DataSelection higherPriority,
DataSelection lowerPriority)
higherPriority - DataSelection with higher prioritylowerPriority - DataSelection with lower priority
public boolean getUseThisTimes()
public void setTimesMode(int mode)
mode - (TIMESMODE_USEOTHER, TIMESMODE_USETHIS)public int getTimesMode()
public DataSelection cloneMe()
public boolean hasTimes()
public void setTimes(List selectedTimes)
selectedTimes - The new times list.public List getTimes()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - Object in question
public String toString()
toString in class Objectpublic void setLevel(Object level)
level - The level
public void setLevelRange(Object fromLevel,
Object toLevel)
fromLevel - from leveltoLevel - to levelpublic void setFromLevel(Object value)
value - The new value for FromLevelpublic Object getFromLevel()
public void setToLevel(Object value)
value - The new value for ToLevelpublic 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(Hashtable value)
value - The new value for Propertiespublic Hashtable getProperties()
public Object getProperty(Object key)
key - property key
public void removeProperty(Object key)
key - property key
public void putProperty(Object key,
Object value)
key - keyvalue - valuepublic void setTheTimeDriverTimes(List<DateTime> value)
value - The new value for TimeDriverTimespublic List<DateTime> getTimeDriverTimes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||