public class GPOneAxisEllipsoid extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, GPPatrius<fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid>, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GPEntryEarthEqRad | entryRealEqRadius | "newline" (see table below) |
2 | GPEntryEarthFlat | entryFlatness | "newline" (see table below) |
3 | GPFrame | bodyFrame | "newline" (see table below) |
4 | GEntryString | entryStringName | 4, 0, 0 =>
"newline , gapleft 30 , split 2" 4, 0, 1 => (null) 4, 1 => (null) |
Index | Class | Item | Constraint |
1, 0 | GLabelWithIndicator | label | 1, 0, 0 =>
"newline , gapleft 30 , split 2" 1, 0, 1 => (null) |
1, 1 | GRealField | textField | (null) |
1, 2 | GPopupList | units | (null) |
1, 3 | GConstantSelector | constantSelector | "newline" (see table below) |
Index | Class | Item | Constraint |
1, 3, 0 | GButton | button | "split 3" |
1, 3, 1 | GConstantSelelectorDialog | dialog | "newline , pushx , pushy , growx , growy" (see table below) |
Index | Class | Item | Constraint |
1, 3, 1, 0 | GComboBoxWithLabel | combobox | 1, 3, 1, 0, 0, 0 =>
"split 3" 1, 3, 1, 0, 0, 1 => (null) 1, 3, 1, 0, 1 => (null) |
1, 3, 1, 1 | GLabel | label | "newline , split 3" |
1, 3, 1, 2 | GLabel | valueLabel | (null) |
1, 3, 1, 3 | GLabel | unitLabel | (null) |
1, 3, 1, 4 | GButton | selectButton | "newline , pushx , pushy" |
1, 3, 1, 5 | GButton | cancelButton | (null) |
Index | Class | Item | Constraint |
2, 0 | GLabelWithIndicator | label | 2, 0, 0 =>
"newline , gapleft 50 , split 2" 2, 0, 1 => (null) |
2, 1 | GRealField | textField | (null) |
2, 2 | GConstantSelector | constantSelector | "newline" (see table below) |
2, 3 | GChoice | choiceFlattening | 2, 3, 0, 0 =>
"newline , gapleft 30 , split 2" 2, 3, 0, 1 => (null) 2, 3, 1 => "split" |
2, 4 | GEntryReal | entryRealFlatteningInverse | 2, 4, 0, 0 =>
"newline , gapleft 50 , split 2" 2, 4, 0, 1 => (null) 2, 4, 1 => "gapleft 74" |
2, 5 | GEntryString | infFieldDirect | 2, 5, 0, 0 =>
"newline , gapleft 50 , split 2" 2, 5, 0, 1 => (null) 2, 5, 1 => (null) |
2, 6 | GEntryString | infFieldInverse | 2, 6, 0, 0 =>
"newline , gapleft 50 , split 2" 2, 6, 0, 1 => (null) 2, 6, 1 => "gapleft 74" |
Index | Class | Item | Constraint |
2, 2, 0 | GButton | button | "split 2" |
2, 2, 1 | GConstantSelelectorDialog | dialog | "newline , pushx , pushy , growx , growy" (see table below) |
Index | Class | Item | Constraint |
2, 2, 1, 0 | GComboBoxWithLabel | combobox | 2, 2, 1, 0, 0, 0 =>
"split 3" 2, 2, 1, 0, 0, 1 => (null) 2, 2, 1, 0, 1 => (null) |
2, 2, 1, 1 | GLabel | label | "newline , split 3" |
2, 2, 1, 2 | GLabel | valueLabel | (null) |
2, 2, 1, 3 | GLabel | unitLabel | (null) |
2, 2, 1, 4 | GButton | selectButton | "newline , pushx , pushy" |
2, 2, 1, 5 | GButton | cancelButton | (null) |
Index | Class | Item | Constraint |
3, 0 | GComboBoxWithLabel | comboBoxRefFrame | 3, 0, 0, 0 =>
"newline , gapleft 30 , split 2" 3, 0, 0, 1 => (null) 3, 0, 1 => "split 4" |
3, 1 | GCheckBoxWithIndicator | checkBoxEOP | 3, 1, 0, 0 =>
(null) 3, 1, 0, 1 => (null) 3, 1, 1 => (null) |
3, 2 | GPAbsoluteDate | absoluteDateH0 | "newline" (see table below) |
3, 3 | GEntryReal | entryRealN | 3, 3, 0, 0 =>
"newline , gapleft 50 , split 2" 3, 3, 0, 1 => (null) 3, 3, 1 => "split 2" 3, 3, 2 => (null) |
3, 4 | GEntryReal | entryRealLon | 3, 4, 0, 0 =>
"newline , gapleft 50 , split 2" 3, 4, 0, 1 => (null) 3, 4, 1 => "split 2" 3, 4, 2 => (null) |
Index | Class | Item | Constraint |
3, 2, 0 | GLabelWithIndicator | label | 3, 2, 0, 0 =>
"newline , gapleft 50 , split 2" 3, 2, 0, 1 => (null) |
3, 2, 1 | GPDateField | dateField | "spanx 2 , split 5" |
3, 2, 2 | GPopupListWithLabel | popupListTimeScales | 3, 2, 2, 0, 0 => "split 4" 3, 2, 2, 0, 1 => (null) 3, 2, 2, 1 => (null) |
3, 2, 3 | GButton | buttonRelativeDate | (null) |
Constructor and Description |
---|
GPOneAxisEllipsoid(String label,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
GPOneAxisEllipsoid(String label,
fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
GPOneAxisEllipsoid(String widgetId,
String label,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
GPOneAxisEllipsoid(String widgetId,
String label,
fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid,
GPFrame.GPRefFrame... framesToShow)
Constructor.
|
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) |
static void |
checkEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid)
Method to check if an ellipsoid contains NaN values.
|
void |
clear() |
void |
display() |
void |
generic() |
GPFrame.GPRefFrame[] |
getAvailableFrames()
Getter for the list of frames available in the widget.
|
GPEntryEarthEqRad |
getGEntryRealEqRadius()
Getter for the GEntryReal defining the equatorial radius of the ellipsoid.
|
fr.cnes.genius.highLevel.GEntryString |
getGEntryStringName()
Getter for the GEntryString defining the name.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the GLabel of the widget.
|
GPEntryEarthFlat |
getGPEntryEarthFlat()
Getter for the GPEntryEarthFlat defining the flattening.
|
GPFrame |
getGPFrame()
Getter for the GPFrame defining the frame related to the body shape.
|
fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid |
getPatriusObject()
Getter for the OneAxisEllipsoid defined in the widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
void |
setAvailableFrames(GPFrame.GPRefFrame... framesToShow)
Setter for the list of frames available in the widget.
|
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid defaultEllipsoid)
Setter for the default one axis ellipsoid.
|
void |
setEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid)
Setter for the one axis ellipsoid.
|
void |
setEnabled(boolean b) |
void |
setSavedEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid savedEllipsoid)
Setter for the saved one axis ellipsoid.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
updateStatus()
Update the status of the widget.
|
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, 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 GPOneAxisEllipsoid(String label, fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid, GPFrame.GPRefFrame... framesToShow)
label
- to be shown in the widgetellipsoid
- default ellipsoid to set in the widget.framesToShow
- list of frames available in the widget. It might be empty. In this case all frames are
shown.public GPOneAxisEllipsoid(String label, GPFrame.GPRefFrame... framesToShow)
label
- to be shown in the widgetframesToShow
- list of frames available in the widget. It might be empty. In this case all frames are
shown.public GPOneAxisEllipsoid(String widgetId, String label, GPFrame.GPRefFrame... framesToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- to be shown in the widgetframesToShow
- list of frames available in the widget. Leave it empty to have all frames available. If the
list contains only one frame, it will be the default frame and the frame subwidget will not
be visible.public GPOneAxisEllipsoid(String widgetId, String label, fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid, GPFrame.GPRefFrame... framesToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- to be shown in the widgetellipsoid
- default ellipsoid to set in the widget.framesToShow
- list of frames available in the widget. It might be empty. In this case all frames are
shown.public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public GPEntryEarthEqRad getGEntryRealEqRadius()
public GPEntryEarthFlat getGPEntryEarthFlat()
public GPFrame getGPFrame()
public fr.cnes.genius.highLevel.GEntryString getGEntryStringName()
public GPFrame.GPRefFrame[] getAvailableFrames()
public void setAvailableFrames(GPFrame.GPRefFrame... framesToShow) throws GPFrameException
framesToShow
- an array of GPRefFrame with the list of frames to show in the widget. If null or empty: all
frames will be shown.GPFrameException
- if the new list of frames is empty.public void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.main.GComponent
public void setConstraint(int labelGap, int subWidgetGap)
labelGap
- left gap from panel border to display the label of the widget.subWidgetGap
- left gap from panel border to display the sub-widgets of the widget.public fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid getPatriusObject() throws GPFrameException
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid>
GPFrameException
- if EOP data is not initialized.public void setEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid) throws fr.cnes.genius.exception.GArithmeticException, GPFrameException
ellipsoid
- ellipsoid to set.fr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in ellipsoid are NaN.GPFrameException
- if the given frame is not available in the widget or if the frame is H0-n.public void setDefaultEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid defaultEllipsoid) throws fr.cnes.genius.exception.GArithmeticException, GPFrameException
defaultEllipsoid
- default ellipsoid to set.fr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in ellipsoid are NaN.GPFrameException
- if the given frame is not available in the widget or if the frame is H0-n.public void setSavedEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid savedEllipsoid) throws fr.cnes.genius.exception.GArithmeticException, GPFrameException
savedEllipsoid
- reference ellipsoid to set.fr.cnes.genius.exception.GArithmeticException
- if eq. radius or flatness in ellipsoid are NaN.GPFrameException
- if the given frame is not available in the widget or if the frame is H0-n.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public void updateStatus()
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
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 generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
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 fr.cnes.genius.exception.GFileManipulatorException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GFileManipulatorException
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 void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
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
public static void checkEllipsoid(fr.cnes.sirius.patrius.bodies.OneAxisEllipsoid ellipsoid) throws fr.cnes.genius.exception.GArithmeticException
ellipsoid
- to be checkedfr.cnes.genius.exception.GArithmeticException
- if equatorial radius or flatness in earthShape are NaNCopyright © 2024. All rights reserved.