|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.PanelUI com.jidesoft.plaf.SidePaneUI com.jidesoft.plaf.basic.BasicSidePaneUI
public class BasicSidePaneUI
A basic L&f implementation of SidePaneUI
Field Summary | |
---|---|
protected boolean |
_alwaysShowText
|
protected Color |
_background
|
protected Color |
_buttonBackground
|
protected int |
_displayOrientation
|
DropTarget |
_dt
|
protected Font |
_font
|
protected int |
_groupGap
|
protected boolean |
_highlightSelectedTab
|
protected int |
_iconTextGap
|
protected int |
_itemGap
|
protected Color |
_lineColor
|
protected Insets |
_margin
|
protected Rectangle[] |
_rects
Rectangles that hold location of each icon/text |
protected Color |
_selectedButtonBackground
|
protected Color |
_selectedButtonForeground
|
protected boolean |
_showText
|
protected SidePane |
_sidePane
|
protected int |
_size
|
protected int |
_textBorderGap
|
Constructor Summary | |
---|---|
BasicSidePaneUI()
|
Method Summary | |
---|---|
protected com.jidesoft.plaf.basic.BasicSidePaneUI.DropListener |
createDropListener()
|
protected LayoutManager |
createLayoutManager()
Invoked by installUI to create a layout manager object to manage the JideSidePane . |
protected MouseInputListener |
createMouseInputListener()
|
static ComponentUI |
createUI(JComponent c)
|
protected void |
drawEastPane(Graphics g,
JComponent c,
FontMetrics metrics)
|
protected void |
drawNorthPane(Graphics g,
JComponent c,
FontMetrics metrics)
|
protected void |
drawSouthPane(Graphics g,
JComponent c,
FontMetrics metrics)
|
protected void |
drawWestPane(Graphics g,
JComponent c,
FontMetrics metrics)
|
protected FontMetrics |
getFontMetrics()
|
protected Color[] |
getGradientColors(SidePaneItem item)
|
SidePaneGroup |
getGroupForIndex(int index)
|
Rectangle |
getGroupRect(int index)
Gets the rectangle of the SidePaneGroup. |
SidePaneItem |
getItemForIndex(int index)
|
ThemePainter |
getPainter()
|
protected int |
getPreferredHeightVertical()
|
Dimension |
getPreferredSize(JComponent c)
Returns the specified component's preferred size appropriate for the look and feel. |
protected int |
getPreferredWidthHorizontal()
|
int |
getSelectedItemIndex(Point p)
|
protected void |
initButtonRects()
|
protected void |
installComponents()
Creates and installs any required subcomponents for the SidePane. |
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
void |
installUI(JComponent c)
|
protected boolean |
isItemHighlighted(SidePaneItem item)
|
protected boolean |
isRoundedCorner()
|
void |
paint(Graphics g,
JComponent c)
Paints the specified component appropriate for the look and feel. |
protected void |
paintBackground(Graphics g,
JComponent c)
|
protected void |
paintItemBackground(SidePaneItem item,
Graphics g,
Rectangle rect,
int side)
|
protected void |
uninstallComponents()
Removes any installed subcomponents from the JTabbedPane. |
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public DropTarget _dt
protected SidePane _sidePane
protected int _size
protected Insets _margin
protected int _iconTextGap
protected int _textBorderGap
protected int _itemGap
protected int _groupGap
protected Color _lineColor
protected Color _background
protected Color _buttonBackground
protected Color _selectedButtonBackground
protected Color _selectedButtonForeground
protected Font _font
protected boolean _showText
protected boolean _alwaysShowText
protected boolean _highlightSelectedTab
protected Rectangle[] _rects
protected int _displayOrientation
Constructor Detail |
---|
public BasicSidePaneUI()
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 LayoutManager createLayoutManager()
installUI
to create a layout manager object to manage the JideSidePane
.
protected void installComponents()
protected void uninstallComponents()
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected MouseInputListener createMouseInputListener()
protected com.jidesoft.plaf.basic.BasicSidePaneUI.DropListener createDropListener()
protected void uninstallListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
public int getSelectedItemIndex(Point p)
getSelectedItemIndex
in class SidePaneUI
public Rectangle getGroupRect(int index)
index
- the index of the SidePaneGroup
public SidePaneGroup getGroupForIndex(int index)
getGroupForIndex
in class SidePaneUI
public SidePaneItem getItemForIndex(int index)
getItemForIndex
in class SidePaneUI
protected FontMetrics getFontMetrics()
protected void initButtonRects()
public void paint(Graphics g, JComponent c)
ComponentUI.update
method when the specified component is being painted. Subclasses should override
this method and use the specified Graphics
object to render the content of the component.
paint
in class ComponentUI
g
- the Graphics
context in which to paintc
- the component being painted; this argument is often ignored, but might be used if the UI object is
stateless and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintItemBackground(SidePaneItem item, Graphics g, Rectangle rect, int side)
protected Color[] getGradientColors(SidePaneItem item)
protected boolean isItemHighlighted(SidePaneItem item)
protected void drawWestPane(Graphics g, JComponent c, FontMetrics metrics)
protected void drawEastPane(Graphics g, JComponent c, FontMetrics metrics)
protected void drawNorthPane(Graphics g, JComponent c, FontMetrics metrics)
protected void drawSouthPane(Graphics g, JComponent c, FontMetrics metrics)
protected void paintBackground(Graphics g, JComponent c)
public Dimension getPreferredSize(JComponent c)
null
is
returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred
approach for any component with a specific layout manager installed). The default implementation of this method
returns null
.
getPreferredSize
in class ComponentUI
c
- the component whose preferred size is being queried; this argument is often ignored, but might be used
if the UI object is stateless and shared by multiple componentsJComponent.getPreferredSize()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
protected int getPreferredWidthHorizontal()
protected int getPreferredHeightVertical()
public ThemePainter getPainter()
protected boolean isRoundedCorner()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |