|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
org.pushingpixels.flamingo.internal.ui.ribbon.RibbonUI
org.pushingpixels.flamingo.internal.ui.ribbon.BasicRibbonUI
public class BasicRibbonUI
Basic UI for ribbon JRibbon
.
Nested Class Summary | |
---|---|
protected static class |
BasicRibbonUI.BandHostPanel
|
protected static class |
BasicRibbonUI.BandHostPopupPanel
|
protected class |
BasicRibbonUI.TaskToggleButtonsHostPanel
|
Constructor Summary | |
---|---|
BasicRibbonUI()
Creates a new basic ribbon UI delegate. |
Method Summary | |
---|---|
protected BasicRibbonUI.BandHostPanel |
createBandHostPanel()
|
protected LayoutManager |
createBandHostPanelLayoutManager()
|
protected LayoutManager |
createLayoutManager()
Invoked by installUI to create a layout manager object to
manage the JRibbon . |
protected LayoutManager |
createTaskbarLayoutManager()
Invoked by installUI to create a layout manager object to
manage the JRibbon taskbar. |
protected BasicRibbonUI.TaskToggleButtonsHostPanel |
createTaskToggleButtonsHostPanel()
|
protected LayoutManager |
createTaskToggleButtonsHostPanelLayoutManager()
|
static ComponentUI |
createUI(JComponent c)
|
protected int |
getBandGap()
Returns the layout gap for the bands in the associated ribbon. |
Rectangle |
getContextualTaskGroupBounds(RibbonContextualTaskGroup group)
Returns the bounds of the specified contextual task group. |
protected List<RibbonTask> |
getCurrentlyShownRibbonTasks()
Returns the list of currently shown ribbon tasks. |
protected int |
getTabButtonGap()
Returns the layout gap for the tab buttons in the associated ribbon. |
int |
getTaskbarHeight()
Returns the height of the taskbar area. |
int |
getTaskToggleButtonHeight()
Returns the height of the task toggle button area. |
Map<RibbonTask,JRibbonTaskToggleButton> |
getTaskToggleButtons()
|
void |
handleMouseWheelEvent(MouseWheelEvent e)
|
protected void |
installComponents()
Installs subcomponents on the associated ribbon. |
protected void |
installDefaults()
Installs defaults on the associated ribbon. |
protected void |
installListeners()
Installs listeners on the associated ribbon. |
void |
installUI(JComponent c)
|
boolean |
isShowingScrollsForBands()
|
boolean |
isShowingScrollsForTaskToggleButtons()
|
protected boolean |
isUsingTitlePane()
|
void |
paint(Graphics g,
JComponent c)
|
protected void |
paintBackground(Graphics g)
Paints the ribbon background. |
protected void |
paintMinimizedRibbonSeparator(Graphics g)
|
protected void |
paintTaskArea(Graphics g,
int x,
int y,
int width,
int height)
Paints the task border. |
protected void |
scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton)
|
protected void |
syncApplicationMenuTips()
|
protected void |
syncRibbonState()
|
protected void |
uninstallComponents()
Uninstalls subcomponents from the associated ribbon. |
protected void |
uninstallDefaults()
Uninstalls defaults from the associated ribbon. |
protected void |
uninstallListeners()
Uninstalls listeners from the associated ribbon. |
void |
uninstallUI(JComponent c)
|
void |
update(Graphics g,
JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IS_USING_TITLE_PANE
JRibbonFrame
.
protected JRibbon ribbon
protected JPanel taskBarPanel
protected JScrollablePanel<BasicRibbonUI.BandHostPanel> bandScrollablePanel
protected JScrollablePanel<BasicRibbonUI.TaskToggleButtonsHostPanel> taskToggleButtonsScrollablePanel
protected JRibbonApplicationMenuButton applicationMenuButton
protected JCommandButton helpButton
protected Map<RibbonTask,JRibbonTaskToggleButton> taskToggleButtons
protected CommandToggleButtonGroup taskToggleButtonGroup
protected ChangeListener ribbonChangeListener
protected PropertyChangeListener propertyChangeListener
protected ContainerListener ribbonContainerListener
protected ComponentListener ribbonComponentListener
Constructor Detail |
---|
public BasicRibbonUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected void installComponents()
protected LayoutManager createTaskToggleButtonsHostPanelLayoutManager()
protected BasicRibbonUI.TaskToggleButtonsHostPanel createTaskToggleButtonsHostPanel()
protected BasicRibbonUI.BandHostPanel createBandHostPanel()
protected LayoutManager createBandHostPanelLayoutManager()
protected void uninstallComponents()
public void update(Graphics g, JComponent c)
update
in class ComponentUI
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
protected void paintMinimizedRibbonSeparator(Graphics g)
protected void paintBackground(Graphics g)
g
- Graphics context.protected void paintTaskArea(Graphics g, int x, int y, int width, int height)
g
- Graphics context.x
- Left X of the tasks band bounds.y
- Top Y of the tasks band bounds.width
- Width of the tasks band bounds.height
- Height of the tasks band bounds.public Rectangle getContextualTaskGroupBounds(RibbonContextualTaskGroup group)
RibbonUI
getContextualTaskGroupBounds
in class RibbonUI
group
- Contextual task group.
protected int getBandGap()
protected int getTabButtonGap()
protected LayoutManager createLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
.
protected LayoutManager createTaskbarLayoutManager()
installUI
to create a layout manager object to
manage the JRibbon
taskbar.
public int getTaskbarHeight()
public int getTaskToggleButtonHeight()
protected void syncRibbonState()
protected List<RibbonTask> getCurrentlyShownRibbonTasks()
protected boolean isUsingTitlePane()
protected void syncApplicationMenuTips()
public boolean isShowingScrollsForTaskToggleButtons()
isShowingScrollsForTaskToggleButtons
in class RibbonUI
public boolean isShowingScrollsForBands()
isShowingScrollsForBands
in class RibbonUI
public Map<RibbonTask,JRibbonTaskToggleButton> getTaskToggleButtons()
public void handleMouseWheelEvent(MouseWheelEvent e)
handleMouseWheelEvent
in class RibbonUI
protected void scrollAndRevealTaskToggleButton(JRibbonTaskToggleButton taskToggleButton)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |