|
||||||||||
| 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.attitudes.GPAttitudeLawAbstract
public abstract class GPAttitudeLawAbstract
Abstract class defining the default methods to be implemented by any attitude law class.
| Nested Class Summary | |
|---|---|
static interface |
GPAttitudeLawAbstract.GPAttitudeLawWithEarthShape
Interface to be implemented by all the types of attitude law requiering the Earth Shape. |
| 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 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. |
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPAttitudeLawAbstract(String widgetId,
String label)
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class fr.cnes.genius.lowLevel.GContainer |
|---|
put |
| Methods inherited from class fr.cnes.genius.main.GComponent |
|---|
activateConstraintsByType, attachCopyPasteMenu, 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, 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, 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.GClear |
|---|
clear |
| Methods inherited from interface fr.cnes.genius.main.GCondensedStatusInterface |
|---|
updateCondensedStatus |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public GPAttitudeLawAbstract(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically createdlabel - label for the attitude law contents section.| Method Detail |
|---|
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.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 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
attitudeLaw - to be set in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.
public abstract void setDefaultAttitudeLaw(CustomAttitudeLaw defaultAttitudeLaw)
throws GPAttitudeException
defaultAttitudeLaw - to be set as default in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.
public abstract void setSavedAttitudeLaw(CustomAttitudeLaw savedAttitudeLaw)
throws GPAttitudeException
savedAttitudeLaw - to be set as saved in the widget
GPAttitudeException - if the given attitude law is not compatible with the widget.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>GPAttitudeException
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.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||