|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.genius.main.GComponent
fr.cnes.genius.lowLevel.GContainer
fr.cnes.genopus.time.GPAbsoluteDate
public class GPAbsoluteDate
Widget representing an OREKIT AbsoluteDate. This widget represents a date in different formats-origins and
time scales. It also allows to compute a date as an offset from a previous date.
Allowed formats-origins:
- Cal: <DD>/<MM>/<YYYY>
<HH>h<MM>m<SS>s[<AAA>ms][<BBB>us][<CCC>ns] or <DD> <MM>
<YYYY> <HH> <MM> <SS>[ <AAA>[ <BBB>[ <CCC>]]]
- ISO-8601: <YYYY>-<MM>-<DD>T<HH>:<MM>:<SS.SSSSSSSSS>
- jj: [-]<Days>[.<FractionOfDay>][ "~1950"|
"~2000"]
- jj_sec: [-]<Days>[ <SecInDay>.<SecInDayFraction>][
"~1950"| "~2000"]
, with <Fr"~1950"nOfDay> up to
14 digits and <SecInDayFraction> up to 9
digits. <SecInDay> must be lower than 86400.
Allowed time scales: TAI, UTC, TT, GPS, GST
The allowed formats for the date offsets are:
- [-]<DD...>d<HH...>h<MM...>m<SS...>s<AAA...>ms<BBB...>us<CCC...>ns
- [-]<DD...> <HH...> <MM...> <SS...> <AAA...> <BBB...> <CCC...>
- [-]<Offset>[.<OffsetFraction>][ ~<Unit>]
, with <Unit> one of: j, h, mn, s, ms, us, ns (if not present, default unit is j). The number of digits
allowed for <OffsetFraction> depends on the selected <Unit> in order to always have a precision of
1 nanosecond: 14 (for days),
13 (for hours),
11 (for minutes),
9 (for seconds),
6 (for milliseconds),
3 (for microseconds) and
0 for nanoseconds.
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
| 1 | GPDateField | dateField | (null) |
| 2 | GPopupListWithLabel | popupListTimeScales | 2, 0, 0 => "split 4" 2, 0, 1 => (null) 2, 1 => (null) |
| 3 | GButton | buttonRelativeDate | (null) |
| Nested Class Summary | |
|---|---|
static class |
GPAbsoluteDate.GPDateTimeScale
Time scales (with the same names used in Orekit). |
| Nested classes/interfaces inherited from class fr.cnes.genius.main.GComponent |
|---|
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation |
| Field Summary |
|---|
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPAbsoluteDate(String label)
Constructor without date. |
|
GPAbsoluteDate(String label,
org.orekit.time.AbsoluteDate date)
Constructor. |
|
GPAbsoluteDate(String widgetId,
String label)
Constructor without date. |
|
GPAbsoluteDate(String widgetId,
String label,
org.orekit.time.AbsoluteDate date)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addInterval(GPDateInterval interval)
Adds a validity interval for the date. |
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
|
void |
before(fr.cnes.genius.main.GEvent e)
|
void |
clear()
|
void |
display()
|
void |
generic()
|
fr.cnes.genius.lowLevel.GButton |
getGButton()
Getter for the GButton used to open the dialog defining a relative date. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the GPAbsoluteDate widget. |
GPDateField |
getGPDateField()
Getter for the GPDateField defining the date string. |
GPDateOffset |
getGPDateOffset()
Getter for the GPDateOffset used to define the relative date. |
fr.cnes.genius.highLevel.GPopupListWithLabel |
getGPopupList()
Getter for the GPopupList defining the time scale. |
fr.cnes.genius.lowLevel.GStandardDialog |
getGStandardDialog()
Getter for the GStandardDialog used to define the relative date. |
static org.orekit.time.TimeScale |
getOrekitTimeScale(GPAbsoluteDate.GPDateTimeScale dateTimeScale)
Getter for the Orekit TimeScale associated to a Genopus DateTimeScale. |
org.orekit.time.AbsoluteDate |
getPatriusObject()
Getter for the date. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
boolean |
isDate(org.orekit.time.AbsoluteDate date)
Check whether a given date is equal to the one defined in the widget. |
boolean |
isEnabled()
|
boolean |
isModified()
|
void |
read()
|
void |
removeInterval(GPDateInterval interval)
Removes a validity interval for the date. |
void |
setConstraint(int labelGap)
Setter for the constraints of the widget. |
void |
setDate(org.orekit.time.AbsoluteDate date)
Setter for the date. |
void |
setDefaultDate(org.orekit.time.AbsoluteDate defaultDate)
Setter for the default date. |
void |
setEnabled(boolean b)
|
void |
setSavedDate(org.orekit.time.AbsoluteDate savedDate)
Setter for the saved date. |
void |
setTimeScale(GPAbsoluteDate.GPDateTimeScale timeScale)
Method to modify the time scale in the widget. |
void |
setWidgetId(String widgetId)
|
protected void |
updateIsModifiedIndicator()
|
void |
write()
|
| Methods inherited from class fr.cnes.genius.lowLevel.GContainer |
|---|
put |
| Methods inherited from class fr.cnes.genius.main.GComponent |
|---|
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPAbsoluteDate(String label)
label - text to display in the label.
public GPAbsoluteDate(String label,
org.orekit.time.AbsoluteDate date)
label - text to display in the label.date - date to show
public GPAbsoluteDate(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.
public GPAbsoluteDate(String widgetId,
String label,
org.orekit.time.AbsoluteDate date)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.date - date to show| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public GPDateField getGPDateField()
public fr.cnes.genius.highLevel.GPopupListWithLabel getGPopupList()
public fr.cnes.genius.lowLevel.GButton getGButton()
public GPDateOffset getGPDateOffset()
public fr.cnes.genius.lowLevel.GStandardDialog getGStandardDialog()
public void setConstraint(int labelGap)
labelGap - left gap from panel border to display the labelpublic org.orekit.time.AbsoluteDate getPatriusObject()
getPatriusObject in interface GPPatrius<org.orekit.time.AbsoluteDate>
public void setTimeScale(GPAbsoluteDate.GPDateTimeScale timeScale)
throws GPDateException
timeScale - time scale to be set.
GPDateException - if Patrius Data Set has not been initialized.public void setDate(org.orekit.time.AbsoluteDate date)
date - the date to set.public void setDefaultDate(org.orekit.time.AbsoluteDate defaultDate)
defaultDate - the default date to set.public void setSavedDate(org.orekit.time.AbsoluteDate savedDate)
savedDate - the saved date to set.
public static org.orekit.time.TimeScale getOrekitTimeScale(GPAbsoluteDate.GPDateTimeScale dateTimeScale)
throws GPDateException
dateTimeScale - the GENOPUS GPDateTimeScale
GPDateException - if UTC-TAI data is not initialized
public void addInterval(GPDateInterval interval)
throws fr.cnes.genius.exception.GIntervalException
interval - to add.
fr.cnes.genius.exception.GIntervalException - In case the new interval overlaps with an existing interval in the list.public void removeInterval(GPDateInterval interval)
interval - to be removed.public boolean isDate(org.orekit.time.AbsoluteDate date)
date - to compare with specified date in the widget.
public void attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic void before(fr.cnes.genius.main.GEvent e)
before in interface fr.cnes.genius.main.GListener
public void after(fr.cnes.genius.main.GEvent e)
throws GPDateException
after in interface fr.cnes.genius.main.GListenerGPDateExceptionpublic void generic()
generic in class fr.cnes.genius.lowLevel.GContainer
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GException
public void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GException
public void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic void clear()
clear in interface fr.cnes.genius.main.GClear
public fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class fr.cnes.genius.main.GComponentfr.cnes.genius.exception.GComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||