fr.cnes.genopus.bodies
Class GPGeodeticPoint

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.bodies.GPGeodeticPoint
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite, GPPatrius<org.orekit.bodies.GeodeticPoint>

public class GPGeodeticPoint
extends fr.cnes.genius.lowLevel.GContainer
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, GPPatrius<org.orekit.bodies.GeodeticPoint>, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface

Widget representing an OREKIT's GeodeticPoint.

Author:
aadt
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => (null)
1GEntryRealentryRealLatitude1, 0, 0 => "newline , gapleft 20 , split 2"
1, 0, 1 => (null)
1, 1 => "split 2"
1, 2 => (null)
2GEntryRealentryRealLongitude2, 0, 0 => "newline , gapleft 20 , split 2"
2, 0, 1 => (null)
2, 1 => "split 2"
2, 2 => (null)
3GEntryRealentryRealAltitude3, 0, 0 => "newline , gapleft 20 , split 2"
3, 0, 1 => (null)
3, 1 => "split 2"
3, 2 => (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
 
Field Summary
 
Fields inherited from class fr.cnes.genius.main.GComponent
NAME_ATTRIBUTE
 
Constructor Summary
GPGeodeticPoint(String label)
          Constructor without geodetic point.
GPGeodeticPoint(String label, boolean withAltitude)
          Constructor without geodetic point.
GPGeodeticPoint(String label, org.orekit.bodies.GeodeticPoint geodeticPoint)
          Constructor.
GPGeodeticPoint(String label, org.orekit.bodies.GeodeticPoint geodeticPoint, boolean withAltitude)
          Constructor.
GPGeodeticPoint(String widgetId, String label)
          Constructor.
GPGeodeticPoint(String widgetId, String label, boolean withAltitude)
          Constructor.
GPGeodeticPoint(String widgetId, String label, org.orekit.bodies.GeodeticPoint geodeticPoint)
          Constructor.
GPGeodeticPoint(String widgetId, String label, org.orekit.bodies.GeodeticPoint geodeticPoint, boolean withAltitude)
          Constructor.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
           
 void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
           
 void before(fr.cnes.genius.main.GEvent e)
           
 void clear()
           
 void display()
           
 void generic()
           
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealAltitude()
          Getter for the GEntryReal defining the altitude of the geodetic point.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealLatitude()
          Getter for the GEntryReal defining the latitude of the geodetic point.
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealLongitude()
          Getter for the GEntryReal defining the longitude of the geodetic point.
 fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
          Getter for the GLabel of the widget.
 org.orekit.bodies.GeodeticPoint getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 boolean isEnabled()
           
 boolean isModified()
           
 void read()
           
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setDefaultGeodeticPoint(org.orekit.bodies.GeodeticPoint defaultGeodeticPoint)
          Setter for the default geodetic point.
 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 setGeodeticPoint(org.orekit.bodies.GeodeticPoint geodeticPoint)
          Setter for the geodetic point.
 void setSavedGeodeticPoint(org.orekit.bodies.GeodeticPoint savedGeodeticPoint)
          Setter for the reference geodetic point.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
protected  void updateIsModifiedIndicator()
           
 void updateStatus()
          Update the status of the widget.
 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
 

Constructor Detail

GPGeodeticPoint

public GPGeodeticPoint(String label,
                       boolean withAltitude)
Constructor without geodetic point. The widgetId will be assigned automatically.

Parameters:
label - text to display in the label.
withAltitude - boolean to specify if the altitude can be explicitly defined (zero otherwise).

GPGeodeticPoint

public GPGeodeticPoint(String label)
Constructor without geodetic point. The widgetId will be assigned automatically. The altitude can be defined explicitly.

Parameters:
label - text to display in the label.

GPGeodeticPoint

public GPGeodeticPoint(String label,
                       org.orekit.bodies.GeodeticPoint geodeticPoint,
                       boolean withAltitude)
Constructor. The widgetId will be assigned automatically.

Parameters:
label - text to display in the label.
geodeticPoint - default geodetic point to set in the widget.
withAltitude - boolean to specify if the altitude can be explicitly defined (zero otherwise).

GPGeodeticPoint

public GPGeodeticPoint(String label,
                       org.orekit.bodies.GeodeticPoint geodeticPoint)
Constructor. The widgetId will be assigned automatically.The altitude can be defined explicitly.

Parameters:
label - text to display in the label.
geodeticPoint - default geodetic point to set in the widget.

GPGeodeticPoint

public GPGeodeticPoint(String widgetId,
                       String label,
                       boolean withAltitude)
Constructor.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.
withAltitude - boolean to specify if the altitude can be explicitly defined (zero otherwise).

GPGeodeticPoint

public GPGeodeticPoint(String widgetId,
                       String label)
Constructor. The altitude can be defined explicitly.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.

GPGeodeticPoint

public GPGeodeticPoint(String widgetId,
                       String label,
                       org.orekit.bodies.GeodeticPoint geodeticPoint,
                       boolean withAltitude)
Constructor.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.
geodeticPoint - default geodetic point to set in the widget.
withAltitude - boolean to specify if the altitude can be explicitly defined (zero otherwise).

GPGeodeticPoint

public GPGeodeticPoint(String widgetId,
                       String label,
                       org.orekit.bodies.GeodeticPoint geodeticPoint)
Constructor. The altitude can be defined explicitly.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.
geodeticPoint - default geodetic point to set in the widget.
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class fr.cnes.genius.main.GComponent

getGLabel

public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
Getter for the GLabel of the widget.

Returns:
the GLabel of the widget

getGEntryRealLatitude

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealLatitude()
Getter for the GEntryReal defining the latitude of the geodetic point.

Returns:
the GEntryReal defining the latitude of the geodetic point.

getGEntryRealLongitude

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealLongitude()
Getter for the GEntryReal defining the longitude of the geodetic point.

Returns:
the GEntryReal defining the longitude of the geodetic point.

getGEntryRealAltitude

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealAltitude()
Getter for the GEntryReal defining the altitude of the geodetic point.

Returns:
the GEntryReal defining the altitude of the geodetic point.

setConstraint

public void setConstraint(int widgetGap)
Setter for the constraints of the widget.

Parameters:
widgetGap - left gap from panel border to display the label of the widget.

getPatriusObject

public org.orekit.bodies.GeodeticPoint getPatriusObject()
Description copied from interface: GPPatrius
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<org.orekit.bodies.GeodeticPoint>
Returns:
the PATRIUS object associated to the widget.

setGeodeticPoint

public void setGeodeticPoint(org.orekit.bodies.GeodeticPoint geodeticPoint)
Setter for the geodetic point.

Parameters:
geodeticPoint - geodetic point to set.

setDefaultGeodeticPoint

public void setDefaultGeodeticPoint(org.orekit.bodies.GeodeticPoint defaultGeodeticPoint)
Setter for the default geodetic point.

Parameters:
defaultGeodeticPoint - default geodetic point to set.

setSavedGeodeticPoint

public void setSavedGeodeticPoint(org.orekit.bodies.GeodeticPoint savedGeodeticPoint)
Setter for the reference geodetic point.

Parameters:
savedGeodeticPoint - reference geodetic point to set.

attachCopyPasteMenu

public void attachCopyPasteMenu(String label,
                                fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
Overrides:
attachCopyPasteMenu in class fr.cnes.genius.main.GComponent

updateStatus

public void updateStatus()
Update the status of the widget.


updateIsModifiedIndicator

protected void updateIsModifiedIndicator()
Overrides:
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponent

isEnabled

public boolean isEnabled()
Overrides:
isEnabled in class fr.cnes.genius.main.GComponent

setEnabled

public void setEnabled(boolean b)
Overrides:
setEnabled in class fr.cnes.genius.main.GComponent

isModified

public boolean isModified()
Overrides:
isModified in class fr.cnes.genius.main.GComponent

generic

public void generic()
             throws fr.cnes.genius.exception.GException
Specified by:
generic in class fr.cnes.genius.lowLevel.GContainer
Throws:
fr.cnes.genius.exception.GException

display

public void display()
             throws fr.cnes.genius.exception.GException
Specified by:
display in interface fr.cnes.genius.main.GDisplay
Throws:
fr.cnes.genius.exception.GException

before

public void before(fr.cnes.genius.main.GEvent e)
Specified by:
before in interface fr.cnes.genius.main.GListener

after

public void after(fr.cnes.genius.main.GEvent e)
           throws fr.cnes.genius.exception.GFileManipulatorException
Specified by:
after in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GFileManipulatorException

read

public void read()
          throws fr.cnes.genius.exception.GException
Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

write

public void write()
           throws fr.cnes.genius.exception.GException
Specified by:
write in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

clear

public void clear()
           throws fr.cnes.genius.exception.GException
Specified by:
clear in interface fr.cnes.genius.main.GClear
Throws:
fr.cnes.genius.exception.GException

getSubComponent

public fr.cnes.genius.main.GComponent getSubComponent(int position)
                                               throws fr.cnes.genius.exception.GComponentException

Overrides:
getSubComponent in class fr.cnes.genius.main.GComponent
Throws:
fr.cnes.genius.exception.GComponentException

updateCondensedStatus

public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)

Specified by:
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface

setDisplayIsModifiedIndicatorAll

public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.

Parameters:
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator is shown as needed.


Copyright © 2017. All rights reserved.