fr.cnes.genopus.constantSelectors
Class GPEntryEarthFlat

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genius.highLevel.GEntryNumberAbstract
              extended by fr.cnes.genius.highLevel.GEntryReal
                  extended by fr.cnes.genius.highLevel.GEntryConstant
                      extended by fr.cnes.genopus.constantSelectors.GPEntryEarthFlat
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite

public final class GPEntryEarthFlat
extends fr.cnes.genius.highLevel.GEntryConstant

Class implementing two linked GEntryReals for the Earth flatness and its inverse plus a GPEarthFlatSelector.

Author:
ffsm
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 20 , split 2"
0, 1 => (null)
1GRealFieldtextField(null)
2GConstantSelectorconstantSelector"newline"
(see table below)
3GChoicechoiceFlattening3, 0, 0 => "newline , gapleft 0 , split 2"
3, 0, 1 => (null)
3, 1 => "split"
4GEntryRealentryRealFlatteningInverse4, 0, 0 => "newline , gapleft 20 , split 2"
4, 0, 1 => (null)
4, 1 => "gapleft 74"
5GEntryStringinfFieldDirect5, 0, 0 => "newline , gapleft 20 , split 2"
5, 0, 1 => (null)
5, 1 => (null)
6GEntryStringinfFieldInverse6, 0, 0 => "newline , gapleft 20 , split 2"
6, 0, 1 => (null)
6, 1 => "gapleft 74"

Default Constraint(s) for constantSelector:
IndexClassItemConstraint
2, 0GButtonbutton"split 2"
2, 1GConstantSelelectorDialogdialog"newline , pushx , pushy , growx , growy"
(see table below)

Default Constraint(s) for dialog:
IndexClassItemConstraint
2, 1, 0GComboBoxWithLabelcombobox2, 1, 0, 0, 0 => "split 3"
2, 1, 0, 0, 1 => (null)
2, 1, 0, 1 => (null)
2, 1, 1GLabellabel"newline , split 3"
2, 1, 2GLabelvalueLabel(null)
2, 1, 3GLabelunitLabel(null)
2, 1, 4GButtonselectButton"newline , pushx , pushy"
2, 1, 5GButtoncancelButton(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
GPEntryEarthFlat(String label)
          Constructor.
GPEntryEarthFlat(String widgetId, String label)
          Constructor.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
          
 void clear()
          
 void display()
          
 fr.cnes.genius.highLevel.GChoice getGChoiceFlattening()
          Getter for the GChoice defining the flattening choice (direct or inverse).
 fr.cnes.genius.highLevel.GEntryReal getGEntryRealFlatteningInverse()
          Getter for the GEntryReal defining the flattening inverse of the ellipsoid.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 boolean isEnabled()
          
 void read()
          
 void setConstraint(int widgetGap)
          Setter for the constraints of the widget.
 void setEnabled(boolean b)
          
 void setValue(double earthFlatness)
          Set the value of the Earth's flatness.
 void setWidgetId(String widgetId)
          
 
Methods inherited from class fr.cnes.genius.highLevel.GEntryConstant
getGConstantSelector
 
Methods inherited from class fr.cnes.genius.highLevel.GEntryReal
before, generic, getCurrentUnit, getDefaultValue, getGUnitsPopupList, getNumber, getSavedValue, getValue, isModified, setCurrentFormat, setDefaultValue, setFormatMode, setFracDigits, setSavedValue, setUnit, updateIsModifiedIndicator, updateStatus, write
 
Methods inherited from class fr.cnes.genius.highLevel.GEntryNumberAbstract
addGInterval, attachCopyPasteMenu, getGField, getGInterval, getGLabelWithIndicator, getGTextField, isCopyPasteEvent, removeGInterval, setShortcut, setStringConstraint, setToolTipText, updateGInterval, updateIntervalMessage
 
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, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, 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

GPEntryEarthFlat

public GPEntryEarthFlat(String label)
Constructor. The widget identifier is created automatically.

Parameters:
label - to be shown in the widget

GPEntryEarthFlat

public GPEntryEarthFlat(String widgetId,
                        String label)
Constructor.

Parameters:
widgetId - widget identifier.
label - to be shown in the widget
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class fr.cnes.genius.highLevel.GEntryConstant

getGChoiceFlattening

public fr.cnes.genius.highLevel.GChoice getGChoiceFlattening()
Getter for the GChoice defining the flattening choice (direct or inverse).

Returns:
the GChoice defining the flattening choice.

getGEntryRealFlatteningInverse

public fr.cnes.genius.highLevel.GEntryReal getGEntryRealFlatteningInverse()
Getter for the GEntryReal defining the flattening inverse of the ellipsoid.

Returns:
the GEntryReal defining the flattening inverse of the ellipsoid.

setConstraint

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

Overrides:
setConstraint in class fr.cnes.genius.highLevel.GEntryConstant
Parameters:
widgetGap - left gap from panel border to display the sub-widgets of the widget.

setValue

public void setValue(double earthFlatness)
Set the value of the Earth's flatness.

Overrides:
setValue in class fr.cnes.genius.highLevel.GEntryReal
Parameters:
earthFlatness - to be set.

setEnabled

public void setEnabled(boolean b)

Overrides:
setEnabled in class fr.cnes.genius.highLevel.GEntryConstant

isEnabled

public boolean isEnabled()

Overrides:
isEnabled in class fr.cnes.genius.highLevel.GEntryNumberAbstract

clear

public void clear()
           throws fr.cnes.genius.exception.GException

Specified by:
clear in interface fr.cnes.genius.main.GClear
Overrides:
clear in class fr.cnes.genius.highLevel.GEntryReal
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
Overrides:
display in class fr.cnes.genius.highLevel.GEntryConstant
Throws:
fr.cnes.genius.exception.GException

after

public void after(fr.cnes.genius.main.GEvent e)
           throws fr.cnes.genius.exception.GException

Specified by:
after in interface fr.cnes.genius.main.GListener
Overrides:
after in class fr.cnes.genius.highLevel.GEntryConstant
Throws:
fr.cnes.genius.exception.GException

read

public void read()
          throws fr.cnes.genius.exception.GException

Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Overrides:
read in class fr.cnes.genius.highLevel.GEntryReal
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.highLevel.GEntryConstant
Throws:
fr.cnes.genius.exception.GComponentException


Copyright © 2017. All rights reserved.