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.
TLcyLspMapComponents are typically created using a TLcyLspMapComponentFactory.
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested 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_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface com.luciad.lucy.map.lightspeed.ILcyLspMapComponent
DEFAULT_MAP_TYPE, TOUCH_MAP_TYPEFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionTLcyLspMapComponent(ILcyLucyEnv aLucyEnv) Constructs a newTLcyLspMapComponent.TLcyLspMapComponent(ILspView aMainView, ILcyLucyEnv aLucyEnv) Constructs a newTLspMapComponentfor the given view. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAvailableController(ILspController aController) Adds the given controller to the list of available controllers associated with this map.voidaddAvailableController(ILspController aController, int aID) Adds the given controller, together with its ID, to the list of available controllers associated with this map.voiddispose()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.intReturns the number of controllers associated with this map.intgetAvailableControllerID(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 aTLcyStringPropertiesinstance 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 aStringrepresenting the type of the map component.Returns the container at the west of the main view.booleanReturns true if this map has its own layer control, false otherwise.booleanReturns true if the layer control is visible, false otherwise.booleanReturns true if the map has its own menu bar, false otherwise.booleanReturns true if the menu bar is visible, false otherwise.booleanReturns true if this map component has a popup menu (getPopupMenu() != null)booleanReturns true if this map has its own statusbar, false otherwisebooleanReturns true if the status bar is visible, false otherwise.booleanReturns true if this map has its own toolbar, false otherwise.booleanReturns true if the tool bar is visible, false otherwise.voidremoveAvailableController(ILspController aController) Removes the given controller from the list of available controllers.retrieveAvailableController(int aID) Returns the controller with the given ID, ornullif there is no such controller.voidsetBalloonManager(ALcdBalloonManager aBalloonManager) Set the balloon manager of this map component.voidsetCenterContentPane(Container aCenterContentPane) Sets the center panel of this map component.voidsetEastContentPane(Container aEastContentPane) Sets the east panel of this map component.voidsetLayerControl(ILcyMapLayerControl aLayerControl) Sets the layer control of this map.voidsetLayerControlComponent(Component aMapLayerControlComponent) Sets the layer control component.voidsetLayerControlVisible(boolean aLayerControlVisible) Sets the layer control visible or not.voidsetMainview(ILspView aView) Sets the main component of a Lucy map: the view.voidsetMapName(String aMapName) Sets the name of the map.voidsetMapOverlayPanel(Container aMapOverlayPanel) Sets the map overlay panel of this map component.voidsetMenuBar(ILcyMenuBar aMenuBar) Sets the menu bar of this map component.voidsetMenuBarComponent(Component aMenuBarComponent) Sets the menu bar component.voidsetMenuBarVisible(boolean aMenuBarVisible) Sets the menu bar visible or not.voidsetNorthContentPane(Container aNorthContentPane) Sets the north panel of this map component.voidsetPopupMenu(ILcyPopupMenu aPopupMenu) Sets the popup menu of this map component.voidsetSelectedLayersAsList(List<? extends ILspLayer> aSelectedLayers) Sets the selected layers to the layers contained inaSelectedLayers.voidsetSouthContentPane(Container aSouthContentPane) Sets the south panel of this map component.voidsetStatusBar(ILcyToolBar aStatusBar) Sets the statusbar of this map component.voidsetStatusBarComponent(Component aStatusBarComponent) Sets the status bar component.voidsetStatusBarVisible(boolean aStatusBarVisible) Sets the status bar visible or not.voidsetToolBar(ILcyToolBar aToolBar) Sets the tool bar of this map component.voidsetToolBarComponent(Component aToolBarComponent) Sets the tool bar component.voidsetToolBarVisible(boolean aToolBarVisible) Sets the tool bar visible or not.voidSets the type of this map componentvoidsetWestContentPane(Container aWestContentPane) Sets the west panel of this map component.toString()Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdDisposable
closeMethods 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
TLspMapComponentfor 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:ILcyGenericMapComponentReturns the Component representing this map, e.g.,
this.- Specified by:
getComponentin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the Component representing this map.
-
dispose
public void dispose()Description copied from interface:ILcyGenericMapComponentDisposes 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:
disposein interfaceILcdDisposable- Specified by:
disposein 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 meansgetAvailableControllerIDfor 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 inTLcyLspMapComponentFactoryending 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, ornullif 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 inTLcyLspMapComponentFactoryending inCONTROLLER, e.g.SELECTION_PAN_CONTROLLER.- Returns:
- the controller for the given ID, or
nullif 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:ILcyGenericMapComponentReturns the name of the map. This name can be presented to the user.- Specified by:
getMapNamein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the name of the map.
-
setMapName
Description copied from interface:ILcyGenericMapComponentSets the name of the map.- Specified by:
setMapNamein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Parameters:
aMapName- the new name of the map.- See Also:
-
setSelectedLayersAsList
Description copied from interface:ILcyGenericMapComponentSets 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:
setSelectedLayersAsListin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Parameters:
aSelectedLayers- the layers to be selected. Must not benull- See Also:
-
getSelectedLayersAsList
Description copied from interface:ILcyGenericMapComponentReturns 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:
getSelectedLayersAsListin 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:ILcyGenericMapComponentReturns the main component of a lucy map: the view.
- Specified by:
getMainViewin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the main view.
-
getNorthPanel
Description copied from interface:ILcyGenericMapComponentReturns the container at the north of the main view. Can be used to insert custom components to the map.
- Specified by:
getNorthPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the container at the north of the main view.
-
getSouthPanel
Description copied from interface:ILcyGenericMapComponentReturns the container at the south of the main view. Can be used to insert custom components to the map.
- Specified by:
getSouthPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the container at the south of the main view.
-
getWestPanel
Description copied from interface:ILcyGenericMapComponentReturns the container at the west of the main view. Can be used to insert custom components to the map.
- Specified by:
getWestPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the container at the west of the main view.
-
getEastPanel
Description copied from interface:ILcyGenericMapComponentReturns the container at the east of the main view. Can be used to insert custom components to the map.
- Specified by:
getEastPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the container at the east of the main view.
-
isPopupMenuCapable
public boolean isPopupMenuCapable()Description copied from interface:ILcyGenericMapComponentReturns true if this map component has a popup menu (getPopupMenu() != null)
- Specified by:
isPopupMenuCapablein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- true if this map component has a popup menu.
-
isMenuBarCapable
public boolean isMenuBarCapable()Description copied from interface:ILcyGenericMapComponentReturns true if the map has its own menu bar, false otherwise.
- Specified by:
isMenuBarCapablein 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:ILcyGenericMapComponentReturns true if this map has its own toolbar, false otherwise.
- Specified by:
isToolBarCapablein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- true if this map has its own toolbar, false otherwise.
- See Also:
-
getToolBar
Description copied from interface:ILcyGenericMapComponentReturns the toolbar of this map. Only relevant if isToolBarCapable returns true.
- Specified by:
getToolBarin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the toolbar of this map, or
nullif there is no toolbar. - See Also:
-
isLayerControlCapable
public boolean isLayerControlCapable()Description copied from interface:ILcyGenericMapComponentReturns true if this map has its own layer control, false otherwise.
- Specified by:
isLayerControlCapablein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- true if this map has its own layer control, false otherwise.
- See Also:
-
getLayerControlComponent
Description copied from interface:ILcyGenericMapComponentReturns 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:
getLayerControlComponentin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the layer control component.
- See Also:
-
getLayerControl
Description copied from interface:ILcyGenericMapComponentReturns the layer control of this map. Only relevant if isLayerControlCapable returns true.
- Specified by:
getLayerControlin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the layer control of this map.
- See Also:
-
getToolBarComponent
Description copied from interface:ILcyGenericMapComponentReturns 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:
getToolBarComponentin 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:ILcyGenericMapComponentReturns 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:
getMenuBarComponentin 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:ILcyGenericMapComponentReturns the status bar component. This component is used to toggle the visibility of the status bar.
- Specified by:
getStatusBarComponentin 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:ILcyGenericMapComponentReturns true if the tool bar is visible, false otherwise.
- Specified by:
isToolBarVisiblein 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:ILcyGenericMapComponentReturns true if the menu bar is visible, false otherwise.
- Specified by:
isMenuBarVisiblein 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:ILcyGenericMapComponentReturns true if the status bar is visible, false otherwise.
- Specified by:
isStatusBarVisiblein 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:ILcyGenericMapComponentReturns true if the layer control is visible, false otherwise.
- Specified by:
isLayerControlVisiblein interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- true if the layer control is visible, false otherwise.
-
isStatusBarCapable
public boolean isStatusBarCapable()Description copied from interface:ILcyGenericMapComponentReturns true if this map has its own statusbar, false otherwise
- Specified by:
isStatusBarCapablein 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 theTLcyActionBarUtilwith 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 theTLcyActionBarUtilwith 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:ILcyGenericMapComponentReturns the popup menu of this map component. Only relevant if isPopupMenuCapable() returns true.
- Specified by:
getPopupMenuin 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 theTLcyActionBarUtilwith 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:ILcyGenericMapComponentReturns the container in the center, typically containing the main view. Can be used to insert custom components to the map.
- Specified by:
getCenterPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the container in the center, typically containing the main view.
-
getMapOverlayPanel
Description copied from interface:ILcyGenericMapComponentReturns 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:
getMapOverlayPanelin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- A container that usually contains components that are visible over the view.
- See Also:
-
getMenuBar
Description copied from interface:ILcyGenericMapComponentReturns the menu bar of the map. Only relevant if isMenuBarCapable returns true.
- Specified by:
getMenuBarin 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:ILcyGenericMapComponentReturns the statusbar of this map. Only relevant if isStatusBarCapable returns true.
- Specified by:
getStatusBarin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the statusbar of this map, or
nullif there is no statusbar.
-
setType
Sets the type of this map component- Parameters:
aType- The type- See Also:
-
getType
Description copied from interface:ILcyLspMapComponentReturns a
Stringrepresenting 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:
getTypein interfaceILcyLspMapComponent- Returns:
- a
Stringrepresenting 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 theTLcyActionBarUtilwith 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:ILcyGenericMapComponentReturns the balloon manager of this map component.
- Specified by:
getBalloonManagerin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Returns:
- the balloon manager of this map component. Can be
null - See Also:
-
setBalloonManager
Description copied from interface:ILcyGenericMapComponentSet the balloon manager of this map component.
The balloon manager allows to display balloons on the map.
- Specified by:
setBalloonManagerin interfaceILcyGenericMapComponent<ILspView,ILspLayer> - Parameters:
aBalloonManager- the balloon manager. May benull.- See Also:
-
getProperties
Description copied from interface:ILcyLspMapComponentReturns aTLcyStringPropertiesinstance 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:
getPropertiesin interfaceILcyLspMapComponent- Returns:
- a
TLcyStringPropertiesinstance associated with this map component, nevernull
-