|
||||||||||
| 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.GPanel
fr.cnes.genopus.attitudes.GPAttitudeSequence
public final class GPAttitudeSequence
Class defining an attitude sequence widget.
| Index | Class | Item | Constraint |
| 0 | GPDualAbsoluteDate | refAbsoluteDate | "newline" (see table below) |
| 1 | GLabelWithIndicator | attitudeLawsLabel | 1, 0 =>
"newline , split 2" 1, 1 => (null) |
| 2 | GButton | selectLawsButton | "newline , gapleft 10 , spanx 3" |
| 3 | GLabelWithIndicator | switchesLabel | 3, 0 => "newline , split 2" 3, 1 => (null) |
| 4 | GComponentList | switchComponentList | "newline , gapleft 0 , spanx 3" (see table below) |
| 5 | GStandardPanelDialog | lawListDialog | "newline , pushx , pushy , growx , growy" |
| Index | Class | Item | Constraint |
| 0, 0 | GLabelWithIndicator | label | 0, 0, 0 =>
"newline , gapleft 0 , split 2" 0, 0, 1 => "wmin 24" |
| 0, 1 | GChoice | typeDateChoice | 0, 1, 0, 0 =>
"newline , gapleft 20 , split 2" 0, 1, 0, 1 => (null) 0, 1, 1 => "split" |
| 0, 2 | GPAbsoluteDate | referenceAbsoluteDate | "newline" (see table below) |
| 0, 3 | GPAbsoluteDate | externalAbsoluteDate | "newline" (see table below) |
| Index | Class | Item | Constraint |
| 0, 2, 0 | GLabelWithIndicator | label | 0, 2, 0, 0 =>
"newline , gapleft 20 , split 2" 0, 2, 0, 1 => (null) |
| 0, 2, 1 | GPDateField | dateField | (null) |
| 0, 2, 2 | GPopupListWithLabel | popupListTimeScales | 0, 2, 2, 0, 0 => "split 4" 0, 2, 2, 0, 1 => (null) 0, 2, 2, 1 => (null) |
| 0, 2, 3 | GButton | buttonRelativeDate | (null) |
| Index | Class | Item | Constraint |
| 0, 3, 0 | GLabelWithIndicator | label | 0, 3, 0, 0 =>
"newline , gapleft 20 , split 2" 0, 3, 0, 1 => (null) |
| 0, 3, 1 | GPDateField | dateField | (null) |
| 0, 3, 2 | GPopupListWithLabel | popupListTimeScales | 0, 3, 2, 0, 0 => "split 4" 0, 3, 2, 0, 1 => (null) 0, 3, 2, 1 => (null) |
| 0, 3, 3 | GButton | buttonRelativeDate | (null) |
| Index | Class | Item | Constraint |
| 4, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
| 4, 1 | GLabel | spaceLabel | "newline , height 0" |
| Index | Class | Item | Constraint |
| 4, 0, 0 | GEntryInt | totalNumberItemsEntry | 4, 0, 0, 0, 0 =>
"newline , split 2" 4, 0, 0, 0, 1 => (null) 4, 0, 0, 1 => "skip 2 , width 50" |
| 4, 0, 1 | GEntryInt | currentItemRankEntry | 4, 0,
1, 0, 0 => "split 2" 4, 0, 1, 0, 1 => (null) 4, 0, 1, 1 => "width 50" |
| 4, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
| 4, 0, 3 | GButton | incrButton | "height 20" |
| 4, 0, 4 | GPopupList | menu | (null) |
| Nested Class Summary | |
|---|---|
static class |
GPAttitudeSequence.GPAttitudeSequenceSwitch
Widget for attitude sequence switches with an attitude law before and after a given event chosen by an event selector. |
| Nested classes/interfaces inherited from class fr.cnes.genius.lowLevel.GPanel |
|---|
fr.cnes.genius.lowLevel.GPanel.Panel, fr.cnes.genius.lowLevel.GPanel.ScrollBarVisibility |
| 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 |
| Nested classes/interfaces inherited from interface fr.cnes.genopus.main.GPPatriusWithObjects |
|---|
GPPatriusWithObjects.ArgsChecker |
| Field Summary |
|---|
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPAttitudeSequence(org.orekit.time.AbsoluteDate externalDate,
boolean switchListSingleMode)
Constructor with an external date. |
|
GPAttitudeSequence(boolean switchListSingleMode)
Constructor. |
|
GPAttitudeSequence(String widgetId,
org.orekit.time.AbsoluteDate externalDate,
boolean switchListSingleMode)
Constructor with an external date. |
|
GPAttitudeSequence(String widgetId,
boolean switchListSingleMode)
Constructor. |
|
| Method Summary | |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
before(fr.cnes.genius.main.GEvent e)
|
void |
clear()
|
void |
display()
|
void |
generic()
|
ArrayList<GPAttitudeLawSelector> |
getAttLawsList()
Get attitude laws list. |
org.orekit.bodies.BodyShape |
getEarthShape()
Getter for the Earth shape. |
fr.cnes.genius.lowLevel.GButton |
getGButtonSelectLaws()
Get the select laws button sub-widget. |
fr.cnes.genius.highLevel.GComponentList |
getGComponentListAttitudeLaws()
Get the attitude laws component list sub-widget. |
fr.cnes.genius.highLevel.GComponentList |
getGComponentListSwitches()
Get the switches component list sub-widget. |
fr.cnes.genius.lowLevel.GStandardPanelDialog |
getGDialogAttitudeLaws()
Get the attitude laws dialog sub-widget. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelAttitudeLaws()
Get the attitude laws label sub-widget. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelSwitches()
Get the switches label sub-widget. |
GPDualAbsoluteDate |
getGPDualAbsoluteDate()
Get the reference date sub-widget. |
org.orekit.attitudes.AttitudesSequence |
getPatriusObject()
Method to obtain a PATRIUS AttitudesSequence object builded with MMI parameters. |
org.orekit.attitudes.AttitudesSequence |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
ArrayList<GPAttitudeSequence.GPAttitudeSequenceSwitch> |
getSwitchList()
Get switches list. |
boolean |
isEnabled()
|
void |
read()
|
void |
setBodyShapeWidgetsVisible(boolean b)
Method to force the GPOneAxisEllipsoid widget to be visible/invisible. |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget. |
void |
setCurrentLawsNumber(int currentLawsNumber)
Set the current number of items in the attitude laws list, if the value is not contained in minLawNumber <= currentLawsNumber <= maxLawNumber, nothing is done. |
void |
setCurrentSwitchesNumber(int currentSwitchesNumber)
Set the current number of items in the attitude switches list, if the value is not contained in minSwitchesNumber <= currentSwitchesNumber <= maxSwitchesNumber, nothing is done. |
void |
setEarthShape(org.orekit.bodies.BodyShape earthValues)
Method to set the reference date for the attitude laws. |
void |
setEnabled(boolean flag)
|
void |
setExternalDate(org.orekit.time.AbsoluteDate externalDate)
Method to set the external date used as reference date in "external" mode. |
void |
setMinMaxLawsNumber(Integer minLawNumber,
Integer maxLawNumber)
Set the minimum and maximum number of attitude laws allowed. |
void |
setMinMaxSwitchesNumber(Integer minSwitchesNumber,
Integer maxSwitchesNumber)
Set the minimum and maximum number of attitude switches allowed. |
void |
setPropagationFrame(org.orekit.frames.Frame propagationFrame)
Setter for the propagation frame. |
void |
setReferenceDate(org.orekit.time.AbsoluteDate date)
Set the reference date. |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
void |
updateExternalDate(org.orekit.time.AbsoluteDate externalDate)
Update external date value. |
protected void |
updateStatus()
Update the global status of the widget following the status of its components. |
void |
write()
|
| Methods inherited from class fr.cnes.genius.lowLevel.GPanel |
|---|
getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setPreferredSize, setRowConstraints, setVerticalScroll |
| Methods inherited from class fr.cnes.genius.main.GComponent |
|---|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, updateIsModifiedIndicator, 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 GPAttitudeSequence(boolean switchListSingleMode)
switchListSingleMode - flag to determine if the switches component list is in "single widget mode" or not.
public GPAttitudeSequence(String widgetId,
boolean switchListSingleMode)
widgetId - widget identifier, if null an identifier will be automatically created.switchListSingleMode - flag to determine if the switches component list is in "single widget mode" or not.
public GPAttitudeSequence(org.orekit.time.AbsoluteDate externalDate,
boolean switchListSingleMode)
externalDate - date to be initially set as reference date.switchListSingleMode - flag to determine if the switches component list is in "single widget mode" or not.
public GPAttitudeSequence(String widgetId,
org.orekit.time.AbsoluteDate externalDate,
boolean switchListSingleMode)
widgetId - widget identifier, if null an identifier will be automatically created.externalDate - date to be initially set as reference date.switchListSingleMode - flag to determine if the switches component list is in "single widget mode" or not.| Method Detail |
|---|
public GPDualAbsoluteDate getGPDualAbsoluteDate()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelAttitudeLaws()
public fr.cnes.genius.lowLevel.GButton getGButtonSelectLaws()
public fr.cnes.genius.lowLevel.GStandardPanelDialog getGDialogAttitudeLaws()
public fr.cnes.genius.highLevel.GComponentList getGComponentListAttitudeLaws()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelSwitches()
public fr.cnes.genius.highLevel.GComponentList getGComponentListSwitches()
public void setConstraint(int widgetGap)
widgetGap - left gap from panel border to display the label of the widget.
public void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GPanelfr.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.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void setEnabled(boolean flag)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponent
public void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
before in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic void setReferenceDate(org.orekit.time.AbsoluteDate date)
date - the reference datepublic void setExternalDate(org.orekit.time.AbsoluteDate externalDate)
externalDate - date to be set.public void updateExternalDate(org.orekit.time.AbsoluteDate externalDate)
externalDate - the new external datepublic ArrayList<GPAttitudeLawSelector> getAttLawsList()
public ArrayList<GPAttitudeSequence.GPAttitudeSequenceSwitch> getSwitchList()
public org.orekit.attitudes.AttitudesSequence getPatriusObject(Object... args)
throws fr.cnes.genius.exception.GException
getPatriusObject in interface GPPatriusWithObjects<org.orekit.attitudes.AttitudesSequence>args - The parameters are 0: BodyShape.
fr.cnes.genius.exception.GException - if the PATRIUS object cannot be created from the widget data.
public org.orekit.attitudes.AttitudesSequence getPatriusObject()
throws GPAttitudeException
getPatriusObject in interface GPPatrius<org.orekit.attitudes.AttitudesSequence>GPAttitudeException - in case the law before or after of one of the switches is undefined
public void setEarthShape(org.orekit.bodies.BodyShape earthValues)
throws GPAttitudeException
earthValues - Earth Shape to be set.
GPAttitudeException - In case of problems settings Earth Shape to event Selector or if the Earth shape is not an
instance of an ExtendedOneAxisEllipsoidpublic org.orekit.bodies.BodyShape getEarthShape()
public void setBodyShapeWidgetsVisible(boolean b)
b - if true the widget will be visible, if false it will not.
public void setPropagationFrame(org.orekit.frames.Frame propagationFrame)
throws GPAttitudeException
propagationFrame - frame to be set as pseudoinertial frame in the LOF attitude law (only
GPAttitudeException - In case the of invalid frame.public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GExceptionprotected void updateStatus()
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
public void setMinMaxLawsNumber(Integer minLawNumber,
Integer maxLawNumber)
minLawNumber - minimum number of attitude laws, if null do not change the current value.maxLawNumber - maximum number of attitude laws, if null do not change the current value, if -1 do limit the
maximum number of attitude laws.public void setCurrentLawsNumber(int currentLawsNumber)
currentLawsNumber - current number of items in the attitude laws list, if the value is not contained in
minLawNumber <= currentLawsNumber <= maxLawNumber, nothing is done.
public void setMinMaxSwitchesNumber(Integer minSwitchesNumber,
Integer maxSwitchesNumber)
minSwitchesNumber - minimum number of attitude switches, if null do not change the current value.maxSwitchesNumber - maximum number of attitude switches, if null do not change the current value, if -1 do limit
the maximum number of attitude switches.public void setCurrentSwitchesNumber(int currentSwitchesNumber)
currentSwitchesNumber - current number of items in the attitude switches list, if the value is not contained in
minSwitchesNumber <= currentSwitchesNumber <= maxSwitchesNumber, nothing is done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||