Package videoRangePanel.pamImage
Class ImageTimeOffset
java.lang.Object
videoRangePanel.pamImage.ImageTimeOffset
- All Implemented Interfaces:
Serializable
,Cloneable
,TimeOffset
Time offset for PamImages. Simple constant offset which is added ot the image time.
- Author:
- Jamie Macaulay
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
long
getOffsetTime
(long originalTime) Get the time offset.long
Get the time offsetvoid
setTimeOffset
(int days, int hours, int minutes, int seconds, int millis) Set the time offset.void
setTimeOffset
(long timeOffset) Set the time offset
-
Constructor Details
-
ImageTimeOffset
public ImageTimeOffset(long timeOffset)
-
-
Method Details
-
getOffsetTime
public long getOffsetTime(long originalTime) Description copied from interface:TimeOffset
Get the time offset.- Specified by:
getOffsetTime
in interfaceTimeOffset
- Parameters:
originalTime
- - the orginal time- Returns:
- the time with time offset.
-
getTimeOffset
public long getTimeOffset()Get the time offset- Returns:
- the timeOffset
-
setTimeOffset
public void setTimeOffset(long timeOffset) Set the time offset- Parameters:
timeOffset
- the timeOffset to set
-
setTimeOffset
public void setTimeOffset(int days, int hours, int minutes, int seconds, int millis) Set the time offset.- Parameters:
days
- - the number of full days of offsethours
- - the number of full hours of time offsetminutes
- = the number of full minutes of time offsetseconds
- - the number of full seconds
-
clone
-