public class TLcyVerticalViewComponentFactory extends ALcyVerticalViewComponentFactory
For an example of how to use these GUI factories, please look at TLcyMapComponentFactory.
TLcyMapComponentFactory
Modifier and Type | Field and Description |
---|---|
static int |
ALTITUDE_RANGE_SLIDER_COMPONENT
Constant for the
createComponent and insertComponent methods that
indicates the altitude range slider component. |
static int |
LEFT_RIGHT_OFFSET_RANGE_SLIDER_COMPONENT
Constant for the
createComponent and insertComponent methods that
indicates the altitude range slider component. |
static int |
SAVE_VERTICAL_VIEW_AS_IMAGE_ACTION
Constant for the
insertAction and createAction methods that
indicates the action to save the vertical view as an image, e.g. jpg or png. |
static int |
VERTICAL_VIEW_CONTROL_BAR_COMPONENT
Constant for the
createComponent and insertComponent methods that
indicates the control bar component. |
fLucyEnv, fVerticalViewAddOn
Constructor and Description |
---|
TLcyVerticalViewComponentFactory()
Creates a new
TLcyVerticalViewComponentFactory . |
TLcyVerticalViewComponentFactory(TLcyVerticalViewAddOn aVerticalViewAddOn,
ILcyLucyEnv aLucyEnv)
Creates a new
TLcyVerticalViewComponentFactory for the
given TLcyVerticalViewAddOn and ILcyLucyEnv . |
Modifier and Type | Method and Description |
---|---|
protected ILcdAction |
createAction(int aID,
Component aVerticalViewPanel)
Creates an action for the given ID.
|
protected Component |
createComponent(int aID,
Container aVerticalViewPanel)
Creates a component for the eventual VV component.
|
Component |
createVerticalViewComponent()
Creates the
Component that contains the vertical view and all controls. |
protected String |
createVerticalViewName(Component aVerticalViewComponent)
Creates a name for the given vertical view.
|
protected TLcdVVJPanel |
createVVJPanel()
Creates the
TLcdVVJPanel , the most important component of
the vertical view. |
protected void |
finalizeCreation(Container aVerticalViewPanel)
Method called to finalize the creation process.
|
protected void |
insertAction(int aID,
ILcdAction aAction,
Component aVerticalViewPanel)
Inserts the action with the given ID in the Lucy user interface, for example in
ILcyLucyEnv.getMainMenuBar() . |
protected void |
insertComponent(int aID,
Component aComponent,
Container aVerticalViewPanelSFCT)
Inserts the given component into the given aPreviewPanelSFCT.
|
protected void |
insertVVJPanel(TLcdVVJPanel aVVJPanel,
Container aVerticalViewPanel)
Inserts the vertical view into the aVerticalViewPanel.
|
protected void |
setVerticalViewName(String aName,
Component aVerticalViewComponent)
Sets the given name as the name of the given vertical view component.
|
getLucyEnv, getVerticalViewAddOn, setLucyEnv, setVerticalViewAddOn
public static final int VERTICAL_VIEW_CONTROL_BAR_COMPONENT
createComponent
and insertComponent
methods that
indicates the control bar component. It is the component that is by default at the top of the
vertical view.public static final int ALTITUDE_RANGE_SLIDER_COMPONENT
createComponent
and insertComponent
methods that
indicates the altitude range slider component. It is the component that is by default at the
right of the vertical view.public static final int LEFT_RIGHT_OFFSET_RANGE_SLIDER_COMPONENT
createComponent
and insertComponent
methods that
indicates the altitude range slider component. It is the component that is by default below
the vertical view.public static final int SAVE_VERTICAL_VIEW_AS_IMAGE_ACTION
insertAction
and createAction
methods that
indicates the action to save the vertical view as an image, e.g. jpg or png.public TLcyVerticalViewComponentFactory()
TLcyVerticalViewComponentFactory
. You will
have to set the TLcyVerticalViewAddOn
and the
ILcyLucyEnv
before using it.public TLcyVerticalViewComponentFactory(TLcyVerticalViewAddOn aVerticalViewAddOn, ILcyLucyEnv aLucyEnv)
TLcyVerticalViewComponentFactory
for the
given TLcyVerticalViewAddOn
and ILcyLucyEnv
.aVerticalViewAddOn
- The vertical view addon to create a panel for.aLucyEnv
- The lucy env.public Component createVerticalViewComponent()
Component
that contains the vertical view and all controls.createVerticalViewComponent
in class ALcyVerticalViewComponentFactory
protected void setVerticalViewName(String aName, Component aVerticalViewComponent)
aName
- The name that is to be set on the vertical view component.aVerticalViewComponent
- The vertical view component under construction.protected String createVerticalViewName(Component aVerticalViewComponent)
aVerticalViewComponent
- The vertical view component under construction.protected void insertAction(int aID, ILcdAction aAction, Component aVerticalViewPanel)
ILcyLucyEnv.getMainMenuBar()
.aID
- The ID of the action. One of the constants of this class ending in ACTION
.aAction
- The action to insert.aVerticalViewPanel
- The vertical view panel that is being created, provided as contextual information.protected ILcdAction createAction(int aID, Component aVerticalViewPanel)
aID
- The ID of the action. One of the constants of this class ending in ACTION
.aVerticalViewPanel
- The vertical view panel that is being created, provided as contextual information.ILcdAction
that is created for the given ID.protected void finalizeCreation(Container aVerticalViewPanel)
aVerticalViewPanel
- The vertical view panel under construction.protected TLcdVVJPanel createVVJPanel()
TLcdVVJPanel
, the most important component of
the vertical view.TLcdVVJPanel
.protected void insertVVJPanel(TLcdVVJPanel aVVJPanel, Container aVerticalViewPanel)
aVVJPanel
- The vertical view to insert.aVerticalViewPanel
- The panel to insert the vertical view into.protected Component createComponent(int aID, Container aVerticalViewPanel)
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.insertComponent(int, java.awt.Component, java.awt.Container)
protected void insertComponent(int aID, Component aComponent, Container aVerticalViewPanelSFCT)
aID
- The id that was used to create the given aComponent.aComponent
- The component to insert.aVerticalViewPanelSFCT
- The panel to insert the component into.createComponent(int, java.awt.Container)