com.jidesoft.plaf.basic
Class BasicPainter
java.lang.Object
com.jidesoft.plaf.basic.BasicPainter
- All Implemented Interfaces:
- ThemePainter, SwingConstants
- Direct Known Subclasses:
- AquaPainter, EclipsePainter, MetalPainter, Office2003Painter, Office2007Painter, XertoPainter
public class BasicPainter
- extends Object
- implements SwingConstants, ThemePainter
Painter for JIDE styles.
Please note, this class is an internal class which is meant to be used by other JIDE classes only. Future version
might break your build if you use it.
Field Summary |
protected Color |
_bk0
|
protected Color |
_bk1
|
protected Color |
_bk2
|
protected Color |
_bk3
|
protected Color |
_borderColor
|
static int |
ARROW_TEXT_GAP
The gap between the sort arrow and index text. |
static int |
H_GAP
The distant from the right edge of the table header to left edge of sort arrow. |
static int |
V_GAP
The distant from top edge of the table header to the top edge of the sort arrow. |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Method Summary |
void |
fillBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
Color color)
|
Color |
getBackgroundDk()
|
Color |
getBackgroundLt()
|
Color |
getCollapsiblePaneContentBackground()
|
ImageIcon |
getCollapsiblePaneDownIcon()
|
ImageIcon |
getCollapsiblePaneDownIconEmphasized()
|
ImageIcon |
getCollapsiblePaneDownMask()
|
Color |
getCollapsiblePaneFocusTitleForeground()
|
Color |
getCollapsiblePaneFocusTitleForegroundEmphasized()
|
ImageIcon |
getCollapsiblePaneTitleButtonBackground()
|
ImageIcon |
getCollapsiblePaneTitleButtonBackgroundEmphasized()
|
Color |
getCollapsiblePaneTitleForeground()
|
Color |
getCollapsiblePaneTitleForegroundEmphasized()
|
ImageIcon |
getCollapsiblePaneUpIcon()
|
ImageIcon |
getCollapsiblePaneUpIconEmphasized()
|
ImageIcon |
getCollapsiblePaneUpMask()
|
Color |
getColor(Object key)
|
Color |
getCommandBarTitleBarBackground()
|
Color |
getControl()
|
Color |
getControlDk()
|
Color |
getControlLt()
|
Color |
getControlShadow()
|
Color |
getDockableFrameTitleBarActiveForeground()
|
Color |
getDockableFrameTitleBarInactiveForeground()
|
Color |
getGripperForeground()
|
Color |
getGripperForegroundLt()
|
static ThemePainter |
getInstance()
|
Color |
getMenuItemBackground()
|
Color |
getMenuItemBorderColor()
|
Color |
getOptionPaneBannerDk()
|
Color |
getOptionPaneBannerForeground()
|
Color |
getOptionPaneBannerLt()
|
Color |
getSelectionSelectedDk()
|
Color |
getSelectionSelectedLt()
|
Color |
getSeparatorForeground()
|
Color |
getSeparatorForegroundLt()
|
Insets |
getSortableTableHeaderColumnCellDecoratorInsets(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
int sortOrder,
Icon sortIcon,
int orderIndex,
Color indexColor,
boolean paintIndex)
|
Color |
getTabAreaBackgroundDk()
|
Color |
getTabAreaBackgroundLt()
|
Color |
getTabbedPaneSelectDk()
|
Color |
getTabbedPaneSelectLt()
|
Color |
getTitleBarBackground()
|
void |
installDefaults()
|
protected void |
paintBackground(JComponent c,
Graphics g,
Rectangle rect,
Color borderColor,
Color background,
int orientation)
|
void |
paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
|
void |
paintChevronBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintChevronMore(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintChevronOption(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePanesBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintCommandBarTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintContentBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintDividerBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintDockableFrameBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintDockableFrameTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintFloatingChevronOption(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintFloatingCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintGripper(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintHeaderBoxBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintMenuItemBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintMenuItemBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
|
void |
paintMenuShadow(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintPopupMenuSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintSelectedMenu(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintSidePaneItemBackground(JComponent c,
Graphics g,
Rectangle rect,
Color[] colors,
int orientation,
int state)
|
void |
paintSortableTableHeaderColumn(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
int sortOrder,
Icon sortIcon,
int orderIndex,
Color indexColor,
boolean paintIndex)
|
void |
paintStatusBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintStatusBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintTabAreaBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintTabBackground(JComponent c,
Graphics g,
Shape region,
Color[] colors,
int orientation,
int state)
|
void |
paintTabContentBorder(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintToolBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
protected boolean |
shouldDisplayOnTop()
Should the arrow be displayed on the top of the header. |
void |
uninstallDefaults()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_bk0
protected Color _bk0
_bk1
protected Color _bk1
_bk2
protected Color _bk2
_bk3
protected Color _bk3
_borderColor
protected Color _borderColor
V_GAP
public static int V_GAP
- The distant from top edge of the table header to the top edge of the sort arrow.
H_GAP
public static int H_GAP
- The distant from the right edge of the table header to left edge of sort arrow.
ARROW_TEXT_GAP
public static int ARROW_TEXT_GAP
- The gap between the sort arrow and index text.
BasicPainter
public BasicPainter()
getInstance
public static ThemePainter getInstance()
installDefaults
public void installDefaults()
uninstallDefaults
public void uninstallDefaults()
getGripperForeground
public Color getGripperForeground()
- Specified by:
getGripperForeground
in interface ThemePainter
getGripperForegroundLt
public Color getGripperForegroundLt()
- Specified by:
getGripperForegroundLt
in interface ThemePainter
getSeparatorForeground
public Color getSeparatorForeground()
- Specified by:
getSeparatorForeground
in interface ThemePainter
getSeparatorForegroundLt
public Color getSeparatorForegroundLt()
- Specified by:
getSeparatorForegroundLt
in interface ThemePainter
getCollapsiblePaneContentBackground
public Color getCollapsiblePaneContentBackground()
- Specified by:
getCollapsiblePaneContentBackground
in interface ThemePainter
getCollapsiblePaneTitleForeground
public Color getCollapsiblePaneTitleForeground()
- Specified by:
getCollapsiblePaneTitleForeground
in interface ThemePainter
getCollapsiblePaneTitleForegroundEmphasized
public Color getCollapsiblePaneTitleForegroundEmphasized()
- Specified by:
getCollapsiblePaneTitleForegroundEmphasized
in interface ThemePainter
getCollapsiblePaneFocusTitleForegroundEmphasized
public Color getCollapsiblePaneFocusTitleForegroundEmphasized()
- Specified by:
getCollapsiblePaneFocusTitleForegroundEmphasized
in interface ThemePainter
getCollapsiblePaneFocusTitleForeground
public Color getCollapsiblePaneFocusTitleForeground()
- Specified by:
getCollapsiblePaneFocusTitleForeground
in interface ThemePainter
getCollapsiblePaneUpIcon
public ImageIcon getCollapsiblePaneUpIcon()
- Specified by:
getCollapsiblePaneUpIcon
in interface ThemePainter
getCollapsiblePaneDownIcon
public ImageIcon getCollapsiblePaneDownIcon()
- Specified by:
getCollapsiblePaneDownIcon
in interface ThemePainter
getCollapsiblePaneUpIconEmphasized
public ImageIcon getCollapsiblePaneUpIconEmphasized()
- Specified by:
getCollapsiblePaneUpIconEmphasized
in interface ThemePainter
getCollapsiblePaneDownIconEmphasized
public ImageIcon getCollapsiblePaneDownIconEmphasized()
- Specified by:
getCollapsiblePaneDownIconEmphasized
in interface ThemePainter
getCollapsiblePaneTitleButtonBackground
public ImageIcon getCollapsiblePaneTitleButtonBackground()
- Specified by:
getCollapsiblePaneTitleButtonBackground
in interface ThemePainter
getCollapsiblePaneTitleButtonBackgroundEmphasized
public ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized()
- Specified by:
getCollapsiblePaneTitleButtonBackgroundEmphasized
in interface ThemePainter
getCollapsiblePaneUpMask
public ImageIcon getCollapsiblePaneUpMask()
- Specified by:
getCollapsiblePaneUpMask
in interface ThemePainter
getCollapsiblePaneDownMask
public ImageIcon getCollapsiblePaneDownMask()
- Specified by:
getCollapsiblePaneDownMask
in interface ThemePainter
getBackgroundDk
public Color getBackgroundDk()
- Specified by:
getBackgroundDk
in interface ThemePainter
getBackgroundLt
public Color getBackgroundLt()
- Specified by:
getBackgroundLt
in interface ThemePainter
getSelectionSelectedDk
public Color getSelectionSelectedDk()
- Specified by:
getSelectionSelectedDk
in interface ThemePainter
getSelectionSelectedLt
public Color getSelectionSelectedLt()
- Specified by:
getSelectionSelectedLt
in interface ThemePainter
getMenuItemBorderColor
public Color getMenuItemBorderColor()
- Specified by:
getMenuItemBorderColor
in interface ThemePainter
getMenuItemBackground
public Color getMenuItemBackground()
- Specified by:
getMenuItemBackground
in interface ThemePainter
getCommandBarTitleBarBackground
public Color getCommandBarTitleBarBackground()
- Specified by:
getCommandBarTitleBarBackground
in interface ThemePainter
getControl
public Color getControl()
- Specified by:
getControl
in interface ThemePainter
getControlLt
public Color getControlLt()
- Specified by:
getControlLt
in interface ThemePainter
getControlDk
public Color getControlDk()
- Specified by:
getControlDk
in interface ThemePainter
getControlShadow
public Color getControlShadow()
- Specified by:
getControlShadow
in interface ThemePainter
getTitleBarBackground
public Color getTitleBarBackground()
- Specified by:
getTitleBarBackground
in interface ThemePainter
getDockableFrameTitleBarActiveForeground
public Color getDockableFrameTitleBarActiveForeground()
- Specified by:
getDockableFrameTitleBarActiveForeground
in interface ThemePainter
getDockableFrameTitleBarInactiveForeground
public Color getDockableFrameTitleBarInactiveForeground()
- Specified by:
getDockableFrameTitleBarInactiveForeground
in interface ThemePainter
getTabbedPaneSelectDk
public Color getTabbedPaneSelectDk()
- Specified by:
getTabbedPaneSelectDk
in interface ThemePainter
getTabbedPaneSelectLt
public Color getTabbedPaneSelectLt()
- Specified by:
getTabbedPaneSelectLt
in interface ThemePainter
getTabAreaBackgroundDk
public Color getTabAreaBackgroundDk()
- Specified by:
getTabAreaBackgroundDk
in interface ThemePainter
getTabAreaBackgroundLt
public Color getTabAreaBackgroundLt()
- Specified by:
getTabAreaBackgroundLt
in interface ThemePainter
getOptionPaneBannerForeground
public Color getOptionPaneBannerForeground()
- Specified by:
getOptionPaneBannerForeground
in interface ThemePainter
getOptionPaneBannerDk
public Color getOptionPaneBannerDk()
- Specified by:
getOptionPaneBannerDk
in interface ThemePainter
getOptionPaneBannerLt
public Color getOptionPaneBannerLt()
- Specified by:
getOptionPaneBannerLt
in interface ThemePainter
paintSelectedMenu
public void paintSelectedMenu(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintSelectedMenu
in interface ThemePainter
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintMenuItemBackground
in interface ThemePainter
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
- Specified by:
paintMenuItemBackground
in interface ThemePainter
paintButtonBackground
public void paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintButtonBackground
in interface ThemePainter
paintButtonBackground
public void paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
- Specified by:
paintButtonBackground
in interface ThemePainter
paintBackground
protected void paintBackground(JComponent c,
Graphics g,
Rectangle rect,
Color borderColor,
Color background,
int orientation)
paintChevronBackground
public void paintChevronBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronBackground
in interface ThemePainter
paintDividerBackground
public void paintDividerBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDividerBackground
in interface ThemePainter
paintCommandBarBackground
public void paintCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCommandBarBackground
in interface ThemePainter
paintFloatingCommandBarBackground
public void paintFloatingCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintFloatingCommandBarBackground
in interface ThemePainter
paintMenuShadow
public void paintMenuShadow(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintMenuShadow
in interface ThemePainter
paintContentBackground
public void paintContentBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintContentBackground
in interface ThemePainter
paintStatusBarBackground
public void paintStatusBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintStatusBarBackground
in interface ThemePainter
paintCommandBarTitlePane
public void paintCommandBarTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCommandBarTitlePane
in interface ThemePainter
paintGripper
public void paintGripper(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintGripper
in interface ThemePainter
paintChevronMore
public void paintChevronMore(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronMore
in interface ThemePainter
paintChevronOption
public void paintChevronOption(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronOption
in interface ThemePainter
paintFloatingChevronOption
public void paintFloatingChevronOption(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintFloatingChevronOption
in interface ThemePainter
paintDockableFrameBackground
public void paintDockableFrameBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDockableFrameBackground
in interface ThemePainter
paintDockableFrameTitlePane
public void paintDockableFrameTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDockableFrameTitlePane
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackground
public void paintCollapsiblePaneTitlePaneBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackground
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackgroundEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in interface ThemePainter
paintCollapsiblePanesBackground
public void paintCollapsiblePanesBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePanesBackground
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackgroundPlain
public void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlain
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in interface ThemePainter
paintCollapsiblePaneTitlePaneBackgroundSeparator
public void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparator
in interface ThemePainter
getColor
public Color getColor(Object key)
- Specified by:
getColor
in interface ThemePainter
paintTabAreaBackground
public void paintTabAreaBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintTabAreaBackground
in interface ThemePainter
paintTabBackground
public void paintTabBackground(JComponent c,
Graphics g,
Shape region,
Color[] colors,
int orientation,
int state)
- Specified by:
paintTabBackground
in interface ThemePainter
paintTabContentBorder
public void paintTabContentBorder(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintTabContentBorder
in interface ThemePainter
paintSidePaneItemBackground
public void paintSidePaneItemBackground(JComponent c,
Graphics g,
Rectangle rect,
Color[] colors,
int orientation,
int state)
- Specified by:
paintSidePaneItemBackground
in interface ThemePainter
paintHeaderBoxBackground
public void paintHeaderBoxBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintHeaderBoxBackground
in interface ThemePainter
paintToolBarSeparator
public void paintToolBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintToolBarSeparator
in interface ThemePainter
paintPopupMenuSeparator
public void paintPopupMenuSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintPopupMenuSeparator
in interface ThemePainter
paintStatusBarSeparator
public void paintStatusBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintStatusBarSeparator
in interface ThemePainter
shouldDisplayOnTop
protected boolean shouldDisplayOnTop()
- Should the arrow be displayed on the top of the header.
- Returns:
- true to display the sort arrow on top. Otherwise false.
fillBackground
public void fillBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
Color color)
- Specified by:
fillBackground
in interface ThemePainter
getSortableTableHeaderColumnCellDecoratorInsets
public Insets getSortableTableHeaderColumnCellDecoratorInsets(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
int sortOrder,
Icon sortIcon,
int orderIndex,
Color indexColor,
boolean paintIndex)
- Specified by:
getSortableTableHeaderColumnCellDecoratorInsets
in interface ThemePainter
paintSortableTableHeaderColumn
public void paintSortableTableHeaderColumn(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
int sortOrder,
Icon sortIcon,
int orderIndex,
Color indexColor,
boolean paintIndex)
- Specified by:
paintSortableTableHeaderColumn
in interface ThemePainter