Class TLcyLspMapComponent
- All Implemented Interfaces:
ILcyGenericMapComponent<ILspView,
,ILspLayer> ILcyLspMapComponent
,ILcdDisposable
,ILcdPropertyChangeSource
,ImageObserver
,MenuContainer
,Serializable
,AutoCloseable
,Accessible
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
.
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface com.luciad.lucy.map.lightspeed.ILcyLspMapComponent
DEFAULT_MAP_TYPE, TOUCH_MAP_TYPE
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorDescriptionTLcyLspMapComponent
(ILcyLucyEnv aLucyEnv) Constructs a newTLcyLspMapComponent
.TLcyLspMapComponent
(ILspView aMainView, ILcyLucyEnv aLucyEnv) Constructs a newTLspMapComponent
for the given view. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getAvailableController
(int aIndex) Returns the Controller at the given index.int
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.Returns the balloon manager of this map component.Returns the container in the center, typically containing the main view.Returns the Component representing this map, e.g.,this
.Returns the container at the east of the main view.Returns the layer control of this map.Returns the layer control component.Returns the main component of a lucy map: the view.Returns the name of the map.Returns the Map Overlay Panel.Returns the menu bar of the map.Returns the menu bar component.Returns the container at the north of the main view.Returns the popup menu of this map component.Returns aTLcyStringProperties
instance associated with the map component.Returns the selected layers.Returns the container at the south of the main view.Returns the statusbar of this map.Returns the status bar component.Returns the toolbar of this map.Returns the tool bar component.getType()
Returns aString
representing the type of the map component.Returns the container at the west of the main view.boolean
Returns true if this map has its own layer control, false otherwise.boolean
Returns true if the layer control is visible, false otherwise.boolean
Returns true if the map has its own menu bar, false otherwise.boolean
Returns true if the menu bar is visible, false otherwise.boolean
Returns true if this map component has a popup menu (getPopupMenu() != null)boolean
Returns true if this map has its own statusbar, false otherwiseboolean
Returns true if the status bar is visible, false otherwise.boolean
Returns true if this map has its own toolbar, false otherwise.boolean
Returns true if the tool bar is visible, false otherwise.void
removeAvailableController
(ILspController aController) Removes the given controller from the list of available controllers.retrieveAvailableController
(int aID) Returns the controller with the given ID, ornull
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 inaSelectedLayers
.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
Sets the type of this map componentvoid
setWestContentPane
(Container aWestContentPane) Sets the west panel of this map component.toString()
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
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
Methods inherited from class java.awt.Container
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
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdDisposable
close
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
TLcyLspMapComponent
Constructs a new
TLcyLspMapComponent
.It is necessary to set at least a view on this map component before using it.
- Parameters:
aLucyEnv
- The Lucy back-end- See Also:
-
TLcyLspMapComponent
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)
.- Parameters:
aMainView
- the view of this map component. Note that the view is not added to the Swing componentaLucyEnv
- The Lucy back-end
-
-
Method Details
-
getComponent
Description copied from interface:ILcyGenericMapComponent
Returns the Component representing this map, e.g.,
this
.- Specified by:
getComponent
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the Component representing this map.
-
dispose
public void dispose()Description copied from interface: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.
- Specified by:
dispose
in interfaceILcdDisposable
- Specified by:
dispose
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer>
-
getAvailableControllerCount
public int getAvailableControllerCount()Returns the number of controllers associated with this map.- Returns:
- the number of controllers associated with this map.
- See Also:
-
getAvailableController
Returns the Controller at the given index.- Parameters:
aIndex
- the index of the controller to retrieve. 0 <= aIndex < getAvailableControllerCount().- Returns:
- the controller at the given index.
- See Also:
-
getAvailableControllerID
public 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.- Parameters:
aIndex
- the index of the controller to retrieve the ID for. 0 <= aIndex < getAvailableControllerCount().- Returns:
- the ID of the controller at the given index, or -1 if no ID was ever registered (see
addAvailableController
). - See Also:
-
addAvailableController
Adds the given controller to the list of available controllers associated with this map. Available means they can be set to the map. No ID is registered for this controller. That meansgetAvailableControllerID
for the index of this controller will return -1.- Parameters:
aController
- the controller to add.- See Also:
-
addAvailableController
Adds the given controller, together with its ID, to the list of available controllers associated with this map. Available means they can be set to the map.- Parameters:
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 inTLcyLspMapComponentFactory
ending inCONTROLLER
, e.g.SELECTION_PAN_CONTROLLER
.- See Also:
-
removeAvailableController
Removes the given controller from the list of available controllers.- Parameters:
aController
- the controller to remove.- See Also:
-
retrieveAvailableController
Returns the controller with the given ID, ornull
if there is no such controller.- Parameters:
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 inTLcyLspMapComponentFactory
ending inCONTROLLER
, e.g.SELECTION_PAN_CONTROLLER
.- Returns:
- the controller for the given ID, or
null
if there is no such controller. - See Also:
-
toString
-
setMainview
Sets the main component of a Lucy map: the view.
This method may only be called once with a non-null view.
- Parameters:
aView
- The main view
-
getMapName
Description copied from interface:ILcyGenericMapComponent
Returns the name of the map. This name can be presented to the user.- Specified by:
getMapName
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the name of the map.
-
setMapName
Description copied from interface:ILcyGenericMapComponent
Sets the name of the map.- Specified by:
setMapName
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Parameters:
aMapName
- the new name of the map.- See Also:
-
setSelectedLayersAsList
Description copied from interface: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 changedIf none of the layers should be selected, this method should be called with an empty list.
- Specified by:
setSelectedLayersAsList
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Parameters:
aSelectedLayers
- the layers to be selected. Must not benull
- See Also:
-
getSelectedLayersAsList
Description copied from interface: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.
- Specified by:
getSelectedLayersAsList
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- a list containing the selected layers, or an empty list when no layers were selected.
- See Also:
-
getMainView
Description copied from interface:ILcyGenericMapComponent
Returns the main component of a lucy map: the view.
- Specified by:
getMainView
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the main view.
-
getNorthPanel
Description copied from interface:ILcyGenericMapComponent
Returns the container at the north of the main view. Can be used to insert custom components to the map.
- Specified by:
getNorthPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the container at the north of the main view.
-
getSouthPanel
Description copied from interface:ILcyGenericMapComponent
Returns the container at the south of the main view. Can be used to insert custom components to the map.
- Specified by:
getSouthPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the container at the south of the main view.
-
getWestPanel
Description copied from interface:ILcyGenericMapComponent
Returns the container at the west of the main view. Can be used to insert custom components to the map.
- Specified by:
getWestPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the container at the west of the main view.
-
getEastPanel
Description copied from interface:ILcyGenericMapComponent
Returns the container at the east of the main view. Can be used to insert custom components to the map.
- Specified by:
getEastPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the container at the east of the main view.
-
isPopupMenuCapable
public boolean isPopupMenuCapable()Description copied from interface:ILcyGenericMapComponent
Returns true if this map component has a popup menu (getPopupMenu() != null)
- Specified by:
isPopupMenuCapable
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if this map component has a popup menu.
-
isMenuBarCapable
public boolean isMenuBarCapable()Description copied from interface:ILcyGenericMapComponent
Returns true if the map has its own menu bar, false otherwise.
- Specified by:
isMenuBarCapable
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if the map has its own menu bar, false otherwise.
- See Also:
-
isToolBarCapable
public boolean isToolBarCapable()Description copied from interface:ILcyGenericMapComponent
Returns true if this map has its own toolbar, false otherwise.
- Specified by:
isToolBarCapable
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if this map has its own toolbar, false otherwise.
- See Also:
-
getToolBar
Description copied from interface:ILcyGenericMapComponent
Returns the toolbar of this map. Only relevant if isToolBarCapable returns true.
- Specified by:
getToolBar
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the toolbar of this map, or
null
if there is no toolbar. - See Also:
-
isLayerControlCapable
public boolean isLayerControlCapable()Description copied from interface:ILcyGenericMapComponent
Returns true if this map has its own layer control, false otherwise.
- Specified by:
isLayerControlCapable
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if this map has its own layer control, false otherwise.
- See Also:
-
getLayerControlComponent
Description copied from interface: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.
- Specified by:
getLayerControlComponent
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the layer control component.
- See Also:
-
getLayerControl
Description copied from interface:ILcyGenericMapComponent
Returns the layer control of this map. Only relevant if isLayerControlCapable returns true.
- Specified by:
getLayerControl
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the layer control of this map.
- See Also:
-
getToolBarComponent
Description copied from interface: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.
- Specified by:
getToolBarComponent
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the tool bar component.
- See Also:
-
setToolBarComponent
Sets the tool bar component.
- Parameters:
aToolBarComponent
- the tool bar component- See Also:
-
getMenuBarComponent
Description copied from interface: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.
- Specified by:
getMenuBarComponent
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the menu bar component.
- See Also:
-
setMenuBarComponent
Sets the menu bar component.
- Parameters:
aMenuBarComponent
- the menu bar component- See Also:
-
setLayerControlComponent
Sets the layer control component.
- Parameters:
aMapLayerControlComponent
- The component- See Also:
-
getStatusBarComponent
Description copied from interface:ILcyGenericMapComponent
Returns the status bar component. This component is used to toggle the visibility of the status bar.
- Specified by:
getStatusBarComponent
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the status bar component.
-
setStatusBarComponent
Sets the status bar component.
- Parameters:
aStatusBarComponent
- The status bar component.
-
setToolBarVisible
public void setToolBarVisible(boolean aToolBarVisible) Sets the tool bar visible or not. Works on the tool bar component.
- Parameters:
aToolBarVisible
- True if the tool bar must be visible, false otherwise.- See Also:
-
isToolBarVisible
public boolean isToolBarVisible()Description copied from interface:ILcyGenericMapComponent
Returns true if the tool bar is visible, false otherwise.
- Specified by:
isToolBarVisible
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if the tool bar is visible, false otherwise.
-
setMenuBarVisible
public void setMenuBarVisible(boolean aMenuBarVisible) Sets the menu bar visible or not. Works on the menu bar component.
- Parameters:
aMenuBarVisible
- True if the menu bar must be visible, false otherwise.- See Also:
-
isMenuBarVisible
public boolean isMenuBarVisible()Description copied from interface:ILcyGenericMapComponent
Returns true if the menu bar is visible, false otherwise.
- Specified by:
isMenuBarVisible
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if the menu bar is visible, false otherwise.
-
setStatusBarVisible
public void setStatusBarVisible(boolean aStatusBarVisible) Sets the status bar visible or not. Works on the status bar component.
- Parameters:
aStatusBarVisible
- True if the status bar must be visible, false otherwise.- See Also:
-
isStatusBarVisible
public boolean isStatusBarVisible()Description copied from interface:ILcyGenericMapComponent
Returns true if the status bar is visible, false otherwise.
- Specified by:
isStatusBarVisible
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if the status bar is visible, false otherwise.
-
setLayerControlVisible
public void setLayerControlVisible(boolean aLayerControlVisible) Sets the layer control visible or not. Works on the layer control component.
- Parameters:
aLayerControlVisible
- True if the layer control must be visible, false otherwise.- See Also:
-
isLayerControlVisible
public boolean isLayerControlVisible()Description copied from interface:ILcyGenericMapComponent
Returns true if the layer control is visible, false otherwise.
- Specified by:
isLayerControlVisible
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if the layer control is visible, false otherwise.
-
isStatusBarCapable
public boolean isStatusBarCapable()Description copied from interface:ILcyGenericMapComponent
Returns true if this map has its own statusbar, false otherwise
- Specified by:
isStatusBarCapable
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- true if this map component has its own status bar, false otherwise.
- See Also:
-
setNorthContentPane
Sets the north panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aNorthContentPane
- the north content pane.
-
setSouthContentPane
Sets the south panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aSouthContentPane
- the south content pane.
-
setWestContentPane
Sets the west panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aWestContentPane
- the west content pane.
-
setEastContentPane
Sets the east panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aEastContentPane
- the east content pane.
-
setCenterContentPane
Sets the center panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aCenterContentPane
- the center content pane.
-
setMapOverlayPanel
Sets the map overlay panel of this map component. Note that the panel is not added to the Swing component hierarchy, this is the responsibility of the user of this method.- Parameters:
aMapOverlayPanel
- the map overlay panel.
-
setMenuBar
Sets the menu bar of this map component. It is not added to the GUI.
The '
aMenuBar
' must be mediated by theTLcyActionBarUtil
with action bar ID "menuBar" and this map as the context, e.g.:TLcyActionBarUtil.mediate( aMenuBar, "menuBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
- Parameters:
aMenuBar
- The menu bar.- See Also:
-
setToolBar
Sets the tool bar of this map component. It is not added to the GUI.
The '
aToolBar
' must be mediated by theTLcyActionBarUtil
with action bar ID "toolBar" and this map as the context, e.g.:TLcyActionBarUtil.mediate( aToolBar, "toolBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
- Parameters:
aToolBar
- The tool bar.- See Also:
-
setLayerControl
Sets the layer control of this map.
- Parameters:
aLayerControl
- The layer control- See Also:
-
getPopupMenu
Description copied from interface:ILcyGenericMapComponent
Returns the popup menu of this map component. Only relevant if isPopupMenuCapable() returns true.
- Specified by:
getPopupMenu
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the popup menu of this map component.
- See Also:
-
setPopupMenu
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 theTLcyActionBarUtil
with action bar ID "popupMenu" and this map as the context, e.g.:TLcyActionBarUtil.mediate( aPopupMenu, "popupMenu", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
- Parameters:
aPopupMenu
- The popup menu.- See Also:
-
getCenterPanel
Description copied from interface:ILcyGenericMapComponent
Returns the container in the center, typically containing the main view. Can be used to insert custom components to the map.
- Specified by:
getCenterPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the container in the center, typically containing the main view.
-
getMapOverlayPanel
Description copied from interface: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.- Specified by:
getMapOverlayPanel
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- A container that usually contains components that are visible over the view.
- See Also:
-
getMenuBar
Description copied from interface:ILcyGenericMapComponent
Returns the menu bar of the map. Only relevant if isMenuBarCapable returns true.
- Specified by:
getMenuBar
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the menu bar of the map or null if there is no menu bar.
- See Also:
-
getStatusBar
Description copied from interface:ILcyGenericMapComponent
Returns the statusbar of this map. Only relevant if isStatusBarCapable returns true.
- Specified by:
getStatusBar
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the statusbar of this map, or
null
if there is no statusbar.
-
setType
Sets the type of this map component- Parameters:
aType
- The type- See Also:
-
getType
Description copied from interface: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.
- Specified by:
getType
in interfaceILcyLspMapComponent
- Returns:
- a
String
representing the type of the map component, nevernull
-
setStatusBar
Sets the statusbar of this map component. It is not added to the GUI.
The '
aStatusBar
' must be mediated by theTLcyActionBarUtil
with action bar ID "statusBar" and this map as the context, e.g.:TLcyActionBarUtil.mediate( aToolBar, "toolBar", this, lucyEnv.getUserInterfaceManager().getActionBarManager() );
- Parameters:
aStatusBar
- the statusbar- See Also:
-
getBalloonManager
Description copied from interface:ILcyGenericMapComponent
Returns the balloon manager of this map component.
- Specified by:
getBalloonManager
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Returns:
- the balloon manager of this map component. Can be
null
- See Also:
-
setBalloonManager
Description copied from interface:ILcyGenericMapComponent
Set the balloon manager of this map component.
The balloon manager allows to display balloons on the map.
- Specified by:
setBalloonManager
in interfaceILcyGenericMapComponent<ILspView,
ILspLayer> - Parameters:
aBalloonManager
- the balloon manager. May benull
.- See Also:
-
getProperties
Description copied from interface:ILcyLspMapComponent
Returns aTLcyStringProperties
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.- Specified by:
getProperties
in interfaceILcyLspMapComponent
- Returns:
- a
TLcyStringProperties
instance associated with this map component, nevernull
-