Package ucar.unidata.data
Class DataTimeRange
java.lang.Object
ucar.unidata.data.DataTimeRange
Class DataTimeRange specifies a time range
- Version:
- $Revision: 1.6 $
- Author:
- IDV Development Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply the propertiesget the propertylong
Get the EndFixedTime property.int
Get the EndMode property.double
Get the EndOffsetMinutes property.Label that describes the rangeget the propertylong
Get the StartFixedTime property.int
Get the StartMode property.double
Get the StartOffsetMinutes property.get the time model labelReal[]
getTimeRange
(Real dataStartTime, Real dataEndTime, Real aniValue) calculate time rangevoid
setEndFixedTime
(long value) Set the EndFixedTime property.void
set the propertyvoid
setEndMode
(int value) Set the EndMode property.void
setEndOffsetMinutes
(double value) Set the EndOffsetMinutes property.void
setOneLineLabel
(boolean v) set onelinelabelvoid
setStartFixedTime
(long value) Set the StartFixedTime property.void
set the propertyvoid
setStartMode
(int value) Set the StartMode property.void
setStartOffsetMinutes
(double value) Set the StartOffsetMinutes property.void
setTimeModeLabel
(JLabel label) Set time mode textboolean
Show the dialogtoString()
Get a String representation of this object
-
Field Details
-
MODE_DATA
public static final int MODE_DATATime range mode- See Also:
-
MODE_ANIMATION
public static final int MODE_ANIMATIONTime range mode- See Also:
-
MODE_FIXED
public static final int MODE_FIXEDTime range mode- See Also:
-
MODE_RELATIVE
public static final int MODE_RELATIVETime range mode- See Also:
-
MODES
public static int[] MODESTime range mode -
STARTMODELABELS
Time range mode -
ENDMODELABELS
Time range mode
-
-
Constructor Details
-
DataTimeRange
public DataTimeRange()ctor
-
-
Method Details
-
getTimeRange
public Real[] getTimeRange(Real dataStartTime, Real dataEndTime, Real aniValue) throws VisADException, RemoteException calculate time range- Parameters:
dataStartTime
- data start timedataEndTime
- data end timeaniValue
- animation time- Returns:
- The time range
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
getTimeModeLabel
get the time model label- Returns:
- time model label
-
setTimeModeLabel
Set time mode text -
showDialog
public boolean showDialog()Show the dialog- Returns:
- success
-
applyTimeProperties
public boolean applyTimeProperties()apply the properties- Returns:
- success
-
setOneLineLabel
public void setOneLineLabel(boolean v) set onelinelabel- Parameters:
v
- one line label
-
getLabelText
Label that describes the range- Returns:
- Label
-
toString
Get a String representation of this object -
setStartMode
public void setStartMode(int value) Set the StartMode property.- Parameters:
value
- The new value for StartMode
-
getStartMode
public int getStartMode()Get the StartMode property.- Returns:
- The StartMode
-
setEndMode
public void setEndMode(int value) Set the EndMode property.- Parameters:
value
- The new value for EndMode
-
getEndMode
public int getEndMode()Get the EndMode property.- Returns:
- The EndMode
-
setStartOffsetMinutes
public void setStartOffsetMinutes(double value) Set the StartOffsetMinutes property.- Parameters:
value
- The new value for StartOffsetMinutes
-
getStartOffsetMinutes
public double getStartOffsetMinutes()Get the StartOffsetMinutes property.- Returns:
- The StartOffsetMinutes
-
setEndOffsetMinutes
public void setEndOffsetMinutes(double value) Set the EndOffsetMinutes property.- Parameters:
value
- The new value for EndOffsetMinutes
-
getEndOffsetMinutes
public double getEndOffsetMinutes()Get the EndOffsetMinutes property.- Returns:
- The EndOffsetMinutes
-
setStartFixedTime
public void setStartFixedTime(long value) Set the StartFixedTime property.- Parameters:
value
- The new value for StartFixedTime
-
setStartFixedTime
set the property- Parameters:
d
- value
-
setEndFixedTime
set the property- Parameters:
d
- value
-
getStartFixedDate
get the property- Returns:
- the property
-
getEndFixedDate
get the property- Returns:
- the property
-
getStartFixedTime
public long getStartFixedTime()Get the StartFixedTime property.- Returns:
- The StartFixedTime
-
setEndFixedTime
public void setEndFixedTime(long value) Set the EndFixedTime property.- Parameters:
value
- The new value for EndFixedTime
-
getEndFixedTime
public long getEndFixedTime()Get the EndFixedTime property.- Returns:
- The EndFixedTime
-