|
||||||||||
| 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
public abstract class GPEventDetectorAbstract
Abstract class defining the default methods to be implemented by any class that want to define an CustomEventDetector widget.
| 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 | |
|---|---|
protected static String |
ACTION
|
protected static String |
DETECTOR_ERROR
|
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPEventDetectorAbstract(String widgetId,
String label)
Constructor. |
|
| Method Summary | |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
|
void |
blockAction(org.orekit.propagation.events.EventDetector.Action selectedAction)
Blocks the action of the event on selectedAction. |
void |
clear()
|
void |
display()
|
void |
generic()
|
fr.cnes.genius.lowLevel.GCheckBox |
getGCheckBoxExpertConfig()
Getter for the GCheckBox to select whether expert configuration has to be shown or not. |
fr.cnes.genius.highLevel.GComboBoxWithLabel |
getGComboBoxAction()
Getter for the GComboBoxWithLabel defining the action to be performed in case of event detection. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealMaxCheck()
Getter for the GEntryReal defining the maximum checking interval (s) for event detection. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealThreshold()
Getter for the GEntryReal defining the convergence threshold (s) for event detection. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget. |
abstract CustomEventDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget. |
protected org.orekit.propagation.events.EventDetector.Action |
getSelectedAction()
Get the selected action in the combobox as a EventDetector.Action enum item. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
protected abstract GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file. |
boolean |
isEnabled()
|
boolean |
isModified()
|
abstract boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget. |
void |
read()
|
protected void |
setAbstractClassDefaultValue(CustomEventDetector customDetector)
Set default values for the abstract class sub-widgets from a given custom detector: - the combo box to set the action. |
protected void |
setAbstractClassSavedValue(CustomEventDetector customDetector)
Set saved values for the abstract class sub-widgets from a given custom detector: - the combo box to set the action. |
protected void |
setAbstractClassValue(CustomEventDetector customDetector)
Set values for the abstract class sub-widgets from a given custom detector: - the combo box to set the action. |
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget. |
protected void |
setDefaultConstraint()
Setter for the default constraint of the date event. |
abstract void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector. |
void |
setDisplayAction(boolean display)
Sets whether the combobox to select the action is to be shown or not. |
void |
setDisplayExpertConfig(boolean display)
Sets whether the expert configuration is to be shown or not. |
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets. |
void |
setEnabled(boolean b)
|
abstract void |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector. |
abstract void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector. |
void |
setWidgetId(String widgetId)
|
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
void |
updateIsModifiedIndicator()
|
void |
updateStatus()
Update the status of the orbital parameters. |
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 |
| Methods inherited from interface fr.cnes.genius.main.GListener |
|---|
before |
| Field Detail |
|---|
protected static final String DETECTOR_ERROR
protected static final String ACTION
| Constructor Detail |
|---|
public GPEventDetectorAbstract(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GComboBoxWithLabel getGComboBoxAction()
public fr.cnes.genius.lowLevel.GCheckBox getGCheckBoxExpertConfig()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealMaxCheck()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealThreshold()
protected org.orekit.propagation.events.EventDetector.Action getSelectedAction()
EventDetector.Action enum item.
public abstract void setEventDetector(CustomEventDetector eventDetector)
throws GPEventException
eventDetector - event detector to set.
GPEventException - if the given event detector is not compatible with the widget.protected void setAbstractClassValue(CustomEventDetector customDetector)
customDetector - the custom detector where to extract the values for the sub-widgets
public abstract void setDefaultEventDetector(CustomEventDetector defaultEventDetector)
throws GPEventException
defaultEventDetector - default event detector to set.
GPEventException - if the given event detector is not compatible with the widget.protected void setAbstractClassDefaultValue(CustomEventDetector customDetector)
customDetector - the custom detector where to extract the values to be set as default ones in the sub-widgets
public abstract void setSavedEventDetector(CustomEventDetector savedEventDetector)
throws GPEventException
savedEventDetector - reference event detector to set.
GPEventException - if the given event detector is not compatible with the widget.protected void setAbstractClassSavedValue(CustomEventDetector customDetector)
customDetector - the custom detector where to extract the values to be set as saved ones in the sub-widgetspublic abstract boolean isNativeEventDetector(CustomEventDetector eventDetector)
eventDetector - the event detector to be checked.
protected void setDefaultConstraint()
public void setConstraint(int labelGap,
int subWidgetGap)
labelGap - 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)
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public void setDisplayAction(boolean display)
display - whether the combobox to select the action is to be shown or not.public void setDisplayExpertConfig(boolean display)
display - whether the expert configuration is to be shown or not.
public void attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponentpublic void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentpublic 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.GContainerfr.cnes.genius.exception.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e)
throws GPEventException
after in interface fr.cnes.genius.main.GListenerGPEventException
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.GExceptionprotected abstract GPItemType getXMLTag()
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.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.GComponentfr.cnes.genius.exception.GComponentException
public abstract CustomEventDetector getPatriusObject()
throws GPEventException
getPatriusObject in interface GPPatrius<CustomEventDetector>GPEventExceptionpublic void updateStatus()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic void blockAction(org.orekit.propagation.events.EventDetector.Action selectedAction)
selectedAction - the blocked action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||