public class TLcyMapComponentFactory extends ALcyMapComponentFactory
For maximum flexibility, this factory was designed to create objects using a create method, and to insert them using an insert or a set method. The toolbar is an example of such a create/set pair of methods: there is a
ILcyToolBar createToolBar( TLcyMapComponent )
method and a
void setToolBar( ILcyToolBar, TLcyMapComponent )
method. The first method serves the purpose of creating the toolbar, the
second method is responsible to put the toolbar into the map component. So if
you don't like the default toolbar, you subclass this factory and you can
create an instance of your preference and return it. Furthermore if you are
not happy with its positioning, you can override setToolBar and add the
toolbar to another part of the gui.The methods createComponent and insertComponent are a nice example of a create/insert method pair. We have
Component createComponent( int aID, TLcyMapComponent aMapComponent )
and
void insertComponent( int aID, Component aComponent, TLcyMapComponent aMapComponentSFCT )
The idea is exactly the same: the create method only instantiates, the insert
method just inserts the object created by the create method into its context.Note however that we also have an ID here. This is because there are different types of components that can be created: the map scale label, the layer control, ... All possible ID's that can be passed to the createComponent method all end with the same suffix "component". The same thing goes for "Action" (createAction, insertAction), "Controller" (createController, insertController), ...
As an example, imagine you want to change the behavior of the edit current projection action. Browsing this class learns there is a EDIT_CURRENT_PROJECTION_ACTION constant. Because it ends with "Action", this constant can only be passed to the createAction method. Therefore we can override the method createAction, check if the ID is EDIT_CURRENT_PROJECTION_ACTION and return a custom action instance. Or use super.createAction and change the icon before returning it. If you want to remove the action completely, you can simply return null.
Modifier and Type | Field and Description |
---|---|
static int |
ALBERS_EQUAL_AREA_CONIC_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for the Albers Equal Area Conic
projection |
static int |
AREA_OF_INTEREST_LAYER
Constant for the area of interest layer.
|
static int |
CASSINI_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for the
Cassini projection |
static int |
CENTER_CONTAINER
Constant for a
Container , typically located at the center. |
static int |
CENTER_SELECTION_ACTION
Constant for an action that centers the map around the selected objects.
|
static int |
CHANGE_BACKGROUND_COLOR_ACTION
Constant for an action to let the user choose a new background color for the map.
|
static int |
CLOSE_MAP_ACTION
Deprecated.
This constant is obsolete.
|
static int |
CONTINUOUS_ZOOM_CONTROLLER
Constant for an
ILcdGXYController to continuously zoom an
ILcdGXYView , by dragging up and down. |
static int |
CONTINUOUS_ZOOM_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the continuous zoom controller on an
ILcdGXYView . |
static String |
CONTROLLER_HELP_ID_PREFIX
Context sensitive help id prefix for controllers.
|
protected static String[] |
CONTROLLER_MENU
The submenus where the controllers will go.
|
static TLcyGroupDescriptor |
CONTROLLERS_GROUP_DESCRIPTOR
The group descriptor used to group the controllers of the view together.
|
static int |
COPY_LAST_CLICKED_COORDINATE_ACTION
Constant for an action that copies the location of the last mouse click to the clip
board in a WGS 84 reference.
|
static int |
COPY_LAYERS_ACTION
The ID for the
createAction(int, TLcyMapComponent)
method representing the action to import layers from another map component. |
static int |
COPY_POINT_COORDINATE_ACTION
Constant for an action that copies the location of the selected point to the clip
board.
|
static int |
DELETE_SELECTION_ACTION
Constant for an action that deletes the selected objects from the
ILcdModel
they are contained in. |
static int |
EAST_CONTAINER
Constant for a
Container , typically located at the east of the map. |
static int |
EDIT_CURRENT_PROJECTION_ACTION
Constant for an action to edit the current properties of the
ILcdXYWorldReference of the
ILcdGXYView . |
static int |
EDIT_MAP_COMPONENT_ACTION
Constant for an action to edit certain properties of the map, such as the name and visibility of toolbar, layer control and
status bar.
|
static int |
ELLIPSOIDAL_EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for the
Ellipsoidal Equidistant Cylindrical projection |
static int |
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
Constant for an active settable to change the current projection of the
ILcdGXYView to equidistant
cylindrical. |
protected static String[] |
FILE_MENU
The file menu.
|
static int |
FIT_SELECTION_ACTION
Constant for an action that fits the map around the selected objects.
|
static int |
FULL_SCREEN_ACTIVE_SETTABLE
Constant for an active settable to set the map full screen.
|
static TLcyGroupDescriptor |
FULL_SCREEN_GROUP_DESCRIPTOR
The group descriptor for the full screen active settable.
|
static int |
GLOBAL_LABEL_DECONFLICTION_ACTIVE_SETTABLE
Constant for an active settable to toggle the global label deconfliction of an
ILcdGXYView . |
static int |
GNOMONIC_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for the
Gnomonic projection |
static int |
GRID_LAYER
Constant for the grid layer.
|
static int |
LAMBERT_AZIMUTHAL_EQUAL_AREA_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for lambert azimuthal equal area projection. |
static int |
LAMBERT_CONFORMAL_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for lambert conformal projection. |
static int |
LAYER_CONTROL_COMPONENT
Constant for a
Component containing a layer control for the map. |
static int |
LOGO_ICON_COMPONENT
Constant for the logo icon component added to the map.
|
static int |
MAGNIFIER_CONTROLLER
Constant for an
ILcdGXYController to magnify a small area of an
ILcdGXYView . |
static int |
MAGNIFIER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the magnifier controller on an
ILcdGXYView . |
static String |
MAP_HELP_ID
The help id for the map.
|
protected static String[] |
MAP_MENU
The map menu.
|
static int |
MAP_SCALE_LABEL_COMPONENT
Constant for a
Component to choose the scale of an
ILcdGXYView . |
static int |
MERCATOR_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for mercator projection. |
static int |
MOUSE_LOCATION_ACTIVE_SETTABLE
Constant for an active settable to toggle the on-map mouse location.
|
static int |
MOUSE_LOCATION_COMPONENT
Constant for a
Component containing the coordinates of the current
mouse location over the view. |
static int |
NAVIGATE_CONTROLLER
Constant for an
ILcdGXYController to navigate an
ILcdGXYView , for example by panning and zooming. |
static int |
NAVIGATION_CONTROL_ACTIVE_SETTABLE
Constant for an active settable to toggle the on-map navigation controls.
|
static int |
NAVIGATION_CONTROL_COMPONENT
Constant for a
Component containing the on map navigation controls
over the view. |
static int |
NORTH_CONTAINER
Constant for a
Container , typically located at the north of the map. |
static int |
OBLIQUE_MERCATOR_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for Oblique Mercator projection |
static int |
OPEN_FILE_ACTION
Constant for an action to load a file from disk using the
ILcdModelDecoder s that
are registered to ILcyLucyEnv . |
static TLcyGroupDescriptor |
OPEN_SAVE_GROUP_DESCRIPTOR
The group descriptor used to group the open/save related actions.
|
static int |
ORTOGRAPHIC_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for orthographic projection. |
static int |
PAN_CONTROLLER
Constant for an
ILcdGXYController to pan an ILcdGXYView . |
static int |
PAN_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the pan controller on an
ILcdGXYView . |
static int |
POLAR_STEREOGRAPHIC_NORTH_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for north polar stereographic
projection. |
static int |
POLAR_STEREOGRAPHIC_SOUTH_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for south polar stereographic
projection. |
static int |
PROJECTION_CHOICE_COMPONENT
Constant for a
Component to choose the projection of an
ILcdGXYView . |
static TLcyGroupDescriptor |
PROJECTION_GROUP_DESCRIPTOR
The group descriptor used to group the active settables that change the projection.
|
protected static String[] |
PROJECTION_MENU
The submenus where the projection active settables will go.
|
static int |
PSEUDO_MERCATOR_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for pseudo mercator
projection |
static int |
RECENTER_CONTROLLER
Constant for an
ILcdGXYController to recenter the projection of an
ILcdGXYView . |
static int |
RECENTER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the recenter controller on an
ILcdGXYView . |
static int |
RULER_CONTROLLER
Constant for an
ILcdGXYController to measure distances on an
ILcdGXYView . |
static int |
RULER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the ruler controller on an
ILcdGXYView . |
static int |
SAVE_AS_FILE_ACTION
Constant for an action to save the
ILcdModel of an ILcdGXYLayer
of choice to a file. |
static int |
SAVE_LAYER_ACTION
Constant for an action to save the style settings of an
ILcdGXYLayer
of choice to a file. |
static int |
SAVE_LAYER_AS_ACTION
Constant for an action to save the style settings of an
ILcdGXYLayer
of choice to a file. |
static int |
SAVE_TO_FILE_ACTION
Constant for an action to save the
ILcdModel of an ILcdGXYLayer
of choice to a file. |
static int |
SAVE_VIEW_AS_IMAGE_ACTION
Constant for an action that will save the main gxy view of the mapcomponent to an image.
|
static int |
SCALE_ICON
Constant for the icon that indicates the map scale.
|
static int |
SELECT_CONTROLLER
Constant for an
ILcdGXYController to select objects on an
ILcdGXYView . |
static int |
SELECT_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the select controller on an
ILcdGXYView . |
static int |
SHOW_SCALE_ICON_ACTIVE_SETTABLE
Constant for an active settable to toggle the visibility of a scale icon on the map.
|
static int |
SIMPLE_RECTANGULAR_PROJECTION_ACTIVE_SETTABLE
Deprecated.
use EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE instead.
|
static int |
SOUTH_CONTAINER
Constant for a
Container , typically located at the south of the map. |
static int |
STATUS_BAR_COMPONENT
Constant for a
Component containing status information about the map. |
static int |
STEREOGRAPHIC_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for stereographic projection. |
static int |
TOUCH_NAVIGATE_CONTROLLER
Constant for an
ILcdGXYController to navigate an
ILcdGXYView using a multitouch device. |
static int |
TOUCH_NAVIGATE_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch navigation controller on an
ILcdGXYView . |
static int |
TOUCH_RULER_CONTROLLER
Constant for an
ILcdGXYController that can be used to measure distances and angles
on an ILcdGXYView using a multitouch device. |
static int |
TOUCH_RULER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch ruler controller on an
ILcdGXYView . |
static int |
TOUCH_SELECT_CONTROLLER
Constant for an
ILcdGXYController to select and edit object on an
ILcdGXYView using a multitouch device. |
static int |
TOUCH_SELECT_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch select controller on an
ILcdGXYView . |
static int |
TRANSVERSE_MERCATOR_PROJECTION_ACTIVE_SETTABLE
Similar to
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE , but for transverse mercator projection. |
static int |
WEST_CONTAINER
Constant for a
Container , typically located at the west of the map. |
static int |
ZOOM_CONTROLLER
Constant for an
ILcdGXYController to zoom an ILcdGXYView . |
static int |
ZOOM_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the zoom controller on an
ILcdGXYView . |
Constructor and Description |
---|
TLcyMapComponentFactory()
Creates a new
TLcyMapComponentFactory . |
TLcyMapComponentFactory(ILcyLucyEnv aLucyEnv)
Creates a new
TLcyMapComponentFactory . |
Modifier and Type | Method and Description |
---|---|
protected String |
addNumberToMapNameIfNeeded(String aMapName,
ILcyMapManager aMapManager)
Utility method to add a number to a given map name if the map name already exists.
|
protected ILcdAction |
createAction(int aID,
TLcyMapComponent aMapComponent)
Creates an action for the given ID.
|
protected ILcyActiveSettable |
createActiveSettable(int aID,
TLcyMapComponent aMapComponent)
Creates an active settable for the given ID.
|
protected ALcdBalloonManager |
createBalloonManager(TLcyMapComponent aMapComponent)
Creates the balloon manager for
aMapComponent . |
protected Component |
createComponent(int aID,
TLcyMapComponent aMapComponent)
Creates a component for the given ID.
|
protected Container |
createContainer(int aID,
TLcyMapComponent aMapComponent)
Creates a container for the given ID.
|
protected TLcyMapComponent |
createEmptyMapComponent()
Creates an empty (uninitialized) map component.
|
protected ILcdGXYController |
createGXYController(int aID,
TLcyMapComponent aMapComponent)
Creates a
ILcdGXYController for the given ID. |
protected ILcyActiveSettable |
createGXYControllerActiveSettable(int aID,
ILcdGXYController aController,
TLcyMapComponent aMapComponent)
Creates an active settable to toggle the given controller.
|
protected ILcdGXYLayer |
createGXYLayer(int aID,
TLcyMapComponent aMapComponent)
Creates a layer for the given ID.
|
protected ILcyGXYLayerOrderManager |
createGXYLayerOrderManager(TLcyMapComponent aMapComponent)
Creates the layer ordering algorithm.
|
protected ILcdGXYView |
createGXYView(TLcyMapComponent aMapComponent)
Creates the main
ILcdGXYView for the given map component. |
protected ILcdIcon |
createIcon(int aID,
TLcyMapComponent aMapComponent)
Creates a icon for the given ID.
|
protected ILcdBounds |
createInitialMapBounds(TLcyMapComponent aMapComponent)
Create the initial bounds for the map in the WGS 84 reference system.
|
ILcyMapComponent |
createMapComponent()
Creates and initializes a new
TLcyMapComponent . |
protected String |
createMapName(TLcyMapComponent aMapComponent)
Creates a map name for the given map.
|
protected ILcyMenuBar |
createMenuBar(TLcyMapComponent aMapComponent)
Creates a menu bar for the given map component.
|
protected ILcyToolBar |
createOnMapActionBar(TLcyMapComponent aMapComponent)
Creates a on map action bar for the given map component.
|
protected ILcyPopupMenu |
createPopupMenu(TLcyMapComponent aMapComponent)
Create a popup menu for the given map component.
|
protected ILcyToolBar |
createRightToolBar(TLcyMapComponent aMapComponent)
Creates a tool bar for the given map component, which will be placed on the north-east side by default.
|
protected ILcdLayerTreeNode |
createRootNode(TLcyMapComponent aMapComponent)
Creates the root node of the
ILcdTreeLayeredSupport created by createTreeLayeredSupport(TLcyMapComponent) . |
protected ILcyToolBar |
createStatusBar(TLcyMapComponent aMapComponent)
Creates a status bar for the given map component.
|
protected ILcyToolBar |
createToolBar(TLcyMapComponent aMapComponent)
Creates a toolbar for the given map component.
|
protected ILcdTreeLayeredSupport |
createTreeLayeredSupport(TLcyMapComponent aMapComponent)
Creates the
ILcdTreeLayeredSupport used to store the layers of the view created
by createGXYView(TLcyMapComponent) . |
protected void |
finalizeCreation(TLcyMapComponent aMapComponent)
Method called to finalize the creation process.
|
String |
getConfigPrefix()
Returns the configuration prefix.
|
String |
getConfigSourceName()
Returns the config source name.
|
ILcyLucyEnv |
getLucyEnv()
Returns the lucy env associated with this factory.
|
ILcyMapLayerControlFactory |
getMapLayerControlFactory()
Returns the set
ILcyMapLayerControlFactory . |
protected void |
insertActionInMenu(int aID,
ILcdAction aAction,
TLcyMapComponent aMapComponentSFCT)
Inserts the given action with the given ID in the menu bar of the given map.
|
protected void |
insertActionInPopupMenu(int aID,
ILcdAction aAction,
TLcyMapComponent aMapComponentSFCT)
Inserts the given action with the given ID in the popup menu of the given map.
|
protected void |
insertActiveSettableInMenu(int aID,
ILcyActiveSettable aActiveSettable,
TLcyMapComponent aMapComponentSFCT)
Inserts the given active settable into the menu bar of the given map component.
|
protected void |
insertActiveSettableInToolBar(int aID,
ILcyActiveSettable aActiveSettable,
TLcyMapComponent aMapComponentSFCT)
Inserts the given active settable into the toolbar of the given map component.
|
protected void |
insertComponent(int aID,
Component aComponent,
TLcyMapComponent aMapComponentSFCT)
Inserts the given component into the given map component.
|
protected void |
insertContainer(int aID,
Container aContainer,
TLcyMapComponent aMapComponentSFCT)
Inserts the given container into the given map component.
|
protected void |
insertGXYController(int aID,
ILcdGXYController aGXYController,
TLcyMapComponent aMapComponentSFCT)
Inserts the given controller into the given map component.
|
protected void |
insertGXYLayer(int aID,
ILcdGXYLayer aGXYLayer,
TLcyMapComponent aMapComponentSFCT)
Inserts the given layer into the given map component.
|
protected void |
insertIcon(int aID,
ILcdIcon aIcon,
TLcyMapComponent aMapComponentSFCT)
Inserts the given icon into the given map component.
|
void |
setConfigPrefix(String aConfigPrefix)
Sets the config prefix used to read properties from the configuration
file.
|
void |
setConfigSourceName(String aConfigSourceName)
Sets the config source name (e.g. a file name).
|
protected void |
setGXYLayerOrderManager(ILcyGXYLayerOrderManager aLayerOrderManager,
TLcyMapComponent aMapComponentSFCT)
Sets the given
ILcyGXYLayerOrderManager to the given TLcyMapComponent . |
protected void |
setGXYView(ILcdGXYView aGXYView,
TLcyMapComponent aMapComponentSFCT)
Sets the given gxy view to the given map component.
|
protected void |
setInitialMapBounds(ILcdBounds aBounds,
TLcyMapComponent aMapComponentSFCT)
Sets the given bounds as the current bounds to the given map component
|
void |
setLucyEnv(ILcyLucyEnv aLucyEnv)
Sets the lucy env associated with this factory.
|
void |
setMapLayerControlFactory(ILcyMapLayerControlFactory aMapLayerControlFactory)
Sets the
ILcyMapLayerControlFactory that is used to create a
layer control for a created map component. |
protected void |
setMapName(String aMapName,
TLcyMapComponent aMapComponent)
Sets the given name as the map name of the given map component.
|
protected void |
setMenuBar(ILcyMenuBar aMenuBar,
TLcyMapComponent aMapComponentSFCT)
Sets the given menu bar to the given map component.
|
protected void |
setPopupMenu(ILcyPopupMenu aPopupMenu,
TLcyMapComponent aMapComponentSFCT)
Sets the given popup menu to the given map component.
|
protected void |
setRightToolBar(ILcyToolBar aRightToolBar,
TLcyMapComponent aMapComponentSFCT)
Sets the given tool bar to the given map component.
|
protected void |
setToolBar(ILcyToolBar aToolBar,
TLcyMapComponent aMapComponentSFCT)
Sets the given toolbar to the given map component.
|
public static final TLcyGroupDescriptor CONTROLLERS_GROUP_DESCRIPTOR
public static final TLcyGroupDescriptor PROJECTION_GROUP_DESCRIPTOR
public static final TLcyGroupDescriptor OPEN_SAVE_GROUP_DESCRIPTOR
public static final TLcyGroupDescriptor FULL_SCREEN_GROUP_DESCRIPTOR
public static final String CONTROLLER_HELP_ID_PREFIX
public static final String MAP_HELP_ID
protected static final String[] FILE_MENU
protected static final String[] MAP_MENU
protected static final String[] CONTROLLER_MENU
protected static final String[] PROJECTION_MENU
@Deprecated public static final int SIMPLE_RECTANGULAR_PROJECTION_ACTIVE_SETTABLE
public static final int EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
Constant for an active settable to change the current projection of the ILcdGXYView
to equidistant
cylindrical.
By default, it is added in the projection combo box.
public static final int ORTOGRAPHIC_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for orthographic projection.public static final int STEREOGRAPHIC_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for stereographic projection.public static final int MERCATOR_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for mercator projection.public static final int TRANSVERSE_MERCATOR_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for transverse mercator projection.public static final int OBLIQUE_MERCATOR_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for Oblique Mercator projectionpublic static final int LAMBERT_CONFORMAL_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for lambert conformal projection.public static final int LAMBERT_AZIMUTHAL_EQUAL_AREA_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for lambert azimuthal equal area projection.public static final int POLAR_STEREOGRAPHIC_NORTH_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for north polar stereographic
projection.public static final int POLAR_STEREOGRAPHIC_SOUTH_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for south polar stereographic
projection.public static final int PSEUDO_MERCATOR_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for pseudo mercator
projectionpublic static final int ALBERS_EQUAL_AREA_CONIC_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for the Albers Equal Area Conic
projectionpublic static final int GNOMONIC_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for the
Gnomonic projectionpublic static final int CASSINI_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for the
Cassini projectionpublic static final int ELLIPSOIDAL_EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
EQUIDISTANT_CYLINDRICAL_PROJECTION_ACTIVE_SETTABLE
, but for the
Ellipsoidal Equidistant Cylindrical projectionpublic static final int FULL_SCREEN_ACTIVE_SETTABLE
Constant for an active settable to set the map full screen.
By default, it is added as the 'Map|Full Screen' menu item.
public static final int EDIT_CURRENT_PROJECTION_ACTION
Constant for an action to edit the current properties of the ILcdXYWorldReference
of the
ILcdGXYView
.
By default, it is added as the 'Map|Projection|Edit Current' menu item.
public static final int EDIT_MAP_COMPONENT_ACTION
Constant for an action to edit certain properties of the map, such as the name and visibility of toolbar, layer control and status bar.
By default, it is added as the 'Edit|Map Properties' menu item.
public static final int CHANGE_BACKGROUND_COLOR_ACTION
Constant for an action to let the user choose a new background color for the map.
By default, it is added as the 'Map|Colors|Background' menu item.
public static final int DELETE_SELECTION_ACTION
Constant for an action that deletes the selected objects from the ILcdModel
they are contained in. The action is enabled if the layer is editable, and if
ILcdModel.canRemoveElement
returns true.
By default, it is added to the right click menu of the select controller.
public static final int CENTER_SELECTION_ACTION
Constant for an action that centers the map around the selected objects.
By default, it is added to the right click menu of the select controller.
public static final int FIT_SELECTION_ACTION
Constant for an action that fits the map around the selected objects.
By default, it is added to the right click menu of the select controller.
public static final int OPEN_FILE_ACTION
Constant for an action to load a file from disk using the ILcdModelDecoder
s that
are registered to ILcyLucyEnv
.
By default, it is added as the 'File|Open' menu item.
TLcyCompositeModelDecoder
,
Constant Field Valuespublic static final int SAVE_TO_FILE_ACTION
Constant for an action to save the ILcdModel
of an ILcdGXYLayer
of choice to a file. It does so by using the ILcdModelEncoder
that is registered to the
ILcdModel
.
By default, it is added as the 'File|Save' menu item.
public static final int SAVE_AS_FILE_ACTION
Constant for an action to save the ILcdModel
of an ILcdGXYLayer
of choice to a file. It does so by using the ILcdModelEncoder
s that are registered to
ILcyLucyEnv
.
By default, it is added as the 'File|Save As...' menu item.
TLcyCompositeModelEncoder
,
Constant Field Valuespublic static final int COPY_LAYERS_ACTION
The ID for the createAction(int, TLcyMapComponent)
method representing the action to import layers from another map component.
This action is inserted using TLcyActionBarUtil.insertInConfiguredActionBars(com.luciad.lucy.gui.ILcyActiveSettable, Object, com.luciad.lucy.gui.TLcyActionBarManager, com.luciad.lucy.util.properties.ALcyProperties)
@Deprecated public static final int CLOSE_MAP_ACTION
public static final int SAVE_LAYER_ACTION
Constant for an action to save the style settings of an ILcdGXYLayer
of choice to a file. It does so by using the ILcdGXYLayerEncoder
s that are registered to
ILcyLucyEnv
.
By default, it is added as the 'File|Save Layer Style' menu item.
public static final int SAVE_LAYER_AS_ACTION
Constant for an action to save the style settings of an ILcdGXYLayer
of choice to a file. It does so by using the ILcdGXYLayerEncoder
s that are registered to
ILcyLucyEnv
.
By default, it is added as the 'File|Save Layer Style As' menu item.
public static final int SAVE_VIEW_AS_IMAGE_ACTION
Constant for an action that will save the main gxy view of the mapcomponent to an image. This image can possibly be georeferenced.
The action created by the default implementation of TLcyMapComponentFactory
will offer the possibility to encode to the non-georeferenced formats JPEG, PNG and GIF,
and will also create an ILcdModel
and retrieve all ILcdModelEncoder
instances that can encode this model. This way these encoders can save the gxy view as a
georeferenced image.
This model will have an TLcdRasterModelDescriptor
as model descriptor and contain
a single ILcdRaster
instance that contains the image of the main gxy view.
Furthermore this action will try to create an ILcyCustomizerPanel
to
display and modify the properties of the ILcdModelEncoder
instances. For this
purpose it will iterate over all registered ILcyCustomizerPanelFactory
instances
registered with Lucy's user
interface manager with a TLcyModelEncoderContext
object.
By default, it is added as the 'File|Save As Image|Map' menu item.
public static final int COPY_POINT_COORDINATE_ACTION
Constant for an action that copies the location of the selected point to the clip
board. The coordinate system (model reference) is the native reference of that point. An
exception is when ILcyLucyEnv.getDefaultModelReference()
returns a
non-null value: the specified reference is than used.
By default, it is added to the right click menu of the select controller.
public static final int COPY_LAST_CLICKED_COORDINATE_ACTION
Constant for an action that copies the location of the last mouse click to the clip
board in a WGS 84 reference. An exception is when
ILcyLucyEnv.getDefaultModelReference()
returns a non-null value: the
specified reference is than used, consistent with how the coordinate read-out on the map
behaves.
When a point is selected, the action disables itself to avoid confusing the user.
Note that when this is the case, COPY_POINT_COORDINATE_ACTION
will be enabled.
By default, it is added to the right click menu of the select controller.
public static final int SELECT_CONTROLLER
Constant for an ILcdGXYController
to select objects on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
TLcdGXYSelectController2
,
Constant Field Valuespublic static final int PAN_CONTROLLER
Constant for an ILcdGXYController
to pan an ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
TLcdGXYPanController
,
Constant Field Valuespublic static final int ZOOM_CONTROLLER
Constant for an ILcdGXYController
to zoom an ILcdGXYView
.
By default, it is not added.
TLcdGXYZoomController
,
Constant Field Valuespublic static final int CONTINUOUS_ZOOM_CONTROLLER
Constant for an ILcdGXYController
to continuously zoom an
ILcdGXYView
, by dragging up and down.
By default, it is added on the map tool bar, and in the menu bar.
public static final int RULER_CONTROLLER
Constant for an ILcdGXYController
to measure distances on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int RECENTER_CONTROLLER
Constant for an ILcdGXYController
to recenter the projection of an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int MAGNIFIER_CONTROLLER
Constant for an ILcdGXYController
to magnify a small area of an
ILcdGXYView
.
By default, it is added in the menu bar.
TLcdGXYMagnifierController
,
Constant Field Valuespublic static final int NAVIGATE_CONTROLLER
Constant for an ILcdGXYController
to navigate an
ILcdGXYView
, for example by panning and zooming.
By default, it responds to mouse wheel rotations for zooming, and mouse wheel drags for panning. It is not added as a separate button, but combined with all other controllers to easily navigate the map whilst for example measuring distances.
public static final int TOUCH_NAVIGATE_CONTROLLER
Constant for an ILcdGXYController
to navigate an
ILcdGXYView
using a multitouch device.
By default it allows panning with one finger and zooming with two.
public static final int TOUCH_SELECT_CONTROLLER
Constant for an ILcdGXYController
to select and edit object on an
ILcdGXYView
using a multitouch device.
public static final int TOUCH_RULER_CONTROLLER
Constant for an ILcdGXYController
that can be used to measure distances and angles
on an ILcdGXYView
using a multitouch device.
public static final int SELECT_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the select controller on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int PAN_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the pan controller on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int ZOOM_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the zoom controller on an
ILcdGXYView
.
By default, it is not added.
public static final int CONTINUOUS_ZOOM_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the continuous zoom controller on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int RULER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the ruler controller on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int RECENTER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the recenter controller on an
ILcdGXYView
.
By default, it is added on the map tool bar, and in the menu bar.
public static final int MAGNIFIER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the magnifier controller on an
ILcdGXYView
.
By default, it is added in the menu bar.
public static final int TOUCH_NAVIGATE_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch navigation controller on an
ILcdGXYView
.
By default, it is added in the menu bar.
public static final int TOUCH_SELECT_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch select controller on an
ILcdGXYView
.
By default, it is not added in the menu bar and the toolbar.
public static final int TOUCH_RULER_CONTROLLER_ACTIVE_SETTABLE
Constant for an active settable to enable the touch ruler controller on an
ILcdGXYView
.
By default, it is not added in the menu bar and the toolbar.
public static final int GLOBAL_LABEL_DECONFLICTION_ACTIVE_SETTABLE
Constant for an active settable to toggle the global label deconfliction of an
ILcdGXYView
.
By default, it is added in the menu bar as 'Map|Global Label Decluttering'.
public static final int SHOW_SCALE_ICON_ACTIVE_SETTABLE
Constant for an active settable to toggle the visibility of a scale icon on the map.
By default, it is added in the menu bar as 'Map|Show Scale'.
SCALE_ICON
,
Constant Field Valuespublic static final int NAVIGATION_CONTROL_ACTIVE_SETTABLE
Constant for an active settable to toggle the on-map navigation controls.
By default, it is added in the menu bar as 'Map|Show Navigation Controls'.
public static final int MOUSE_LOCATION_ACTIVE_SETTABLE
Constant for an active settable to toggle the on-map mouse location.
By default, it is added in the menu bar as 'Map|Show Mouse Location'.
MOUSE_LOCATION_COMPONENT
,
Constant Field Valuespublic static final int PROJECTION_CHOICE_COMPONENT
Constant for a Component
to choose the projection of an
ILcdGXYView
.
By default, it is added as a combo box on the tool bar of the map.
public static final int MAP_SCALE_LABEL_COMPONENT
Constant for a Component
to choose the scale of an
ILcdGXYView
.
By default, it is added as a combo box on the tool bar of the map.
public static final int STATUS_BAR_COMPONENT
Constant for a Component
containing status information about the map.
By default, it contains the mouse location, and is located below the map.
public static final int LAYER_CONTROL_COMPONENT
Constant for a Component
containing a layer control for the map.
By default, it is created by an associated TLcyMapLayerControlFactory
, and
located in a separate ILcyApplicationPane
.
TLcyMapLayerControlFactory
,
Constant Field Valuespublic static final int NAVIGATION_CONTROL_COMPONENT
Constant for a Component
containing the on map navigation controls
over the view.
public static final int MOUSE_LOCATION_COMPONENT
Constant for a Component
containing the coordinates of the current
mouse location over the view.
TLcyMapLayerControlFactory
,
Constant Field Valuespublic static final int LOGO_ICON_COMPONENT
Constant for the logo icon component added to the map.
By default, it is at the lower left of the map.
public static final int NORTH_CONTAINER
Constant for a Container
, typically located at the north of the map.
By default, it contains the tool bar and the right tool bar.
public static final int SOUTH_CONTAINER
Constant for a Container
, typically located at the south of the map.
By default, it contains the status bar.
STATUS_BAR_COMPONENT
,
Constant Field Valuespublic static final int EAST_CONTAINER
Constant for a Container
, typically located at the east of the map.
By default, it contains nothing.
public static final int WEST_CONTAINER
Constant for a Container
, typically located at the west of the map.
By default, it contains nothing.
public static final int CENTER_CONTAINER
Constant for a Container
, typically located at the center.
By default, it contains the main map. It can also contain components that are added over
the main view ( see ILcyGenericMapComponent.getMapOverlayPanel()
) .
public static final int AREA_OF_INTEREST_LAYER
Constant for the area of interest layer. The area of interest is used to let the end-user identify a certain area, for example to load data in that area, etc.
By default, it is a layer of the map.
public static final int GRID_LAYER
Constant for the grid layer.
By default, it is a layer of the map. For instance, this could be a TLcdMapLonLatGridLayer
public static final int SCALE_ICON
Constant for the icon that indicates the map scale.
By default, it is at the lower right of the map.
ILcdIcon
,
Constant Field Valuespublic TLcyMapComponentFactory()
TLcyMapComponentFactory
. Note that you will have to set
a ILcyLucyEnv
before this instance can be used.public TLcyMapComponentFactory(ILcyLucyEnv aLucyEnv)
TLcyMapComponentFactory
.aLucyEnv
- The lucy environment where this map will belong to.public ILcyLucyEnv getLucyEnv()
getLucyEnv
in class ALcyMapComponentFactory
ALcyMapComponentFactory.setLucyEnv(com.luciad.lucy.ILcyLucyEnv)
public void setLucyEnv(ILcyLucyEnv aLucyEnv)
setLucyEnv
in class ALcyMapComponentFactory
aLucyEnv
- The lucy environment to set.ALcyMapComponentFactory.getLucyEnv()
public String getConfigSourceName()
setConfigSourceName(String)
public void setConfigSourceName(String aConfigSourceName)
aConfigSourceName
- The source name of the configuration.public String getConfigPrefix()
setConfigPrefix(String)
public void setConfigPrefix(String aConfigPrefix)
For backward compatibility this prefix is not applied to all properties, only to those properties that start with 'TLcyMapAddon' in 'map_addon.cfg' or 'TLcyMapOverviewAddOn' in 'mapoverview_addon.cfg'.
aConfigPrefix
- The config prefix to set.getConfigPrefix()
,
setConfigSourceName(String)
public ILcyMapLayerControlFactory getMapLayerControlFactory()
ILcyMapLayerControlFactory
. The default is a
TLcyMapLayerControlFactory
.ILcyMapLayerControlFactory
.setMapLayerControlFactory(ILcyMapLayerControlFactory)
public void setMapLayerControlFactory(ILcyMapLayerControlFactory aMapLayerControlFactory)
ILcyMapLayerControlFactory
that is used to create a
layer control for a created map component.aMapLayerControlFactory
- The factory.getMapLayerControlFactory()
public ILcyMapComponent createMapComponent()
TLcyMapComponent
.
It will invoke all create, set and insert methods with the correct arguments to
build a map component together.
See top comment for more detailed information.createMapComponent
in class ALcyMapComponentFactory
TLcyMapComponent
.protected void finalizeCreation(TLcyMapComponent aMapComponent)
aMapComponent
- The map component under construction.protected TLcyMapComponent createEmptyMapComponent()
protected ILcdBounds createInitialMapBounds(TLcyMapComponent aMapComponent)
Create the initial bounds for the map in the WGS 84 reference system. The map is fit so
that at least the given area is visible. Return null
to avoid any fit operation.
Please note that this information is also stored in a workspace, so if a workspace is loaded,
the value given here will be ignored. This behavior can be changed, see property
TLcyMapAddOn.workspaceCodec.restoreMapBounds
in config file
config/lucy/map/map_addon.cfg
aMapComponent
- The map component under construction.protected void setInitialMapBounds(ILcdBounds aBounds, TLcyMapComponent aMapComponentSFCT)
aBounds
- The bounds to setaMapComponentSFCT
- The map component under construction.protected String createMapName(TLcyMapComponent aMapComponent)
aMapComponent
- The map component under construction.protected String addNumberToMapNameIfNeeded(String aMapName, ILcyMapManager aMapManager)
aMapName
- The base map name.aMapManager
- The manager containing all existing maps.protected void setMapName(String aMapName, TLcyMapComponent aMapComponent)
aMapName
- The map name to set.aMapComponent
- The map component under construction.protected ILcdAction createAction(int aID, TLcyMapComponent aMapComponent)
aID
- The id describing which action to create. This is a
constant that ends in ACTION
.aMapComponent
- The map component under construction.protected void insertActionInMenu(int aID, ILcdAction aAction, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the action to add. This is a
constant that ends in ACTION
.aAction
- The action to add.aMapComponentSFCT
- The map component under construction.protected void insertActionInPopupMenu(int aID, ILcdAction aAction, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the action to add. This is a
constant that ends in ACTION
.aAction
- The action to add.aMapComponentSFCT
- The map component under construction.protected ILcyActiveSettable createActiveSettable(int aID, TLcyMapComponent aMapComponent)
aID
- The ID of the active settable to create. This is a
constant that ends in ACTIVE_SETTABLE
, but not in CONTROLLER_ACTIVE_SETTABLE
.aMapComponent
- The map component under construction.protected void insertActiveSettableInMenu(int aID, ILcyActiveSettable aActiveSettable, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the active settable to insert. This is a
constant that ends in ACTIVE_SETTABLE
.aActiveSettable
- The active settable to insert into the menu.aMapComponentSFCT
- The map component into whose menu bar the active settable will be inserted.protected void insertActiveSettableInToolBar(int aID, ILcyActiveSettable aActiveSettable, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the active settable to insert. This is a
constant that ends in ACTIVE_SETTABLE
.aActiveSettable
- The active settable to insert into the toolbar.aMapComponentSFCT
- The map component into whose toolbar the active settable will be inserted.protected ILcdGXYController createGXYController(int aID, TLcyMapComponent aMapComponent)
ILcdGXYController
for the given ID.aID
- The ID of the controller to create. This is a
constant that ends in CONTROLLER
.aMapComponent
- The map component under construction.protected void insertGXYController(int aID, ILcdGXYController aGXYController, TLcyMapComponent aMapComponentSFCT)
aID
- The id of the controller to insert. This is a
constant that ends in CONTROLLER
.aGXYController
- The controller to insert.aMapComponentSFCT
- The map to insert the controller into.protected ILcyActiveSettable createGXYControllerActiveSettable(int aID, ILcdGXYController aController, TLcyMapComponent aMapComponent)
aID
- The ID of the controller to create an active settable for, this is a
constant that ends in CONTROLLER_ACTIVE_SETTABLE
.aController
- The controller to create an active settable for.aMapComponent
- The map component under construction.protected Component createComponent(int aID, TLcyMapComponent aMapComponent)
aID
- The ID of the component to create. This is a
constant that ends in COMPONENT
.aMapComponent
- The map component under construction.protected void insertComponent(int aID, Component aComponent, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the component to insert. This is a
constant that ends in COMPONENT
.aComponent
- The component to insert.aMapComponentSFCT
- The map component to insert the component into.protected Container createContainer(int aID, TLcyMapComponent aMapComponent)
aID
- The ID of the container to create. This is a
constant that ends in CONTAINER
.aMapComponent
- The map component under construction.protected void insertContainer(int aID, Container aContainer, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the container to insert. This is a
constant that ends in CONTAINER
.aContainer
- The container to insert.aMapComponentSFCT
- The map component to insert the container in.protected ILcdIcon createIcon(int aID, TLcyMapComponent aMapComponent)
aID
- The ID of the icon to create. This is a
constant that ends in ICON
.aMapComponent
- The map component under construction.protected void insertIcon(int aID, ILcdIcon aIcon, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the icon to insert. This is a
constant that ends in ICON
.aIcon
- The icon to insert.aMapComponentSFCT
- The map component to insert the icon into.protected ILcdGXYLayer createGXYLayer(int aID, TLcyMapComponent aMapComponent)
aID
- The ID of the layer to create. This is a
constant that ends in LAYER
.aMapComponent
- The map component under construction.protected void insertGXYLayer(int aID, ILcdGXYLayer aGXYLayer, TLcyMapComponent aMapComponentSFCT)
aID
- The ID of the layer to insert. This is a
constant that ends in LAYER
.aGXYLayer
- The layer to insert.aMapComponentSFCT
- The map component where the layer will be inserted into.protected ILcdGXYView createGXYView(TLcyMapComponent aMapComponent)
Creates the main ILcdGXYView
for the given map component. The view is based on
the ILcdTreeLayeredSupport
created in createTreeLayeredSupport(TLcyMapComponent)
.
Note that if for example a TLcdMapJPanel
is created, one should call
TLcdMapJPanel#setGXYLayerFactory(getLucyEnv().getCompositeGXYLayerFactory())
.
Optionally, the setMinScale
and setMaxScale
can be set.
If desired, the background color should be set on the view. Note that when a workspace is loaded, that workspace value takes precedence.
aMapComponent
- The map component under construction.createTreeLayeredSupport(TLcyMapComponent)
protected ILcdTreeLayeredSupport createTreeLayeredSupport(TLcyMapComponent aMapComponent)
Creates the ILcdTreeLayeredSupport
used to store the layers of the view created
by createGXYView(TLcyMapComponent)
. The rootnode of the resulting ILcdTreeLayeredSupport
is created by calling createRootNode(TLcyMapComponent)
.
aMapComponent
- the map component under constructionILcdTreeLayeredSupport
used to store the layers of the viewcreateGXYView(TLcyMapComponent)
,
createRootNode(TLcyMapComponent)
protected ILcdLayerTreeNode createRootNode(TLcyMapComponent aMapComponent)
Creates the root node of the ILcdTreeLayeredSupport
created by createTreeLayeredSupport(TLcyMapComponent)
.
aMapComponent
- the map component under constructioncreateTreeLayeredSupport(TLcyMapComponent)
protected void setGXYView(ILcdGXYView aGXYView, TLcyMapComponent aMapComponentSFCT)
aGXYView
- The gxy view to set.aMapComponentSFCT
- The map component to set the gxy view to.protected ILcyGXYLayerOrderManager createGXYLayerOrderManager(TLcyMapComponent aMapComponent)
ILcyModelContentTypeProvider
and ILcyGXYLayerTypeProvider
), and usually the
correct ordering can be achieved by providing the correct type providers.
Replacing the algorithm is rarely needed. If you decide to override this method, you may want to call
ALcyAsynchronousPaintFacade.createGXYAsynchronousLayerOrderManager(ILcyGXYLayerOrderManager)
to add
support for asynchronously painted layers.aMapComponent
- The map component under construction.protected void setGXYLayerOrderManager(ILcyGXYLayerOrderManager aLayerOrderManager, TLcyMapComponent aMapComponentSFCT)
ILcyGXYLayerOrderManager
to the given TLcyMapComponent
.aLayerOrderManager
- The layer ordering algorithm to set.aMapComponentSFCT
- The map component under construction.protected ILcyToolBar createToolBar(TLcyMapComponent aMapComponent)
aMapComponent
- The map component under construction.createRightToolBar(TLcyMapComponent)
protected ILcyToolBar createRightToolBar(TLcyMapComponent aMapComponent)
Creates a tool bar for the given map component, which will be placed on the north-east side by default. This tool bar can be used for inserting actions/active settables which should be aligned at the north-east side instead of the north-west side.
aMapComponent
- The map component under constructionnull
createToolBar(TLcyMapComponent)
protected ILcyToolBar createOnMapActionBar(TLcyMapComponent aMapComponent)
aMapComponent
- The map component under constructionprotected void setToolBar(ILcyToolBar aToolBar, TLcyMapComponent aMapComponentSFCT)
aToolBar
- The toolbar to set.aMapComponentSFCT
- The map component to set the toolbar to.createToolBar(TLcyMapComponent)
protected void setRightToolBar(ILcyToolBar aRightToolBar, TLcyMapComponent aMapComponentSFCT)
aRightToolBar
- The tool bar to set.
This tool bar was created using the createRightToolBar(TLcyMapComponent)
method.aMapComponentSFCT
- The map component to set the tool bar tocreateRightToolBar(TLcyMapComponent)
protected ILcyPopupMenu createPopupMenu(TLcyMapComponent aMapComponent)
aMapComponent
- The map component to create a popup menu for.protected void setPopupMenu(ILcyPopupMenu aPopupMenu, TLcyMapComponent aMapComponentSFCT)
aPopupMenu
- The popup menu to set to the map component.aMapComponentSFCT
- The map component to set the given popup menu to.protected ILcyMenuBar createMenuBar(TLcyMapComponent aMapComponent)
aMapComponent
- The map component to create a menu bar for.protected ILcyToolBar createStatusBar(TLcyMapComponent aMapComponent)
aMapComponent
- the map component to create a status bar for.null
protected void setMenuBar(ILcyMenuBar aMenuBar, TLcyMapComponent aMapComponentSFCT)
aMenuBar
- The menu bar to set to the map component.aMapComponentSFCT
- The map component to set the given menu bar to.protected ALcdBalloonManager createBalloonManager(TLcyMapComponent aMapComponent)
Creates the balloon manager for aMapComponent
.
This method is called from createMapComponent()
and it is that method which sets the
created balloon manager on the map component. This method is only called when all other parts of the
map component are already created and set.
The default implementation also adds an ILcdSelectionListener
to the view
of the map component, which calls ALcdBalloonManager.setBalloonDescriptor(com.luciad.view.swing.ALcdBalloonDescriptor)
when only one object is selected on the view.
This default balloon manager uses the balloon content providers registered as a service in the lucy backend.
Override this method if you want to change the default ALcdBalloonManager
.
aMapComponent
- the map component to create a ALcdBalloonManager
fornull
ILcyGenericMapComponent.setBalloonManager(com.luciad.view.swing.ALcdBalloonManager)