public class TLcyLspMapComponent extends JPanel implements ILcyLspMapComponent
Default implementation of ILcyLspMapComponent
.
It provides support for an ILspView
(often in the center), and support for an
optional toolbar, optional menubar, optional status bar and optional layer control. Note
however
that the TLcyLspMapComponent
does not contain anything after it is constructed, it
is up to the user of this class to add these components. Also note that no component is ever
added to the Swing component hierarchy, this is the responsibility of the user of this class.
When for example the north pane is set using setNorthContentPane
, it is not added
to
the user interface.
TLcyLspMapComponent
s are typically created using a TLcyLspMapComponentFactory
.
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_MAP_TYPE, TOUCH_MAP_TYPE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcyLspMapComponent(ILcyLucyEnv aLucyEnv)
Constructs a new
TLcyLspMapComponent . |
TLcyLspMapComponent(ILspView aMainView,
ILcyLucyEnv aLucyEnv)
Constructs a new
TLspMapComponent for the given view. |
Modifier and Type | Method and Description |
---|---|
void |
addAvailableController(ILspController aController)
Adds the given controller to the list of available controllers associated with this map.
|
void |
addAvailableController(ILspController aController,
int aID)
Adds the given controller, together with its ID, to the list of available controllers
associated with this map.
|
void |
dispose()
Disposes of this object and allows it to release any system resources that it is holding.
|
ILspController |
getAvailableController(int aIndex)
Returns the Controller at the given index.
|
int |
getAvailableControllerCount()
Returns the number of controllers associated with this map.
|
int |
getAvailableControllerID(int aIndex)
Returns the ID of the Controller at the given index, or -1 if no ID was ever associated with
the controller at the given index.
|
ALcdBalloonManager |
getBalloonManager()
Returns the balloon manager of this map component.
|
Container |
getCenterPanel()
Returns the container in the center, typically containing the main view.
|
Component |
getComponent()
Returns the Component representing this map, e.g.,
this . |
Container |
getEastPanel()
Returns the container at the east of the main view.
|
ILcyMapLayerControl |
getLayerControl()
Returns the layer control of this map.
|
Component |
getLayerControlComponent()
Returns the layer control component.
|
ILspView |
getMainView()
Returns the main component of a lucy map: the view.
|
String |
getMapName()
Returns the name of the map.
|
Container |
getMapOverlayPanel()
Returns the Map Overlay Panel.
|
ILcyMenuBar |
getMenuBar()
Returns the menu bar of the map.
|
Component |
getMenuBarComponent()
Returns the menu bar component.
|
Container |
getNorthPanel()
Returns the container at the north of the main view.
|
ILcyPopupMenu |
getPopupMenu()
Returns the popup menu of this map component.
|
TLcyStringProperties |
getProperties()
Returns a
TLcyStringProperties instance associated with the map component. |
List<ILspLayer> |
getSelectedLayersAsList()
Returns the selected layers.
|
Container |
getSouthPanel()
Returns the container at the south of the main view.
|
ILcyToolBar |
getStatusBar()
Returns the statusbar of this map.
|
Component |
getStatusBarComponent()
Returns the status bar component.
|
ILcyToolBar |
getToolBar()
Returns the toolbar of this map.
|
Component |
getToolBarComponent()
Returns the tool bar component.
|
String |
getType()
Returns a
String representing the type of the map component. |
Container |
getWestPanel()
Returns the container at the west of the main view.
|
boolean |
isLayerControlCapable()
Returns true if this map has its own layer control, false otherwise.
|
boolean |
isLayerControlVisible()
Returns true if the layer control is visible, false otherwise.
|
boolean |
isMenuBarCapable()
Returns true if the map has its own menu bar, false otherwise.
|
boolean |
isMenuBarVisible()
Returns true if the menu bar is visible, false otherwise.
|
boolean |
isPopupMenuCapable()
Returns true if this map component has a popup menu (getPopupMenu() != null)
|
boolean |
isStatusBarCapable()
Returns true if this map has its own statusbar, false otherwise
|
boolean |
isStatusBarVisible()
Returns true if the status bar is visible, false otherwise.
|
boolean |
isToolBarCapable()
Returns true if this map has its own toolbar, false otherwise.
|
boolean |
isToolBarVisible()
Returns true if the tool bar is visible, false otherwise.
|
void |
removeAvailableController(ILspController aController)
Removes the given controller from the list of available controllers.
|
ILspController |
retrieveAvailableController(int aID)
Returns the controller with the given ID, or
null if there is no such controller. |
void |
setBalloonManager(ALcdBalloonManager aBalloonManager)
Set the balloon manager of this map component.
|
void |
setCenterContentPane(Container aCenterContentPane)
Sets the center panel of this map component.
|
void |
setEastContentPane(Container aEastContentPane)
Sets the east panel of this map component.
|
void |
setLayerControl(ILcyMapLayerControl aLayerControl)
Sets the layer control of this map.
|
void |
setLayerControlComponent(Component aMapLayerControlComponent)
Sets the layer control component.
|
void |
setLayerControlVisible(boolean aLayerControlVisible)
Sets the layer control visible or not.
|
void |
setMainview(ILspView aView)
Sets the main component of a Lucy map: the view.
|
void |
setMapName(String aMapName)
Sets the name of the map.
|
void |
setMapOverlayPanel(Container aMapOverlayPanel)
Sets the map overlay panel of this map component.
|
void |
setMenuBar(ILcyMenuBar aMenuBar)
Sets the menu bar of this map component.
|
void |
setMenuBarComponent(Component aMenuBarComponent)
Sets the menu bar component.
|
void |
setMenuBarVisible(boolean aMenuBarVisible)
Sets the menu bar visible or not.
|
void |
setNorthContentPane(Container aNorthContentPane)
Sets the north panel of this map component.
|
void |
setPopupMenu(ILcyPopupMenu aPopupMenu)
Sets the popup menu of this map component.
|
void |
setSelectedLayersAsList(List<? extends ILspLayer> aSelectedLayers)
Sets the selected layers to the layers contained in
aSelectedLayers . |
void |
setSouthContentPane(Container aSouthContentPane)
Sets the south panel of this map component.
|
void |
setStatusBar(ILcyToolBar aStatusBar)
Sets the statusbar of this map component.
|
void |
setStatusBarComponent(Component aStatusBarComponent)
Sets the status bar component.
|
void |
setStatusBarVisible(boolean aStatusBarVisible)
Sets the status bar visible or not.
|
void |
setToolBar(ILcyToolBar aToolBar)
Sets the tool bar of this map component.
|
void |
setToolBarComponent(Component aToolBarComponent)
Sets the tool bar component.
|
void |
setToolBarVisible(boolean aToolBarVisible)
Sets the tool bar visible or not.
|
void |
setType(String aType)
Sets the type of this map component
|
void |
setWestContentPane(Container aWestContentPane)
Sets the west panel of this map component.
|
String |
toString() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
addPropertyChangeListener, removePropertyChangeListener
public TLcyLspMapComponent(ILcyLucyEnv aLucyEnv)
Constructs a new TLcyLspMapComponent
.
It is necessary to set at least a view on this map component before using it.
aLucyEnv
- The Lucy back-endsetMainview(com.luciad.view.lightspeed.ILspView)
public TLcyLspMapComponent(ILspView aMainView, ILcyLucyEnv aLucyEnv)
Constructs a new TLspMapComponent
for the given view.
After calling this constructor with a non-null view, it is not allowed to call setMainview(com.luciad.view.lightspeed.ILspView)
.
aMainView
- the view of this map component. Note that the view is not added to the Swing
componentaLucyEnv
- The Lucy back-endpublic Component getComponent()
ILcyGenericMapComponent
Returns the Component representing this map, e.g., this
.
getComponent
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void dispose()
ILcyGenericMapComponent
Disposes of this object and allows it to release any system resources that it is holding.
The result of calling any other method (other than finalize
) on this object subsequent to a call to
this method is undefined.
Allows this map component to perform clean up tasks. The map component cannot be used after this method has been invoked.
dispose
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
dispose
in interface ILcdDisposable
public int getAvailableControllerCount()
getAvailableController(int)
public ILspController getAvailableController(int aIndex)
aIndex
- the index of the controller to retrieve. 0 <= aIndex <
getAvailableControllerCount().getAvailableControllerCount()
public int getAvailableControllerID(int aIndex)
aIndex
- the index of the controller to retrieve the ID for. 0 <= aIndex <
getAvailableControllerCount().addAvailableController
).getAvailableControllerCount()
public void addAvailableController(ILspController aController)
getAvailableControllerID
for the index of this controller will return -1.aController
- the controller to add.removeAvailableController(com.luciad.view.lightspeed.controller.ILspController)
,
getAvailableControllerCount()
,
getAvailableController(int)
public void addAvailableController(ILspController aController, int aID)
aController
- the controller to add.aID
- the ID for the controller. The ID can be useful to retrieve a controller
for a given ID. ID's are positive integers, and must be unique. Customers
should use ID's greater than or equal to 100000. Controllers provided by
Lucy will use ID's less than 100000. Typical ID's are the ID's specified
in
TLcyLspMapComponentFactory
ending in CONTROLLER
,
e.g. SELECTION_PAN_CONTROLLER
.removeAvailableController(com.luciad.view.lightspeed.controller.ILspController)
,
getAvailableControllerCount()
,
getAvailableController(int)
,
getAvailableControllerID(int)
,
retrieveAvailableController(int)
public void removeAvailableController(ILspController aController)
aController
- the controller to remove.addAvailableController(com.luciad.view.lightspeed.controller.ILspController)
public ILspController retrieveAvailableController(int aID)
null
if there is no such controller.aID
- the ID of the controller to retrieve. This is the ID that was used when adding the
controller. Typical ID's are the ID's specified in TLcyLspMapComponentFactory
ending in CONTROLLER
, e.g. SELECTION_PAN_CONTROLLER
.null
if there is no such controller.getAvailableControllerCount()
,
addAvailableController(ILspController, int)
public void setMainview(ILspView aView)
Sets the main component of a Lucy map: the view.
This method may only be called once with a non-null view.
aView
- The main viewpublic String getMapName()
ILcyGenericMapComponent
getMapName
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void setMapName(String aMapName)
ILcyGenericMapComponent
setMapName
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
aMapName
- the new name of the map.ILcyGenericMapComponent.getMapName()
public void setSelectedLayersAsList(List<? extends ILspLayer> aSelectedLayers)
ILcyGenericMapComponent
Sets the selected layers to the layers contained in aSelectedLayers
. Note that
all these layers must be part of the view. A property change event will be fired when the
selection has changed
If none of the layers should be selected, this method should be called with an empty list.
setSelectedLayersAsList
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
aSelectedLayers
- the layers to be selected. Must not be null
ILcyGenericMapComponent.getSelectedLayersAsList()
public List<ILspLayer> getSelectedLayersAsList()
ILcyGenericMapComponent
Returns the selected layers. These are the layers that the user has selected in the user
interface, or the layers that has been set by calling setSelectedLayersAsList
. All these layers are part of the view.
A property change event will be fired when the selection has changed.
getSelectedLayersAsList
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.setSelectedLayersAsList(java.util.List)
public ILspView getMainView()
ILcyGenericMapComponent
Returns the main component of a lucy map: the view.
getMainView
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public Container getNorthPanel()
ILcyGenericMapComponent
Returns the container at the north of the main view. Can be used to insert custom components to the map.
getNorthPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public Container getSouthPanel()
ILcyGenericMapComponent
Returns the container at the south of the main view. Can be used to insert custom components to the map.
getSouthPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public Container getWestPanel()
ILcyGenericMapComponent
Returns the container at the west of the main view. Can be used to insert custom components to the map.
getWestPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public Container getEastPanel()
ILcyGenericMapComponent
Returns the container at the east of the main view. Can be used to insert custom components to the map.
getEastPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public boolean isPopupMenuCapable()
ILcyGenericMapComponent
Returns true if this map component has a popup menu (getPopupMenu() != null)
isPopupMenuCapable
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public boolean isMenuBarCapable()
ILcyGenericMapComponent
Returns true if the map has its own menu bar, false otherwise.
isMenuBarCapable
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getMenuBar()
public boolean isToolBarCapable()
ILcyGenericMapComponent
Returns true if this map has its own toolbar, false otherwise.
isToolBarCapable
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getToolBar()
public ILcyToolBar getToolBar()
ILcyGenericMapComponent
Returns the toolbar of this map. Only relevant if isToolBarCapable returns true.
getToolBar
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
null
if there is no toolbar.ILcyGenericMapComponent.isToolBarCapable()
public boolean isLayerControlCapable()
ILcyGenericMapComponent
Returns true if this map has its own layer control, false otherwise.
isLayerControlCapable
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getLayerControl()
public Component getLayerControlComponent()
ILcyGenericMapComponent
Returns the layer control component. Note that it can be different from getLayerControl(), possibly to add some decoration. This component is used to toggle the visibility of the layercontrol.
getLayerControlComponent
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getLayerControl()
public ILcyMapLayerControl getLayerControl()
ILcyGenericMapComponent
Returns the layer control of this map. Only relevant if isLayerControlCapable returns true.
getLayerControl
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.isLayerControlCapable()
public Component getToolBarComponent()
ILcyGenericMapComponent
Returns the tool bar component. Note that it can be different from getToolBar(), possibly to add some decoration. This component is used to toggle the visibility of the toolbar.
getToolBarComponent
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getToolBar()
public void setToolBarComponent(Component aToolBarComponent)
Sets the tool bar component.
aToolBarComponent
- the tool bar componentgetToolBarComponent()
public Component getMenuBarComponent()
ILcyGenericMapComponent
Returns the menu bar component. Note that it can be different from getMenuBar(), possibly to add some decoration. This component is used to toggle the visibility of the menu bar.
getMenuBarComponent
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getMenuBar()
public void setMenuBarComponent(Component aMenuBarComponent)
Sets the menu bar component.
aMenuBarComponent
- the menu bar componentgetMenuBarComponent()
public void setLayerControlComponent(Component aMapLayerControlComponent)
Sets the layer control component.
aMapLayerControlComponent
- The componentgetLayerControlComponent()
public Component getStatusBarComponent()
ILcyGenericMapComponent
Returns the status bar component. This component is used to toggle the visibility of the status bar.
getStatusBarComponent
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void setStatusBarComponent(Component aStatusBarComponent)
Sets the status bar component.
aStatusBarComponent
- The status bar component.public void setToolBarVisible(boolean aToolBarVisible)
Sets the tool bar visible or not. Works on the tool bar component.
aToolBarVisible
- True if the tool bar must be visible, false otherwise.isToolBarVisible()
,
getToolBarComponent()
public boolean isToolBarVisible()
ILcyGenericMapComponent
Returns true if the tool bar is visible, false otherwise.
isToolBarVisible
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void setMenuBarVisible(boolean aMenuBarVisible)
Sets the menu bar visible or not. Works on the menu bar component.
aMenuBarVisible
- True if the menu bar must be visible, false otherwise.isMenuBarVisible()
,
getMenuBarComponent()
public boolean isMenuBarVisible()
ILcyGenericMapComponent
Returns true if the menu bar is visible, false otherwise.
isMenuBarVisible
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void setStatusBarVisible(boolean aStatusBarVisible)
Sets the status bar visible or not. Works on the status bar component.
aStatusBarVisible
- True if the status bar must be visible, false otherwise.isStatusBarVisible()
,
getStatusBarComponent()
public boolean isStatusBarVisible()
ILcyGenericMapComponent
Returns true if the status bar is visible, false otherwise.
isStatusBarVisible
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public void setLayerControlVisible(boolean aLayerControlVisible)
Sets the layer control visible or not. Works on the layer control component.
aLayerControlVisible
- True if the layer control must be visible, false otherwise.isLayerControlVisible()
,
getLayerControlComponent()
public boolean isLayerControlVisible()
ILcyGenericMapComponent
Returns true if the layer control is visible, false otherwise.
isLayerControlVisible
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public boolean isStatusBarCapable()
ILcyGenericMapComponent
Returns true if this map has its own statusbar, false otherwise
isStatusBarCapable
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.getStatusBar()
public void setNorthContentPane(Container aNorthContentPane)
aNorthContentPane
- the north content pane.public void setSouthContentPane(Container aSouthContentPane)
aSouthContentPane
- the south content pane.public void setWestContentPane(Container aWestContentPane)
aWestContentPane
- the west content pane.public void setEastContentPane(Container aEastContentPane)
aEastContentPane
- the east content pane.public void setCenterContentPane(Container aCenterContentPane)
aCenterContentPane
- the center content pane.public void setMapOverlayPanel(Container aMapOverlayPanel)
aMapOverlayPanel
- the map overlay panel.public void setMenuBar(ILcyMenuBar aMenuBar)
Sets the menu bar of this map component. It is not added to the GUI.
The 'aMenuBar
' must be mediated by the TLcyActionBarUtil
with
action bar ID "menuBar" and this map as the context, e.g.:
TLcyActionBarUtil.mediate( aMenuBar, "menuBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
aMenuBar
- The menu bar.getMenuBar()
public void setToolBar(ILcyToolBar aToolBar)
Sets the tool bar of this map component. It is not added to the GUI.
The 'aToolBar
' must be mediated by the TLcyActionBarUtil
with
action bar ID "toolBar" and this map as the context, e.g.:
TLcyActionBarUtil.mediate( aToolBar, "toolBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
aToolBar
- The tool bar.getToolBar()
public void setLayerControl(ILcyMapLayerControl aLayerControl)
Sets the layer control of this map.
aLayerControl
- The layer controlgetLayerControl()
public ILcyPopupMenu getPopupMenu()
ILcyGenericMapComponent
Returns the popup menu of this map component. Only relevant if isPopupMenuCapable() returns true.
getPopupMenu
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.isPopupMenuCapable()
public void setPopupMenu(ILcyPopupMenu aPopupMenu)
Sets the popup menu of this map component. It is not added to the GUI, nor registered to be shown on mouse click or similar actions.
The 'aPopupMenu
' must be mediated by the TLcyActionBarUtil
with
action bar ID "popupMenu" and this map as the context, e.g.:
TLcyActionBarUtil.mediate( aPopupMenu, "popupMenu", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
aPopupMenu
- The popup menu.getPopupMenu()
public Container getCenterPanel()
ILcyGenericMapComponent
Returns the container in the center, typically containing the main view. Can be used to insert custom components to the map.
getCenterPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
public Container getMapOverlayPanel()
ILcyGenericMapComponent
Returns the Map Overlay Panel.
This panel can be used to add components that have to hover over the view. It uses a
custom layout manager, TLcdOverlayLayout
. For information on how
to add components in specific locations, see the documentation there.
getMapOverlayPanel
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
TLcdOverlayLayout
public ILcyMenuBar getMenuBar()
ILcyGenericMapComponent
Returns the menu bar of the map. Only relevant if isMenuBarCapable returns true.
getMenuBar
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
ILcyGenericMapComponent.isMenuBarCapable()
public ILcyToolBar getStatusBar()
ILcyGenericMapComponent
Returns the statusbar of this map. Only relevant if isStatusBarCapable returns true.
getStatusBar
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
null
if there is no statusbar.public void setType(String aType)
aType
- The typegetType()
public String getType()
ILcyLspMapComponent
Returns a String
representing the type of the map component.
A possible use-case of the type of a map component is to distinguish between the regular/default map components and e.g. "mission-view" map components.
getType
in interface ILcyLspMapComponent
String
representing the type of the map component, never null
public void setStatusBar(ILcyToolBar aStatusBar)
Sets the statusbar of this map component. It is not added to the GUI.
The 'aStatusBar
' must be mediated by the TLcyActionBarUtil
with
action bar ID "statusBar" and this map as the context, e.g.:
TLcyActionBarUtil.mediate( aToolBar, "toolBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
aStatusBar
- the statusbargetStatusBar()
public ALcdBalloonManager getBalloonManager()
ILcyGenericMapComponent
Returns the balloon manager of this map component.
getBalloonManager
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
null
ILcyGenericMapComponent.setBalloonManager(com.luciad.view.swing.ALcdBalloonManager)
public void setBalloonManager(ALcdBalloonManager aBalloonManager)
ILcyGenericMapComponent
Set the balloon manager of this map component.
The balloon manager allows to display balloons on the map.
setBalloonManager
in interface ILcyGenericMapComponent<ILspView,ILspLayer>
aBalloonManager
- the balloon manager. May be null
.ILcyGenericMapComponent.getBalloonManager()
public TLcyStringProperties getProperties()
ILcyLspMapComponent
TLcyStringProperties
instance associated with the map component. This
instance can be used to store extra information about a map component. The key-value pairs are
automatically stored in the workspace, and can as such be used to make custom map properties
persistent.getProperties
in interface ILcyLspMapComponent
TLcyStringProperties
instance associated with this map component, never null