Package com.luciad.lucy.gui
Class TLcySkinnedToolBar
java.lang.Object
com.luciad.lucy.gui.ALcyActionBar
com.luciad.lucy.gui.TLcyToolBar
com.luciad.lucy.gui.TLcySkinnedToolBar
- All Implemented Interfaces:
ILcyActionBar
,ILcyToolBar
Extension of TLcyToolBar
that uses icons (for example images) as the button
backgrounds, instead of using the global Look and Feel settings. This is especially useful when
overlaying a tool bar on a map, as the default Look and Feel can then look a bit out of place.
Lucy by default has an on-map tool bar available that appears when items are configured to
be in there, see for example the map centric front-end sample. If you have to overlay another tool
bar on the map, see ILcyGenericMapComponent.getMapOverlayPanel()
for more information.
The super class can work together with an TLcyAlwaysFitJToolBar
to provide a
remaining items button when there is not enough screen space, but this skinned tool bar does
not support it.
- Since:
- 11.0
-
Constructor Summary
ConstructorDescriptionCreates a new skinned tool bar.TLcySkinnedToolBar
(ILcdIcon aBackground, ILcdIcon aSelectedBackground) Creates a new skinned tool bar with the given background and selected background icons.TLcySkinnedToolBar
(JToolBar aToolBar) Creates a new skinned tool bar.TLcySkinnedToolBar
(JToolBar aToolBar, ILcdIcon aBackground, ILcdIcon aSelectedBackground) Creates a new skinned tool bar with the given background and selected background icons. -
Method Summary
Methods inherited from class com.luciad.lucy.gui.TLcyToolBar
createItem, createItem, createItemContainer, getButtonSize, getChildren, getComponent, getItemContainer, getParent, insertSeparator, removeSeparator, setButtonSize
Methods inherited from class com.luciad.lucy.gui.ALcyActionBar
addActionBarListener, getActionBarItem, getActionBarItemComparator, getActionBarItemCount, getGroupDescriptorComparator, getHelpManager, getProperties, insertAction, insertAction, insertActiveSettable, insertActiveSettable, insertActiveSettable, insertChildInParent, insertComponent, isAutoHide, removeAction, removeActionBarListener, removeActiveSettable, removeChildFromParent, removeComponent, retrieveDeactivatePossible, retrieveGroupDescriptor, retrieveGroupDescriptor, retrieveHelpIDString, retrieveHelpIDString, retrieveMenuGroupDescriptors, retrieveMenuGroupDescriptors, retrieveMenus, retrieveMenus, setActionBarItemComparator, setAutoHide, setGroupDescriptorComparator, setHelpIDString, setHelpIDString, setHelpManager, setProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.lucy.gui.ILcyActionBar
addActionBarListener, getActionBarItem, getActionBarItemCount, insertAction, insertAction, insertActiveSettable, insertActiveSettable, insertActiveSettable, removeAction, removeActionBarListener, removeActiveSettable, retrieveDeactivatePossible, retrieveGroupDescriptor, retrieveGroupDescriptor, retrieveHelpIDString, retrieveHelpIDString, retrieveMenuGroupDescriptors, retrieveMenuGroupDescriptors, retrieveMenus, retrieveMenus, setHelpIDString, setHelpIDString
Methods inherited from interface com.luciad.lucy.gui.ILcyToolBar
insertComponent, removeComponent
-
Constructor Details
-
TLcySkinnedToolBar
public TLcySkinnedToolBar()Creates a new skinned tool bar. -
TLcySkinnedToolBar
Creates a new skinned tool bar.- Parameters:
aToolBar
- The Swing tool bar that is used to represent thisILcyToolBar
. All buttons and components will be added to (a sub-menu of) this tool bar. You might want to callsetFloatable(false)
andsetBorder(BorderFactory.createEmptyBorder())
on it.
-
TLcySkinnedToolBar
Creates a new skinned tool bar with the given background and selected background icons. Should you want to use images for the background, you can useTLcdImageIcon
to create anILcdIcon
from an image file name.- Parameters:
aBackground
- The background of a regular button.aSelectedBackground
- The background of a selected button. A button is selected if its associatedILcyActiveSettable
returnstrue
forILcyActiveSettable.isActive()
.
-
TLcySkinnedToolBar
Creates a new skinned tool bar with the given background and selected background icons. Should you want to use images for the background, you can useTLcdImageIcon
to create anILcdIcon
from an image file name.- Parameters:
aToolBar
- The Swing tool bar that is used to represent thisILcyToolBar
. All buttons and components will be added to (a sub-menu of) this tool bar. You might want to callsetFloatable(false)
andsetBorder(BorderFactory.createEmptyBorder())
on it.aBackground
- The background of a regular button.aSelectedBackground
- The background of a selected button. A button is selected if its associatedILcyActiveSettable
returnstrue
forILcyActiveSettable.isActive()
.
-