|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITimeDuration
Provides access to members that control the Time Duration.
The ITimeDuration interface is used to deal with time values which are simply a length of time, but not associated with a specific point in time. For example, 3 hours is a TimeDuration since it does not tell you if it represents 1:00-4:00 or 5:00-8:00. If you need to associate the TimeDuration with a specific point on the time line, you should use a TimeExtent.
Method Summary | |
---|---|
void |
addDays(double value)
Adds the input amount of days to the time duration. |
void |
addDuration(ITimeDuration timeDuration)
Adds a time duration. |
void |
addHours(double value)
Adds the input amount of hours to the time duration. |
void |
addMilliseconds(double value)
Adds the input amount of milliseconds to the time duration. |
void |
addMinutes(double value)
Adds the input amount of minutes to the time duration. |
void |
addNanoseconds(long value)
Adds the input amount of nanoseconds to the time duration. |
void |
addSeconds(double value)
Adds the input amount of seconds to the time duration. |
void |
addWeeks(double value)
Adds the input amount of weeks to the time duration. |
int |
compare(ITimeDuration otherDuration)
Compares this time duration to the other time duration. |
int |
getDays()
The time duration days component. |
int |
getHours()
The time duration hours component. |
int |
getMinutes()
The time duration minutes component. |
int |
getNanoseconds()
The time duration nanoseconds component. |
int |
getSeconds()
The time duration seconds component. |
boolean |
isPositive()
Indicates whether the time duration value is positive or negative. |
boolean |
isZero()
Indicates whether the time duration's value is zero. |
double |
queryDayFraction()
The time duration day fraction portion as a day fraction. |
long |
queryDayFractionNanoseconds()
The time duration day fraction portion as the number of nanoseconds elapsed since midnight. |
long |
queryTicks()
Obtains the time duration as the number of ticks. |
double |
queryTotalDays()
Obtains the time duration as total days floating point value. |
double |
queryTotalHours()
Obtains the time duration as total hours floating point value. |
double |
queryTotalMinutes()
Obtains the time duration as total minutes floating point value. |
double |
queryTotalSeconds()
Obtains the time duration as total seconds floating point value. |
_WKSTimeDuration |
queryWKSTimeDuration()
Obtains time as a WKSTimeDuration. |
String |
queryXMLTimeDurationString()
Obtains the time duration as an XML time duration string. |
void |
reset()
Reset the time duration to zero. |
void |
scale(double scaleFactor)
Scales the time duration by a scale factor. |
void |
setDayFraction(double dayFraction)
The time duration day fraction portion as a day fraction. |
void |
setDayFractionNanoseconds(long dayFractionNanoseconds)
The time duration day fraction portion as the number of nanoseconds elapsed since midnight. |
void |
setDays(int days)
The time duration days component. |
void |
setFromTicks(long ticks)
Writes the time duration from a given number of ticks. |
void |
setFromWKSTimeDuration(_WKSTimeDuration timeDuration)
Writes the time from a given WKSTimeDuration value. |
void |
setFromXMLTimeDurationString(String xmlTimeDurationString)
Writes the time duration from an XML time duration string. |
void |
setHours(int hours)
The time duration hours component. |
void |
setMinutes(int minutes)
The time duration minutes component. |
void |
setNanoseconds(int nanoseconds)
The time duration nanoseconds component. |
void |
setPositive(boolean positive)
Indicates whether the time duration value is positive or negative. |
void |
setSeconds(int seconds)
The time duration seconds component. |
void |
subtractDuration(ITimeDuration timeDuration)
Subtracts a time duration. |
Method Detail |
---|
int getDays() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDays(int days) throws IOException, AutomationException
days
- The days (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHours() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHours(int hours) throws IOException, AutomationException
hours
- The hours (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMinutes() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinutes(int minutes) throws IOException, AutomationException
minutes
- The minutes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSeconds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSeconds(int seconds) throws IOException, AutomationException
seconds
- The seconds (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getNanoseconds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNanoseconds(int nanoseconds) throws IOException, AutomationException
nanoseconds
- The nanoseconds (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isPositive() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPositive(boolean positive) throws IOException, AutomationException
positive
- The positive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception._WKSTimeDuration queryWKSTimeDuration() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFromWKSTimeDuration(_WKSTimeDuration timeDuration) throws IOException, AutomationException
timeDuration
- A Structure: com.esri.arcgis.system._WKSTimeDuration (A com.esri.arcgis.system._WKSTimeDuration COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String queryXMLTimeDurationString() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFromXMLTimeDurationString(String xmlTimeDurationString) throws IOException, AutomationException
xmlTimeDurationString
- The xmlTimeDurationString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addWeeks(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addDays(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addHours(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addMinutes(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addSeconds(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addMilliseconds(double value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addNanoseconds(long value) throws IOException, AutomationException
value
- Signed 64-bit int (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double queryTotalDays() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double queryTotalHours() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double queryTotalMinutes() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double queryTotalSeconds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double queryDayFraction() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDayFraction(double dayFraction) throws IOException, AutomationException
dayFraction
- The dayFraction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.long queryDayFractionNanoseconds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDayFractionNanoseconds(long dayFractionNanoseconds) throws IOException, AutomationException
dayFractionNanoseconds
- Signed 64-bit int (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.long queryTicks() throws IOException, AutomationException
Using the QueryTicks function allows you to find the Ticks value, which is used in many Windows time controls.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFromTicks(long ticks) throws IOException, AutomationException
ticks
- Signed 64-bit int (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void scale(double scaleFactor) throws IOException, AutomationException
The scale function can be used to increase or decrease the given duration. For example, if you want to divide a time extent into 5 equal segments, you can get the TimeDuration from the TimeExent, then scale the TimeDuration by 1/5 and add the resulting TimeDuration to the TimeExtent's Start Time.
scaleFactor
- The scaleFactor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addDuration(ITimeDuration timeDuration) throws IOException, AutomationException
timeDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void subtractDuration(ITimeDuration timeDuration) throws IOException, AutomationException
timeDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isZero() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int compare(ITimeDuration otherDuration) throws IOException, AutomationException
otherDuration
- A reference to a com.esri.arcgis.system.ITimeDuration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |