|
||||||||||
| 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.GContainer
fr.cnes.genopus.events.GPEventDetectorAbstract
fr.cnes.genopus.events.GPTriggeredEventDetectorAbstract
fr.cnes.genopus.events.GPEclipseDetector
public class GPEclipseDetector
Widget representing an Orekit's EclipseDetector.
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
| 1 | GComboBoxWithLabel | comboBoxAction | 1, 0, 0 =>
"newline , gapleft 30 , split 2" 1, 0, 1 => (null) 1, 1 => (null) |
| 2 | GCheckBox | checkBoxExpertConfig | "newline , gapleft 30 , split 2" |
| 3 | GEntryReal | entryRealMaxCheck | 3, 0, 0 => "newline , gapleft 30 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
| 4 | GEntryReal | entryRealThreshold | 4, 0, 0 =>
"newline , gapleft 30 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
| 5 | GEntryInt | triggerCount | 5, 0, 0 =>
"newline , gapleft 30 , split 2" 5, 0, 1 => (null) 5, 1 => (null) |
| 6 | GChoice | choiceEventType | 6, 0, 0 =>
"newline , gapleft 30 , split 2" 6, 0, 1 => (null) 6, 1 => "split" |
| 7 | GPEntryEarthEqRad | entryEarthEqRad | "newline" (see table below) |
| Index | Class | Item | Constraint |
| 7, 0 | GLabelWithIndicator | label | 7, 0, 0 =>
"newline , gapleft 30 , split 2" 7, 0, 1 => (null) |
| 7, 1 | GRealField | textField | (null) |
| 7, 2 | GPopupList | units | (null) |
| 7, 3 | GConstantSelector | constantSelector | "newline" (see table below) |
| Index | Class | Item | Constraint |
| 7, 3, 0 | GButton | button | "split 2" |
| 7, 3, 1 | GConstantSelelectorDialog | dialog | "newline , pushx , pushy , growx , growy" (see table below) |
| Index | Class | Item | Constraint |
| 7, 3, 1, 0 | GComboBoxWithLabel | combobox | 7, 3, 1, 0, 0, 0 =>
"split 3" 7, 3, 1, 0, 0, 1 => (null) 7, 3, 1, 0, 1 => (null) |
| 7, 3, 1, 1 | GLabel | label | "newline , split 3" |
| 7, 3, 1, 2 | GLabel | valueLabel | (null) |
| 7, 3, 1, 3 | GLabel | unitLabel | (null) |
| 7, 3, 1, 4 | GButton | selectButton | "newline , pushx , pushy" |
| 7, 3, 1, 5 | GButton | cancelButton | (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 |
| Nested classes/interfaces inherited from interface fr.cnes.genopus.main.GPPatriusWithObjects |
|---|
GPPatriusWithObjects.ArgsChecker |
| Field Summary |
|---|
| Fields inherited from class fr.cnes.genopus.events.GPEventDetectorAbstract |
|---|
ACTION, DETECTOR_ERROR |
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPEclipseDetector(String label)
Constructor without default eclipse detector. |
|
GPEclipseDetector(String label,
CustomEclipseDetector eclipseDetector)
Constructor. |
|
GPEclipseDetector(String widgetId,
String label)
Constructor without default eclipse detector. |
|
GPEclipseDetector(String widgetId,
String label,
CustomEclipseDetector eclipseDetector)
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()
|
double |
getBodyEqRad()
Getter for the body's equatorial radius for the event detector. |
fr.cnes.genius.highLevel.GChoice |
getGChoiceEventType()
Getter for the Gchoice defining the type of event, entering or exiting the eclipse. |
GPEntryEarthEqRad |
getGPEntryEarthEqRad()
Getter for the GPEntryEarthEqRad defining the equatorial radius for the Earth (occulting radius for the ecclipse). |
CustomEclipseDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget. |
CustomEventDetector |
getPatriusObject(Object... args)
Returns the PATRIUS object associated to a GENOPUS widget. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
protected GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file. |
boolean |
isModified()
|
boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget. |
void |
setBodyEqRad(Double bodyEqRad)
Setter for the body's equatorial radius for the event detector. |
void |
setBodyEqRadWidgetVisible(boolean b)
Method to force the GPEntryEarthEqRad widget to be visible/invisible. |
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget. |
void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector. |
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets. |
void |
setEnabled(boolean b)
|
void |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector. |
void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector. |
void |
setWidgetId(String widgetId)
|
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
| Methods inherited from class fr.cnes.genopus.events.GPTriggeredEventDetectorAbstract |
|---|
getGEntryIntTriggerCount, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValue |
| Methods inherited from class fr.cnes.genopus.events.GPEventDetectorAbstract |
|---|
attachCopyPasteMenu, blockAction, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, isEnabled, read, setDefaultConstraint, setDisplayAction, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus, 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 |
|---|
public GPEclipseDetector(String label)
label - text to display in the label.
public GPEclipseDetector(String label,
CustomEclipseDetector eclipseDetector)
label - text to display in the label.eclipseDetector - eclipse detector to set.
public GPEclipseDetector(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.
public GPEclipseDetector(String widgetId,
String label,
CustomEclipseDetector eclipseDetector)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.eclipseDetector - eclipse detector to set.| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class GPTriggeredEventDetectorAbstractpublic fr.cnes.genius.highLevel.GChoice getGChoiceEventType()
public GPEntryEarthEqRad getGPEntryEarthEqRad()
public void setBodyEqRadWidgetVisible(boolean b)
b - if true the widget will be visible, if false it will not.public void setBodyEqRad(Double bodyEqRad)
bodyEqRad - the body's equatorial radius for the event detector.public double getBodyEqRad()
public CustomEclipseDetector getPatriusObject()
getPatriusObject in interface GPPatrius<CustomEventDetector>getPatriusObject in class GPEventDetectorAbstract
public CustomEventDetector getPatriusObject(Object... args)
throws fr.cnes.genius.exception.GException
getPatriusObject in interface GPPatriusWithObjects<CustomEventDetector>args - The parameters are 0: ExtendedOneAxisEllipsoid.
fr.cnes.genius.exception.GException - if the PATRIUS object cannot be created from the widget data.
public void setEventDetector(CustomEventDetector eventDetector)
throws GPEventException
setEventDetector in class GPEventDetectorAbstracteventDetector - event detector to set.
GPEventException - if the given event detector is not compatible with the widget. If body shape defined in
given eclipse detector is not a one axis ellipsoid or if ellipsoid's frame is not available
in the frame selector.
public void setDefaultEventDetector(CustomEventDetector defaultEventDetector)
throws GPEventException
setDefaultEventDetector in class GPEventDetectorAbstractdefaultEventDetector - default event detector to set.
GPEventException - If body shape defined in given eclipse detector is not a one axis ellipsoid or if
ellipsoid's frame is not available in the frame selector.
public void setSavedEventDetector(CustomEventDetector savedEventDetector)
throws GPEventException
setSavedEventDetector in class GPEventDetectorAbstractsavedEventDetector - reference event detector to set.
GPEventException - If body shape defined in given eclipse detector is not a one axis ellipsoid or if
ellipsoid's frame is not available in the frame selector.
public void setConstraint(int labelGap,
int subWidgetGap)
setConstraint in class GPTriggeredEventDetectorAbstractlabelGap - left gap from panel border to display the label of the event.subWidgetGap - left gap from panel border to display the sub-widgets of the event.public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll in class GPTriggeredEventDetectorAbstractdisplayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public boolean isNativeEventDetector(CustomEventDetector eventDetector)
isNativeEventDetector in class GPEventDetectorAbstracteventDetector - the event detector to be checked.
public void setEnabled(boolean b)
setEnabled in class GPTriggeredEventDetectorAbstractpublic boolean isModified()
isModified in class GPTriggeredEventDetectorAbstract
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearclear in class GPEventDetectorAbstractfr.cnes.genius.exception.GException
public void generic()
throws fr.cnes.genius.exception.GException
generic in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplaydisplay in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GExceptionpublic 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 GPEventException
after in interface fr.cnes.genius.main.GListenerafter in class GPTriggeredEventDetectorAbstractGPEventExceptionprotected GPItemType getXMLTag()
getXMLTag in class GPEventDetectorAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GComponentExceptionpublic void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfaceupdateCondensedStatus in class GPTriggeredEventDetectorAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||