public class GPAbsoluteDate extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, GPPatrius<org.orekit.time.AbsoluteDate>
| 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) |
| Modifier and Type | Class and Description |
|---|---|
static class |
GPAbsoluteDate.GPDateTimeScale
Time scales (with the same names used in Orekit).
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, 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, writeConfigItempublic 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 showpublic 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 showpublic 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)
throws fr.cnes.genius.exception.GArithmeticException
date - the date to set.fr.cnes.genius.exception.GArithmeticException - if date contains NaNs.public void setDefaultDate(org.orekit.time.AbsoluteDate defaultDate)
throws fr.cnes.genius.exception.GArithmeticException
defaultDate - the default date to set.fr.cnes.genius.exception.GArithmeticException - if the defaultDate contains NaNs.public void setSavedDate(org.orekit.time.AbsoluteDate savedDate)
throws fr.cnes.genius.exception.GArithmeticException
savedDate - the saved date to set.fr.cnes.genius.exception.GArithmeticException - if the savedDate contains NaNs.public static org.orekit.time.TimeScale getOrekitTimeScale(GPAbsoluteDate.GPDateTimeScale dateTimeScale) throws GPDateException
dateTimeScale - the GENOPUS GPDateTimeScaleGPDateException - if UTC-TAI data is not initializedpublic 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)
throws fr.cnes.genius.exception.GArithmeticException
date - to compare with specified date in the widget.fr.cnes.genius.exception.GArithmeticException - if date contains NaNs.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.GListenerpublic 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.GContainerpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic 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.GClearpublic 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.GComponentExceptionCopyright © 2017. All rights reserved.