public class TLcyFormatBarAddOn extends ALcyPreferencesAddOn
This add-on provides one menu/tool bar item that enables/disables the presence of a container
ALcyFormatBars, located at the bottom
ILcyGenericMapComponent (location is configurable). Layer selection on the
map component is monitored, and the format
bar that matches with the format of the selected layer is displayed in the container.
ALcyFormatBars have a (Swing) component that can be anything, and are created by
ALcyFormatBarFactory that is
retrieved from the
ILcyLucyEnv. A typical use is to have a drawing tool bar below
the map, that has buttons to start drawing new domain objects into (the model of) the layer.
Please refer to
TLcyDrawingAddOn for an
example of an add-on that registers a drawing bar.
The add-on also provides support for a menu/tool bar item that can be used to create new
layers. The behaviour of this item is identical to that of
ALcyCreateLayersAction. This class is typically used in the AddOn that registers
ALcyFormatBar. Note that if the action is to be shown in a menu (as is the case in
the default Lucy installation), it should be registered as a reaction to a map that is being added
to the Lucy map manager. If it is registered in the
ALcyFormatBar itself, it will not appear
in the menu until the format bar has been made visible.
This add-on currently supports GXY and Lsp map components.
|Constructor and Description|
|Modifier and Type||Method and Description|
Creates and plugs in the add-on's preferences tool.
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix, unplugFrom
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public void plugInto(ILcyLucyEnv aLucyEnv)
aLucyEnv- the Lucy environment to plug into
public final ILcyActiveSettable getFormatBarActiveSettableForMap(ILcyGenericMapComponent<?,?> aMapComponent)
ILcyActiveSettable which can be used to show or hide the format bar on the specified map.
aMapComponent- The map component
ILcyActiveSettablewhich can be used to show or hide the format bar on
nullwhen no such active settable is available (for example when the map has already been closed).