fr.cnes.genopus.bodies
Class GPOneAxisEllipsoid

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.bodies.GPOneAxisEllipsoid
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite, GPPatrius<org.orekit.bodies.ExtendedOneAxisEllipsoid>

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<org.orekit.bodies.ExtendedOneAxisEllipsoid>, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface

Widget representing an OREKIT's OneAxisEllipsoid.

Author:
aadt
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => (null)
1GPEntryEarthEqRadentryRealEqRadius"newline"
(see table below)
2GPEntryEarthFlatentryFlatness"newline"
(see table below)
3GPFramebodyFrame"newline"
(see table below)
4GEntryStringentryStringName4, 0, 0 => "newline , gapleft 30 , split 2"
4, 0, 1 => (null)
4, 1 => (null)

Default Constraint(s) for entryRealEqRadius:
IndexClassItemConstraint
1, 0GLabelWithIndicatorlabel1, 0, 0 => "newline , gapleft 30 , split 2"
1, 0, 1 => (null)
1, 1GRealFieldtextField(null)
1, 2GPopupListunits(null)
1, 3GConstantSelectorconstantSelector"newline"
(see table below)

Default Constraint(s) for constantSelector:
IndexClassItemConstraint
1, 3, 0GButtonbutton"split 3"
1, 3, 1GConstantSelelectorDialogdialog"newline , pushx , pushy , growx , growy"
(see table below)

Default Constraint(s) for dialog:
IndexClassItemConstraint
1, 3, 1, 0GComboBoxWithLabelcombobox1, 3, 1, 0, 0, 0 => "split 3"
1, 3, 1, 0, 0, 1 => (null)
1, 3, 1, 0, 1 => (null)
1, 3, 1, 1GLabellabel"newline , split 3"
1, 3, 1, 2GLabelvalueLabel(null)
1, 3, 1, 3GLabelunitLabel(null)
1, 3, 1, 4GButtonselectButton"newline , pushx , pushy"
1, 3, 1, 5GButtoncancelButton(null)

Default Constraint(s) for entryFlatness:
IndexClassItemConstraint
2, 0GLabelWithIndicatorlabel2, 0, 0 => "newline , gapleft 50 , split 2"
2, 0, 1 => (null)
2, 1GRealFieldtextField(null)
2, 2GConstantSelectorconstantSelector"newline"
(see table below)
2, 3GChoicechoiceFlattening2, 3, 0, 0 => "newline , gapleft 30 , split 2"
2, 3, 0, 1 => (null)
2, 3, 1 => "split"
2, 4GEntryRealentryRealFlatteningInverse2, 4, 0, 0 => "newline , gapleft 50 , split 2"
2, 4, 0, 1 => (null)
2, 4, 1 => "gapleft 74"
2, 5GEntryStringinfFieldDirect2, 5, 0, 0 => "newline , gapleft 50 , split 2"
2, 5, 0, 1 => (null)
2, 5, 1 => (null)
2, 6GEntryStringinfFieldInverse2, 6, 0, 0 => "newline , gapleft 50 , split 2"
2, 6, 0, 1 => (null)
2, 6, 1 => "gapleft 74"

Default Constraint(s) for constantSelector:
IndexClassItemConstraint
2, 2, 0GButtonbutton"split 2"
2, 2, 1GConstantSelelectorDialogdialog"newline , pushx , pushy , growx , growy"
(see table below)

Default Constraint(s) for dialog:
IndexClassItemConstraint
2, 2, 1, 0GComboBoxWithLabelcombobox2, 2, 1, 0, 0, 0 => "split 3"
2, 2, 1, 0, 0, 1 => (null)
2, 2, 1, 0, 1 => (null)
2, 2, 1, 1GLabellabel"newline , split 3"
2, 2, 1, 2GLabelvalueLabel(null)
2, 2, 1, 3GLabelunitLabel(null)
2, 2, 1, 4GButtonselectButton"newline , pushx , pushy"
2, 2, 1, 5GButtoncancelButton(null)

Default Constraint(s) for bodyFrame:
IndexClassItemConstraint
3, 0GComboBoxWithLabelcomboBoxRefFrame3, 0, 0, 0 => "newline , gapleft 30 , split 2"
3, 0, 0, 1 => (null)
3, 0, 1 => "split 4"
3, 1GCheckBoxWithIndicatorcheckBoxEOP3, 1, 0, 0 => (null)
3, 1, 0, 1 => (null)
3, 1, 1 => (null)
3, 2GPAbsoluteDateabsoluteDateH0"newline"
(see table below)
3, 3GEntryRealentryRealN3, 3, 0, 0 => "newline , gapleft 50 , split 2"
3, 3, 0, 1 => (null)
3, 3, 1 => "split 2"
3, 3, 2 => (null)
3, 4GEntryRealentryRealLon3, 4, 0, 0 => "newline , gapleft 50 , split 2"
3, 4, 0, 1 => (null)
3, 4, 1 => "split 2"
3, 4, 2 => (null)

Default Constraint(s) for absoluteDateH0:
IndexClassItemConstraint
3, 2, 0GLabelWithIndicatorlabel3, 2, 0, 0 => "newline , gapleft 50 , split 2"
3, 2, 0, 1 => (null)
3, 2, 1GPDateFielddateField"spanx 2 , split 5"
3, 2, 2GPopupListWithLabelpopupListTimeScales3, 2, 2, 0, 0 => "split 4"
3, 2, 2, 0, 1 => (null)
3, 2, 2, 1 => (null)
3, 2, 3GButtonbuttonRelativeDate(null)


Nested Class Summary
 
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
GPOneAxisEllipsoid(String label, org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid, GPFrame.GPRefFrame... framesToShow)
          Constructor.
GPOneAxisEllipsoid(String label, GPFrame.GPRefFrame... framesToShow)
          Constructor.
GPOneAxisEllipsoid(String widgetId, String label, org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid, GPFrame.GPRefFrame... framesToShow)
          Constructor.
GPOneAxisEllipsoid(String widgetId, String label, GPFrame.GPRefFrame... framesToShow)
          Constructor.
 
Method Summary
 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.
 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.
 org.orekit.bodies.ExtendedOneAxisEllipsoid 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 setDefaultEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid defaultEllipsoid)
          Setter for the default one axis ellipsoid.
 void setEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid)
          Setter for the one axis ellipsoid.
 void setEnabled(boolean b)
           
 void setSavedEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid 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()
           
 
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

GPOneAxisEllipsoid

public GPOneAxisEllipsoid(String label,
                          org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid,
                          GPFrame.GPRefFrame... framesToShow)
Constructor. The widgetId will be assigned automatically.

Parameters:
label - to be shown in the widget
ellipsoid - 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.

GPOneAxisEllipsoid

public GPOneAxisEllipsoid(String label,
                          GPFrame.GPRefFrame... framesToShow)
Constructor. The widgetId will be assigned automatically.

Parameters:
label - to be shown in the widget
framesToShow - list of frames available in the widget. It might be empty. In this case all frames are shown.

GPOneAxisEllipsoid

public GPOneAxisEllipsoid(String widgetId,
                          String label,
                          GPFrame.GPRefFrame... framesToShow)
Constructor. The label is initialized by default.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - to be shown in the widget
framesToShow - 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.

GPOneAxisEllipsoid

public GPOneAxisEllipsoid(String widgetId,
                          String label,
                          org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid,
                          GPFrame.GPRefFrame... framesToShow)
Constructor.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - to be shown in the widget
ellipsoid - 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.
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class fr.cnes.genius.main.GComponent

getGLabel

public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
Getter for the GLabel of the widget.

Returns:
the GLabel of the widget

getGEntryRealEqRadius

public GPEntryEarthEqRad getGEntryRealEqRadius()
Getter for the GEntryReal defining the equatorial radius of the ellipsoid.

Returns:
the GEntryReal defining the equatorial radius of the ellipsoid.

getGPEntryEarthFlat

public GPEntryEarthFlat getGPEntryEarthFlat()
Getter for the GPEntryEarthFlat defining the flattening.

Returns:
the GPEntryEarthFlat defining the flattening.

getGPFrame

public GPFrame getGPFrame()
Getter for the GPFrame defining the frame related to the body shape.

Returns:
the GPFrame defining the frame related to the body shape.

getGEntryStringName

public fr.cnes.genius.highLevel.GEntryString getGEntryStringName()
Getter for the GEntryString defining the name.

Returns:
the GEntryString defining the name.

getAvailableFrames

public GPFrame.GPRefFrame[] getAvailableFrames()
Getter for the list of frames available in the widget.

Returns:
an array of GPRefFrame with the list of frames available in the widget.

setAvailableFrames

public void setAvailableFrames(GPFrame.GPRefFrame... framesToShow)
                        throws GPFrameException
Setter for the list of frames available in the widget. The current selected frame must be one of them. If the list of frame is null or empty, all the frames will be available.

Parameters:
framesToShow - an array of GPRefFrame with the list of frames to show in the widget. If null or empty: all frames will be shown.
Throws:
GPFrameException - if the new list of frames is empty.

setConstraint

public void setConstraint(int labelGap,
                          int subWidgetGap)
Setter for the constraints of the widget.

Parameters:
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.

getPatriusObject

public org.orekit.bodies.ExtendedOneAxisEllipsoid getPatriusObject()
                                                            throws GPFrameException
Getter for the OneAxisEllipsoid defined in the widget.

Specified by:
getPatriusObject in interface GPPatrius<org.orekit.bodies.ExtendedOneAxisEllipsoid>
Returns:
the OneAxisEllipsoid defined in the widget.
Throws:
GPFrameException - if EOP data is not initialized.

setEllipsoid

public void setEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid ellipsoid)
                  throws GPFrameException
Setter for the one axis ellipsoid.

Parameters:
ellipsoid - ellipsoid to set.
Throws:
GPFrameException - if ellipsoid's frame is not available in the frame selector.

setDefaultEllipsoid

public void setDefaultEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid defaultEllipsoid)
                         throws GPFrameException
Setter for the default one axis ellipsoid.

Parameters:
defaultEllipsoid - default ellipsoid to set.
Throws:
GPFrameException - if ellipsoid's frame is not available in the frame selector.

setSavedEllipsoid

public void setSavedEllipsoid(org.orekit.bodies.ExtendedOneAxisEllipsoid savedEllipsoid)
                       throws GPFrameException
Setter for the saved one axis ellipsoid.

Parameters:
savedEllipsoid - reference ellipsoid to set.
Throws:
GPFrameException - if ellipsoid's frame is not available in the frame selector.

attachCopyPasteMenu

public void attachCopyPasteMenu(String label,
                                fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
Overrides:
attachCopyPasteMenu in class fr.cnes.genius.main.GComponent

updateStatus

public void updateStatus()
Update the status of the widget.


updateIsModifiedIndicator

public void updateIsModifiedIndicator()
Overrides:
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponent

isEnabled

public boolean isEnabled()
Overrides:
isEnabled in class fr.cnes.genius.main.GComponent

setEnabled

public void setEnabled(boolean b)
Overrides:
setEnabled in class fr.cnes.genius.main.GComponent

isModified

public boolean isModified()
Overrides:
isModified in class fr.cnes.genius.main.GComponent

generic

public void generic()
             throws fr.cnes.genius.exception.GException
Specified by:
generic in class fr.cnes.genius.lowLevel.GContainer
Throws:
fr.cnes.genius.exception.GException

display

public void display()
             throws fr.cnes.genius.exception.GException
Specified by:
display in interface fr.cnes.genius.main.GDisplay
Throws:
fr.cnes.genius.exception.GException

before

public void before(fr.cnes.genius.main.GEvent e)
Specified by:
before in interface fr.cnes.genius.main.GListener

after

public void after(fr.cnes.genius.main.GEvent e)
           throws fr.cnes.genius.exception.GFileManipulatorException
Specified by:
after in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GFileManipulatorException

read

public void read()
          throws fr.cnes.genius.exception.GException
Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

write

public void write()
           throws fr.cnes.genius.exception.GException
Specified by:
write in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

clear

public void clear()
           throws fr.cnes.genius.exception.GException
Specified by:
clear in interface fr.cnes.genius.main.GClear
Throws:
fr.cnes.genius.exception.GException

getSubComponent

public fr.cnes.genius.main.GComponent getSubComponent(int position)
                                               throws fr.cnes.genius.exception.GComponentException

Overrides:
getSubComponent in class fr.cnes.genius.main.GComponent
Throws:
fr.cnes.genius.exception.GComponentException

updateCondensedStatus

public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)

Specified by:
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface


Copyright © 2017. All rights reserved.