|
||||||||||
| 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.vehicle.GPVehicleShape
public class GPVehicleShape
Widget representing a vehicle surface model.
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
| 1 | GChoice | shapeChoice | 1, 0, 0 =>
"newline , gapleft 20 , split 2" 1, 0, 1 => (null) 1, 1 => "split" |
| 2 | GChoice | shapeDefChoice | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) 2, 1 => "split" |
| 3 | GEntryReal | sphRadEntryReal | 3, 0, 0 =>
"newline , gapleft 40 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
| 4 | GEntryReal | sphSurfEntryReal | 4, 0, 0 =>
"newline , gapleft 40 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
| 5 | GEntryReal | parallLengthEntryReal | 5, 0, 0 =>
"newline , gapleft 40 , split 2" 5, 0, 1 => (null) 5, 1 => "split 2" 5, 2 => (null) |
| 6 | GEntryReal | parallWidthEntryReal | 6, 0, 0 =>
"newline , gapleft 40 , split 2" 6, 0, 1 => (null) 6, 1 => "split 2" 6, 2 => (null) |
| 7 | GEntryReal | parallHeightEntryReal | 7, 0, 0 =>
"newline , gapleft 40 , split 2" 7, 0, 1 => (null) 7, 1 => "split 2" 7, 2 => (null) |
| 8 | GEntryReal | parallXSurfEntryReal | 8, 0, 0 =>
"newline , gapleft 40 , split 2" 8, 0, 1 => (null) 8, 1 => "split 2" 8, 2 => (null) |
| 9 | GEntryReal | parallYSurfEntryReal | 9, 0, 0 =>
"newline , gapleft 40 , split 2" 9, 0, 1 => (null) 9, 1 => "split 2" 9, 2 => (null) |
| 10 | GEntryReal | parallZSurfEntryReal | 10, 0, 0 =>
"newline , gapleft 40 , split 2" 10, 0, 1 => (null) 10, 1 => "split 2" 10, 2 => (null) |
| 11 | GEntryReal | cylRadEntryReal | 11, 0, 0 =>
"newline , gapleft 40 , split 2" 11, 0, 1 => (null) 11, 1 => "split 2" 11, 2 => (null) |
| 12 | GEntryReal | cylLengthEntryReal | 12, 0, 0 =>
"newline , gapleft 40 , split 2" 12, 0, 1 => (null) 12, 1 => "split 2" 12, 2 => (null) |
| 13 | GEntryReal | cylXSurfEntryReal | 13, 0, 0 =>
"newline , gapleft 40 , split 2" 13, 0, 1 => (null) 13, 1 => "split 2" 13, 2 => (null) |
| 14 | GEntryReal | cylTSurfEntryReal | 14, 0, 0 =>
"newline , gapleft 40 , split 2" 14, 0, 1 => (null) 14, 1 => "split 2" 14, 2 => (null) |
| 15 | GCheckBoxWithIndicator | solarPanelsChoice | 15, 0, 0 =>
"newline , gapleft 20 , split 2" 15, 0, 1 => (null) 15, 1 => (null) |
| 16 | GEntryReal | panelXSurfEntryReal | 16, 0, 0 =>
"newline , gapleft 40 , split 2" 16, 0, 1 => (null) 16, 1 => "split 2" 16, 2 => (null) |
| 17 | GEntryReal | panelYSurfEntryReal | 17, 0, 0 =>
"newline , gapleft 40 , split 2" 17, 0, 1 => (null) 17, 1 => "split 2" 17, 2 => (null) |
| 18 | GEntryReal | panelZSurfEntryReal | 18, 0, 0 =>
"newline , gapleft 40 , split 2" 18, 0, 1 => (null) 18, 1 => "split 2" 18, 2 => (null) |
| Nested Class Summary | |
|---|---|
static class |
GPVehicleShape.ShapeTypes
Enum of available shapes: sphere, parallelepiped, cylinder. |
| 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 | |
|---|---|
GPVehicleShape(String label)
Creates a new instance. |
|
GPVehicleShape(String label,
CustomVehicleSurfaceModel vehicleShape)
Creates a new instance. |
|
GPVehicleShape(String widgetId,
String label)
Creates a new instance. |
|
GPVehicleShape(String widgetId,
String label,
CustomVehicleSurfaceModel vehicleShape)
Creates a new instance. |
|
| 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.GCheckBoxWithIndicator |
getGCheckBoxSolarPanels()
Getter for the checkbox to define solar panels. |
fr.cnes.genius.highLevel.GChoice |
getGChoiceShapeDef()
Getter for the choice with the shape definition. |
fr.cnes.genius.highLevel.GChoice |
getGChoiceType()
Getter for the choice with the type of shape. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylLength()
Getter for the entry real to set the cylinder length. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylRad()
Getter for the entry real to set the cylinder radius. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylTSurf()
Getter for the entry real to set the cylinder transversal surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealCylXSurf()
Getter for the entry real to set the cylinder X surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelXSurf()
Getter for the entry real to set the solar panel X surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelYSurf()
Getter for the entry real to set the solar panel Y surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPanelZSurf()
Getter for the entry real to set the solar panel Z surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallHeight()
Getter for the entry real to set the parallelepiped height. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallLength()
Getter for the entry real to set the parallelepiped length. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallWidth()
Getter for the entry real to set the parallelepiped width. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallXSurf()
Getter for the entry real to set the parallelepiped X surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallYSurf()
Getter for the entry real to set the parallelepiped Y surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealParallZSurf()
Getter for the entry real to set the parallelepiped Z surface. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSphRad()
Getter for the entry real to set the sphere radius. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealSphSurf()
Getter for the entry real to set the sphere surface. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the widget. |
CustomVehicleSurfaceModel |
getPatriusObject()
Getter for the vehicle shape. |
GPVehicleShape.ShapeTypes |
getSelectedShape()
Get selected shape as a GPVehicleShape.ShapeTypes enum value. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
boolean |
hasSolarPanels()
Method to check if the vehicle has solar panels defined. |
boolean |
isEnabled()
|
boolean |
isModified()
|
void |
read()
|
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget. |
void |
setDefaultVehicleShape(CustomVehicleSurfaceModel vehicleShape)
Setter for the default CustomVehicleSurfaceModel instance. |
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 |
setSavedVehicleShape(CustomVehicleSurfaceModel vehicleShape)
Setter for the saved CustomVehicleSurfaceModel instance. |
void |
setVehicleShape(CustomVehicleSurfaceModel vehicleShape)
Setter for a CustomVehicleSurfaceModel instance. |
void |
setWidgetId(String widgetId)
|
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
protected void |
updateIsModifiedIndicator()
|
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 |
|---|
public GPVehicleShape(String label)
label - label for the widget.
public GPVehicleShape(String label,
CustomVehicleSurfaceModel vehicleShape)
label - label for the widget.vehicleShape - initial vehicle shape
public GPVehicleShape(String widgetId,
String label)
widgetId - widget identifier, if null an identifier will be automatically createdlabel - label for the widget.
public GPVehicleShape(String widgetId,
String label,
CustomVehicleSurfaceModel vehicleShape)
widgetId - widget identifier, if null an identifier will be automatically createdlabel - label for the widget.vehicleShape - initial vehicle shape| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic void setConstraint(int widgetGap)
widgetGap - left gap from panel border to display the label of the widget.
public void attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GChoice getGChoiceType()
public fr.cnes.genius.highLevel.GChoice getGChoiceShapeDef()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSphRad()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealSphSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallLength()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallWidth()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallHeight()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallYSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealParallZSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylRad()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylLength()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealCylTSurf()
public fr.cnes.genius.highLevel.GCheckBoxWithIndicator getGCheckBoxSolarPanels()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelXSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelYSurf()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPanelZSurf()
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 clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
before in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GException
public void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic GPVehicleShape.ShapeTypes getSelectedShape()
GPVehicleShape.ShapeTypes enum value.
public void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic CustomVehicleSurfaceModel getPatriusObject()
getPatriusObject in interface GPPatrius<CustomVehicleSurfaceModel>
public void setVehicleShape(CustomVehicleSurfaceModel vehicleShape)
throws GPVehicleException
CustomVehicleSurfaceModel instance.
vehicleShape - the vehicle shape
GPVehicleException - if the main body shape is not supported
public void setDefaultVehicleShape(CustomVehicleSurfaceModel vehicleShape)
throws GPVehicleException
CustomVehicleSurfaceModel instance.
vehicleShape - the vehicle shape
GPVehicleException - if the main body shape is not supported
public void setSavedVehicleShape(CustomVehicleSurfaceModel vehicleShape)
throws GPVehicleException
CustomVehicleSurfaceModel instance.
vehicleShape - the vehicle shape
GPVehicleException - if the main body shape is not supportedpublic boolean hasSolarPanels()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic 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.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic 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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||