Package com.luciad.lucy.addons.vertical
Class TLcyVerticalViewComponentFactory
java.lang.Object
com.luciad.lucy.addons.vertical.ALcyVerticalViewComponentFactory
com.luciad.lucy.addons.vertical.TLcyVerticalViewComponentFactory
This factory creates the vertical view panel for the vertical view addon.
The panel is created and put together in small steps, so that any of these
steps can be modified without having to rewrite everything.
For an example of how to use these GUI factories, please look at TLcyMapComponentFactory.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant for thecreateComponentandinsertComponentmethods that indicates the altitude range slider component.static final intConstant for thecreateComponentandinsertComponentmethods that indicates the altitude range slider component.static final intConstant for theinsertActionandcreateActionmethods that indicates the action to save the vertical view as an image, e.g. jpg or png.static final intConstant for thecreateComponentandinsertComponentmethods that indicates the control bar component.Fields inherited from class com.luciad.lucy.addons.vertical.ALcyVerticalViewComponentFactory
fLucyEnv, fVerticalViewAddOn -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcyVerticalViewComponentFactory.TLcyVerticalViewComponentFactory(TLcyVerticalViewAddOn aVerticalViewAddOn, ILcyLucyEnv aLucyEnv) Creates a newTLcyVerticalViewComponentFactoryfor the givenTLcyVerticalViewAddOnandILcyLucyEnv. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdActioncreateAction(int aID, Component aVerticalViewPanel) Creates an action for the given ID.protected ComponentcreateComponent(int aID, Container aVerticalViewPanel) Creates a component for the eventual VV component.Creates theComponentthat contains the vertical view and all controls.protected StringcreateVerticalViewName(Component aVerticalViewComponent) Creates a name for the given vertical view.protected TLcdVVJPanelCreates theTLcdVVJPanel, the most important component of the vertical view.protected voidfinalizeCreation(Container aVerticalViewPanel) Method called to finalize the creation process.protected voidinsertAction(int aID, ILcdAction aAction, Component aVerticalViewPanel) Inserts the action with the given ID in the Lucy user interface, for example inILcyLucyEnv.getMainMenuBar().protected voidinsertComponent(int aID, Component aComponent, Container aVerticalViewPanelSFCT) Inserts the given component into the given aPreviewPanelSFCT.protected voidinsertVVJPanel(TLcdVVJPanel aVVJPanel, Container aVerticalViewPanel) Inserts the vertical view into the aVerticalViewPanel.protected voidsetVerticalViewName(String aName, Component aVerticalViewComponent) Sets the given name as the name of the given vertical view component.Methods inherited from class com.luciad.lucy.addons.vertical.ALcyVerticalViewComponentFactory
getLucyEnv, getVerticalViewAddOn, setLucyEnv, setVerticalViewAddOn
-
Field Details
-
VERTICAL_VIEW_CONTROL_BAR_COMPONENT
public static final int VERTICAL_VIEW_CONTROL_BAR_COMPONENTConstant for thecreateComponentandinsertComponentmethods that indicates the control bar component. It is the component that is by default at the top of the vertical view.- See Also:
-
ALTITUDE_RANGE_SLIDER_COMPONENT
public static final int ALTITUDE_RANGE_SLIDER_COMPONENTConstant for thecreateComponentandinsertComponentmethods that indicates the altitude range slider component. It is the component that is by default at the right of the vertical view.- See Also:
-
LEFT_RIGHT_OFFSET_RANGE_SLIDER_COMPONENT
public static final int LEFT_RIGHT_OFFSET_RANGE_SLIDER_COMPONENTConstant for thecreateComponentandinsertComponentmethods that indicates the altitude range slider component. It is the component that is by default below the vertical view.- See Also:
-
SAVE_VERTICAL_VIEW_AS_IMAGE_ACTION
public static final int SAVE_VERTICAL_VIEW_AS_IMAGE_ACTIONConstant for theinsertActionandcreateActionmethods that indicates the action to save the vertical view as an image, e.g. jpg or png.- See Also:
-
-
Constructor Details
-
TLcyVerticalViewComponentFactory
public TLcyVerticalViewComponentFactory()Creates a newTLcyVerticalViewComponentFactory. You will have to set theTLcyVerticalViewAddOnand theILcyLucyEnvbefore using it. -
TLcyVerticalViewComponentFactory
public TLcyVerticalViewComponentFactory(TLcyVerticalViewAddOn aVerticalViewAddOn, ILcyLucyEnv aLucyEnv) Creates a newTLcyVerticalViewComponentFactoryfor the givenTLcyVerticalViewAddOnandILcyLucyEnv.- Parameters:
aVerticalViewAddOn- The vertical view addon to create a panel for.aLucyEnv- The lucy env.
-
-
Method Details
-
createVerticalViewComponent
Creates theComponentthat contains the vertical view and all controls.- Specified by:
createVerticalViewComponentin classALcyVerticalViewComponentFactory- Returns:
- A component with the vertical view.
-
setVerticalViewName
Sets the given name as the name of the given vertical view component.- Parameters:
aName- The name that is to be set on the vertical view component.aVerticalViewComponent- The vertical view component under construction.
-
createVerticalViewName
Creates a name for the given vertical view.- Parameters:
aVerticalViewComponent- The vertical view component under construction.- Returns:
- A name for the vertical view component
-
insertAction
Inserts the action with the given ID in the Lucy user interface, for example inILcyLucyEnv.getMainMenuBar().- Parameters:
aID- The ID of the action. One of the constants of this class ending inACTION.aAction- The action to insert.aVerticalViewPanel- The vertical view panel that is being created, provided as contextual information.
-
createAction
Creates an action for the given ID.- Parameters:
aID- The ID of the action. One of the constants of this class ending inACTION.aVerticalViewPanel- The vertical view panel that is being created, provided as contextual information.- Returns:
- The
ILcdActionthat is created for the given ID.
-
finalizeCreation
Method called to finalize the creation process. Can be used for clean up tasks etc.- Parameters:
aVerticalViewPanel- The vertical view panel under construction.
-
createVVJPanel
Creates theTLcdVVJPanel, the most important component of the vertical view.- Returns:
- the
TLcdVVJPanel.
-
insertVVJPanel
Inserts the vertical view into the aVerticalViewPanel.- Parameters:
aVVJPanel- The vertical view to insert.aVerticalViewPanel- The panel to insert the vertical view into.
-
createComponent
Creates a component for the eventual VV component. Note that the created component must not be inserted into the given aVerticalViewPanel. The inserting is done by insertComponent.- Parameters:
aID- The id that indicates which component to create. One of constants that ends with COMPONENT.aVerticalViewPanel- The vertical view panel this component is created for.- Returns:
- The created component.
- See Also:
-
insertComponent
Inserts the given component into the given aPreviewPanelSFCT.- Parameters:
aID- The id that was used to create the given aComponent.aComponent- The component to insert.aVerticalViewPanelSFCT- The panel to insert the component into.- See Also:
-