public abstract class GPAttitudeLawAbstract extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, GPPatrius<CustomAttitudeLaw>, fr.cnes.genius.main.GCondensedStatusInterface
| Modifier and Type | Class and Description |
|---|---|
static interface |
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
Interface to be implemented by all the types of attitude law requiering the Earth Shape.
|
| Modifier and Type | Field and Description |
|---|---|
protected static fr.cnes.genius.unit.GUnit[] |
ANGLE_UNITS
Angular units.
|
protected static fr.cnes.genius.unit.GUnit[] |
ANGULAR_SPEED_UNITS
Angular speed units.
|
protected static int |
SUB_GAP
Subsequent left gap for subwidgets.
|
| Constructor and Description |
|---|
GPAttitudeLawAbstract(String widgetId,
String label)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
display() |
void |
generic() |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelLawName()
Getter for the label name subwidget.
|
fr.cnes.genius.lowLevel.GSeparator |
getGSeparator1()
Getter for the separator subwidget after the law name label.
|
abstract CustomAttitudeLaw |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isEnabled() |
abstract boolean |
isNativeAttitudeLaw(CustomAttitudeLaw attLaw)
Method to check if an attitude law is an instance of this type.
|
void |
read() |
abstract void |
setAttitudeLaw(CustomAttitudeLaw attitudeLaw)
Setter from a PATRIUS attitude law.
|
protected void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
abstract void |
setDefaultAttitudeLaw(CustomAttitudeLaw defaultAttitudeLaw)
Setter of the default value from a PATRIUS attitude law.
|
protected void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
abstract void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean flag) |
abstract void |
setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw)
Setter of the saved value from a PATRIUS attitude law.
|
void |
setWidgetId(String widgetId) |
protected void |
updateIsModifiedIndicator() |
protected void |
updateStatus()
Update the global status of the widget following the status of its components.
|
void |
write() |
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isModified, 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, writeConfigItemprotected static final int SUB_GAP
protected static final fr.cnes.genius.unit.GUnit[] ANGLE_UNITS
protected static final fr.cnes.genius.unit.GUnit[] ANGULAR_SPEED_UNITS
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.lowLevel.GSeparator getGSeparator1()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelLawName()
protected void setDefaultConstraints()
protected void setConstraint(int widgetGap)
widgetGap - left gap from panel border to display the label of the widget.public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GContainerfr.cnes.genius.exception.GExceptionpublic abstract boolean isNativeAttitudeLaw(CustomAttitudeLaw attLaw)
attLaw - input attitude law.public abstract void setAttitudeLaw(CustomAttitudeLaw attitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
attitudeLaw - to be set in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setDefaultAttitudeLaw(CustomAttitudeLaw defaultAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
defaultAttitudeLaw - to be set as default in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw) throws GPAttitudeException, fr.cnes.genius.exception.GArithmeticException
savedAttitudeLaw - to be set as saved in the widgetGPAttitudeException - if the given attitude law is not compatible with the widget.fr.cnes.genius.exception.GArithmeticException - if attitudeLaw contain NaNs.public abstract void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is never shown, if Automatic the modifiedStatusIndicator is shown as needed.public abstract CustomAttitudeLaw getPatriusObject() throws GPAttitudeException
getPatriusObject in interface GPPatrius<CustomAttitudeLaw>GPAttitudeExceptionpublic 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.GComponentExceptionpublic void setEnabled(boolean flag)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentprotected void updateStatus()
Copyright © 2017. All rights reserved.