public class GPFrame 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<fr.cnes.sirius.patrius.frames.Frame>, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GComboBoxWithLabel | comboBoxRefFrame | 0, 0, 0 =>
"newline , gapleft 0 , split 2" 0, 0, 1 => (null) 0, 1 => "split 4" |
1 | GCheckBoxWithIndicator | checkBoxEOP | 1, 0, 0 =>
(null) 1, 0, 1 => (null) 1, 1 => (null) |
2 | GPAbsoluteDate | absoluteDateH0 | "newline" (see table below) |
3 | GEntryReal | entryRealN | 3, 0, 0 =>
"newline , gapleft 20 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealLon | 4, 0, 0 =>
"newline , gapleft 20 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
Index | Class | Item | Constraint |
2, 0 | GLabelWithIndicator | label | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) |
2, 1 | GPDateField | dateField | "spanx 2 , split 5" |
2, 2 | GPopupListWithLabel | popupListTimeScales | 2, 2, 0, 0 => "split 4" 2, 2, 0, 1 => (null) 2, 2, 1 => (null) |
2, 3 | GButton | buttonRelativeDate | (null) |
Modifier and Type | Class and Description |
---|---|
static class |
GPFrame.GPRefFrame
Enumerate of Reference frames available in the widget.
|
Modifier and Type | Field and Description |
---|---|
static String |
H0_MINUS_N_NAME
Name for any H0-n frame internally used in GENOPUS.
|
Constructor and Description |
---|
GPFrame()
Empty constructor.
|
GPFrame(String label)
Constructor without frame and without list of frames for the widget (all from
GPFrame.GPRefFrame will
be shown). |
GPFrame(String label,
fr.cnes.sirius.patrius.frames.Frame frame)
Constructor without list of frames for the widget (all from
GPFrame.GPRefFrame will be
shown). |
GPFrame(String label,
fr.cnes.sirius.patrius.frames.Frame frame,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
GPFrame(String label,
GPFrame.GPRefFrame... framesToShow)
Constructor without frame.
|
GPFrame(String widgetId,
String label)
Constructor without frame and without list of frames for the widget (all from
GPFrame.GPRefFrame will
be shown). |
GPFrame(String widgetId,
String label,
fr.cnes.sirius.patrius.time.AbsoluteDate h0,
double n,
double lon,
GPFrame.GPRefFrame... framesToShow)
Specific constructor to initialize the widget with an H0-n reference frame.
|
GPFrame(String widgetId,
String label,
fr.cnes.sirius.patrius.frames.Frame frame)
Constructor without list of frames for the widget (all from
GPFrame.GPRefFrame will be
shown). |
GPFrame(String widgetId,
String label,
fr.cnes.sirius.patrius.frames.Frame frame,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
GPFrame(String widgetId,
String label,
GPFrame.GPRefFrame... framesToShow)
Constructor without frame.
|
Modifier and Type | Method and Description |
---|---|
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() |
GPFrame.GPRefFrame[] |
getAvailableFrames()
Getter for the list of frames available in the widget.
|
fr.cnes.genius.highLevel.GCheckBoxWithIndicator |
getGCheckBox()
Getter for the CheckBox widget to select whether to apply or not the EOP correction.
|
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBox()
Getter for the ComboBox widget to select the reference frame.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealLon()
Getter for the GEntryReal to select the longitude for the H0-n frame.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealN()
Getter for the GEntryReal to select the n for the H0-n frame.
|
GPAbsoluteDate |
getGPAbsoluteDateH0()
Getter for the GPAbsoluteDate to select the H0 for the H0-n frame.
|
fr.cnes.sirius.patrius.frames.Frame |
getPatriusObject()
Frame getter.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isH0MinusN()
Method to check if current frame is H0-n.
|
boolean |
isModified() |
Boolean |
isPseudoInertial()
Checks if the GPFrame is an inertial frame.
|
void |
read() |
void |
setAvailableFrames(GPFrame.GPRefFrame... framesToShow)
Setter for the list of frames available in the widget.
|
void |
setConstraint(int labelGap)
Setter for the constraints of the widget.
|
void |
setDefaultFrame(fr.cnes.sirius.patrius.time.AbsoluteDate defaultH0,
Double defaultN,
Double defaultLon)
Frame setter for the default frame being a H0-n reference frame..
|
void |
setDefaultFrame(fr.cnes.sirius.patrius.frames.Frame defaultFrame)
Setter for the default frame.
|
void |
setEnabled(boolean b) |
void |
setFrame(fr.cnes.sirius.patrius.time.AbsoluteDate h0,
Double n,
Double lon)
Frame setter.
|
void |
setFrame(fr.cnes.sirius.patrius.frames.Frame frame)
Frame setter.
|
void |
setSavedFrame(fr.cnes.sirius.patrius.time.AbsoluteDate savedH0,
Double savedN,
Double savedLon)
Frame setter for the saved frame being a H0-n reference frame.
|
void |
setSavedFrame(fr.cnes.sirius.patrius.frames.Frame savedFrame)
Setter for the saved frame.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
write() |
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public static final String H0_MINUS_N_NAME
public GPFrame()
public GPFrame(String label)
GPFrame.GPRefFrame
will
be shown). The widgetId will be assigned automatically.label
- text to display in the label.public GPFrame(String label, GPFrame.GPRefFrame... framesToShow)
label
- text to display in the label.framesToShow
- list of frames to show in the widget.public GPFrame(String label, fr.cnes.sirius.patrius.frames.Frame frame)
GPFrame.GPRefFrame
will be
shown). The
widgetId will be assigned automatically.label
- text to display in the label.frame
- frame to show. It must be a frame available in the widget, otherwise it will throw a
GRuntimeException.public GPFrame(String label, fr.cnes.sirius.patrius.frames.Frame frame, GPFrame.GPRefFrame... framesToShow)
label
- text to display in the label.frame
- frame to show. It must be a frame available in the widget, otherwise it will throw a
GRuntimeException.framesToShow
- list of frames to show in the widget.public GPFrame(String widgetId, String label)
GPFrame.GPRefFrame
will
be shown).widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.public GPFrame(String widgetId, String label, GPFrame.GPRefFrame... framesToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.framesToShow
- list of frames to show in the widget.public GPFrame(String widgetId, String label, fr.cnes.sirius.patrius.frames.Frame frame)
GPFrame.GPRefFrame
will be
shown).widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.frame
- frame to show. It must be a frame available in the widget, otherwise it will throw a
GRuntimeException.public GPFrame(String widgetId, String label, fr.cnes.sirius.patrius.frames.Frame frame, GPFrame.GPRefFrame... framesToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.frame
- frame to show. It must be a frame available in the widget, otherwise it will throw a
GRuntimeException.framesToShow
- list of frames to show in the widget.public GPFrame(String widgetId, String label, fr.cnes.sirius.patrius.time.AbsoluteDate h0, double n, double lon, GPFrame.GPRefFrame... framesToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.h0
- launch date for the H0-n specific framen
- delta time for the H0-n specific framelon
- launchpad longitude for the H0-n specific frameframesToShow
- list of frames to show in the widget.public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBox()
public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBox()
public GPAbsoluteDate getGPAbsoluteDateH0()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealN()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealLon()
public GPFrame.GPRefFrame[] getAvailableFrames()
public void setAvailableFrames(GPFrame.GPRefFrame... framesToShow)
framesToShow
- an array of GPRefFrame with the list of frames to show in the widget. If null: all
frames
will be shown.public void setConstraint(int labelGap)
labelGap
- left gap from panel border to display the label of the orbital parameterspublic fr.cnes.sirius.patrius.frames.Frame getPatriusObject() throws GPFrameException
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.frames.Frame>
GPFrameException
- if EOP data is not initialized.public void setFrame(fr.cnes.sirius.patrius.frames.Frame frame) throws GPFrameException
org.orekit.frames.Predefined
.frame
- the frame to setGPFrameException
- if the given frame is not available in the widget or if the frame is H0-n (use
#setFrame(GPRefFrame, boolean, AbsoluteDate, double, double)
in this case).public void setFrame(fr.cnes.sirius.patrius.time.AbsoluteDate h0, Double n, Double lon) throws GPFrameException, fr.cnes.genius.exception.GArithmeticException
h0
- launch date for the H0-n specific framen
- delta time for the H0-n specific framelon
- launchpad longitude for the H0-n specific frameGPFrameException
- if the frame is H0-n and H0, n or lon are nullfr.cnes.genius.exception.GArithmeticException
- if h0 contains NaNs or if n or lon are NaN.public void setDefaultFrame(fr.cnes.sirius.patrius.frames.Frame defaultFrame) throws GPFrameException
org.orekit.frames.Predefined
.defaultFrame
- the frame to set as default one.GPFrameException
- if the given frame is not available in the widget or if the frame is H0-n (use
#setDefaultFrame(GPRefFrame, boolean, AbsoluteDate, double, double)
in this
case).public void setDefaultFrame(fr.cnes.sirius.patrius.time.AbsoluteDate defaultH0, Double defaultN, Double defaultLon) throws GPFrameException, fr.cnes.genius.exception.GArithmeticException
defaultH0
- launch date for the H0-n specific frame by default.defaultN
- delta time for the H0-n specific frame by default.defaultLon
- launchpad longitude for the H0-n specific frame by default.GPFrameException
- if the frame is H0-n and H0, n or lon are null, or if the given frame is not
available in
the widget.fr.cnes.genius.exception.GArithmeticException
- if defaultH0 contains NaNs or if defaultN or defaultLon are NaN.public void setSavedFrame(fr.cnes.sirius.patrius.frames.Frame savedFrame) throws GPFrameException
org.orekit.frames.Predefined
.savedFrame
- the frame to set as saved one.GPFrameException
- if the given frame is not available in the widget or if the frame is H0-n (use
#setSavedFrame(GPRefFrame, boolean, AbsoluteDate, double, double)
in this
case).public void setSavedFrame(fr.cnes.sirius.patrius.time.AbsoluteDate savedH0, Double savedN, Double savedLon) throws GPFrameException, fr.cnes.genius.exception.GArithmeticException
savedH0
- saved value of launch date for the H0-n specific frame.savedN
- saved value of delta time for the H0-n specific frame.savedLon
- saved value of launchpad longitude for the H0-n specific frame.GPFrameException
- if the frame is H0-n and H0, n or lon are null, or if the given frame is not
available in
the widget.fr.cnes.genius.exception.GArithmeticException
- if savedH0 contains NaNs or if savedN or savedLon are NaN.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public 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 GPFrameException
after
in interface fr.cnes.genius.main.GListener
GPFrameException
public 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.GDisplay
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public boolean isH0MinusN()
public Boolean isPseudoInertial()
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
Copyright © 2023. All rights reserved.