TLcyFormatBarAddOn provides one menu item or tool bar item that controls the presence of a container
ALcyFormatBar instances, located at the bottom of a map component. Layer selection in a
ILcyGenericMapComponent is monitored, and the format bar that matches the format of the selected layer is displayed in the container.
ALcyFormatBar is a Swing component that provides tools to manipulate the layers of the format. Manipulation can mean anything here. A
typical use consists of making buttons available for drawing new domain objects, and adding them into the layer and its model.
The Adding support for custom editable data to a Lightspeed view and Adding support for custom (editable) data to a GXY view tutorials also use the format bar to show some buttons.
If the menu bar or toolbar item is activated and no
ALcyFormatBar can be created for any
layer in the map with an
ALcyFormatBarFactory, an attempt is made to create a new layer for this purpose. To do so, a
ALcyDefaultModelDescriptorFactory is used to create an
ILcdModelDescriptor. If multiple factories are available, the end user is asked to select one. With the
ILcdModel is created using an
ILcdModelFactory. A layer for that model is created using a layer factory and added to the map, for example, a
ILcdGXYLayerFactory is used for an