Package 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
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
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorstatic intThe gap between the sort arrow and index text.static intThe distant from the right edge of the table header to left edge of sort arrow.static intThe 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, WESTFields inherited from interface com.jidesoft.plaf.basic.ThemePainter
STATE_DEFAULT, STATE_DISABLE, STATE_DISABLE_ROLLOVER, STATE_DISABLE_SELECTED, STATE_INACTIVE_ROLLOVER, STATE_PRESSED, STATE_ROLLOVER, STATE_SELECTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, Color color) static ThemePaintergetSortableTableHeaderColumnCellDecoratorInsets(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex) voidprotected voidpaintBackground(JComponent c, Graphics g, Rectangle rect, Color borderColor, Color background, int orientation) voidpaintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) voidpaintChevronBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintChevronMore(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePanesBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintCommandBarTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintContentBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintDividerBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintDockableFrameBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintDockableFrameTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintFloatingChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintGripper(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) voidpaintMenuShadow(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintPopupMenuSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintSelectedMenu(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintSidePaneItemBackground(JComponent c, Graphics g, Rectangle rect, Color[] colors, int orientation, int state) voidpaintSortableTableHeaderColumn(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex) voidpaintStatusBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintStatusBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintTabAreaBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintTabBackground(JComponent c, Graphics g, Shape region, Color[] colors, int orientation, int state) voidpaintTabContentBorder(JComponent c, Graphics g, Rectangle rect, int orientation, int state) voidpaintToolBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) protected booleanShould the arrow be displayed on the top of the header.void
-
Field Details
-
_bk0
-
_bk1
-
_bk2
-
_bk3
-
_borderColor
-
V_GAP
public static int V_GAPThe distant from top edge of the table header to the top edge of the sort arrow. -
H_GAP
public static int H_GAPThe distant from the right edge of the table header to left edge of sort arrow. -
ARROW_TEXT_GAP
public static int ARROW_TEXT_GAPThe gap between the sort arrow and index text.
-
-
Constructor Details
-
BasicPainter
public BasicPainter()
-
-
Method Details
-
getInstance
-
installDefaults
public void installDefaults() -
uninstallDefaults
public void uninstallDefaults() -
getGripperForeground
- Specified by:
getGripperForegroundin interfaceThemePainter
-
getGripperForegroundLt
- Specified by:
getGripperForegroundLtin interfaceThemePainter
-
getSeparatorForeground
- Specified by:
getSeparatorForegroundin interfaceThemePainter
-
getSeparatorForegroundLt
- Specified by:
getSeparatorForegroundLtin interfaceThemePainter
-
getCollapsiblePaneContentBackground
- Specified by:
getCollapsiblePaneContentBackgroundin interfaceThemePainter
-
getCollapsiblePaneTitleForeground
- Specified by:
getCollapsiblePaneTitleForegroundin interfaceThemePainter
-
getCollapsiblePaneTitleForegroundEmphasized
- Specified by:
getCollapsiblePaneTitleForegroundEmphasizedin interfaceThemePainter
-
getCollapsiblePaneFocusTitleForegroundEmphasized
- Specified by:
getCollapsiblePaneFocusTitleForegroundEmphasizedin interfaceThemePainter
-
getCollapsiblePaneFocusTitleForeground
- Specified by:
getCollapsiblePaneFocusTitleForegroundin interfaceThemePainter
-
getCollapsiblePaneUpIcon
- Specified by:
getCollapsiblePaneUpIconin interfaceThemePainter
-
getCollapsiblePaneDownIcon
- Specified by:
getCollapsiblePaneDownIconin interfaceThemePainter
-
getCollapsiblePaneUpIconEmphasized
- Specified by:
getCollapsiblePaneUpIconEmphasizedin interfaceThemePainter
-
getCollapsiblePaneDownIconEmphasized
- Specified by:
getCollapsiblePaneDownIconEmphasizedin interfaceThemePainter
-
getCollapsiblePaneTitleButtonBackground
- Specified by:
getCollapsiblePaneTitleButtonBackgroundin interfaceThemePainter
-
getCollapsiblePaneTitleButtonBackgroundEmphasized
- Specified by:
getCollapsiblePaneTitleButtonBackgroundEmphasizedin interfaceThemePainter
-
getCollapsiblePaneUpMask
- Specified by:
getCollapsiblePaneUpMaskin interfaceThemePainter
-
getCollapsiblePaneDownMask
- Specified by:
getCollapsiblePaneDownMaskin interfaceThemePainter
-
getBackgroundDk
- Specified by:
getBackgroundDkin interfaceThemePainter
-
getBackgroundLt
- Specified by:
getBackgroundLtin interfaceThemePainter
-
getSelectionSelectedDk
- Specified by:
getSelectionSelectedDkin interfaceThemePainter
-
getSelectionSelectedLt
- Specified by:
getSelectionSelectedLtin interfaceThemePainter
-
getMenuItemBorderColor
- Specified by:
getMenuItemBorderColorin interfaceThemePainter
-
getMenuItemBackground
- Specified by:
getMenuItemBackgroundin interfaceThemePainter
-
getCommandBarTitleBarBackground
- Specified by:
getCommandBarTitleBarBackgroundin interfaceThemePainter
-
getControl
- Specified by:
getControlin interfaceThemePainter
-
getControlLt
- Specified by:
getControlLtin interfaceThemePainter
-
getControlDk
- Specified by:
getControlDkin interfaceThemePainter
-
getControlShadow
- Specified by:
getControlShadowin interfaceThemePainter
-
getTitleBarBackground
- Specified by:
getTitleBarBackgroundin interfaceThemePainter
-
getDockableFrameTitleBarActiveForeground
- Specified by:
getDockableFrameTitleBarActiveForegroundin interfaceThemePainter
-
getDockableFrameTitleBarInactiveForeground
- Specified by:
getDockableFrameTitleBarInactiveForegroundin interfaceThemePainter
-
getTabbedPaneSelectDk
- Specified by:
getTabbedPaneSelectDkin interfaceThemePainter
-
getTabbedPaneSelectLt
- Specified by:
getTabbedPaneSelectLtin interfaceThemePainter
-
getTabAreaBackgroundDk
- Specified by:
getTabAreaBackgroundDkin interfaceThemePainter
-
getTabAreaBackgroundLt
- Specified by:
getTabAreaBackgroundLtin interfaceThemePainter
-
getOptionPaneBannerForeground
- Specified by:
getOptionPaneBannerForegroundin interfaceThemePainter
-
getOptionPaneBannerDk
- Specified by:
getOptionPaneBannerDkin interfaceThemePainter
-
getOptionPaneBannerLt
- Specified by:
getOptionPaneBannerLtin interfaceThemePainter
-
paintSelectedMenu
- Specified by:
paintSelectedMenuin interfaceThemePainter
-
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintMenuItemBackgroundin interfaceThemePainter
-
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) - Specified by:
paintMenuItemBackgroundin interfaceThemePainter
-
paintButtonBackground
public void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintButtonBackgroundin interfaceThemePainter
-
paintButtonBackground
public void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) - Specified by:
paintButtonBackgroundin interfaceThemePainter
-
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:
paintChevronBackgroundin interfaceThemePainter
-
paintDividerBackground
public void paintDividerBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintDividerBackgroundin interfaceThemePainter
-
paintCommandBarBackground
public void paintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCommandBarBackgroundin interfaceThemePainter
-
paintFloatingCommandBarBackground
public void paintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintFloatingCommandBarBackgroundin interfaceThemePainter
-
paintMenuShadow
- Specified by:
paintMenuShadowin interfaceThemePainter
-
paintContentBackground
public void paintContentBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintContentBackgroundin interfaceThemePainter
-
paintStatusBarBackground
public void paintStatusBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintStatusBarBackgroundin interfaceThemePainter
-
paintCommandBarTitlePane
public void paintCommandBarTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCommandBarTitlePanein interfaceThemePainter
-
paintGripper
- Specified by:
paintGripperin interfaceThemePainter
-
paintChevronMore
- Specified by:
paintChevronMorein interfaceThemePainter
-
paintChevronOption
public void paintChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintChevronOptionin interfaceThemePainter
-
paintFloatingChevronOption
public void paintFloatingChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintFloatingChevronOptionin interfaceThemePainter
-
paintDockableFrameBackground
public void paintDockableFrameBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintDockableFrameBackgroundin interfaceThemePainter
-
paintDockableFrameTitlePane
public void paintDockableFrameTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintDockableFrameTitlePanein interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackground
public void paintCollapsiblePaneTitlePaneBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundin interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackgroundEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundEmphasizedin interfaceThemePainter
-
paintCollapsiblePanesBackground
public void paintCollapsiblePanesBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePanesBackgroundin interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasizedin interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackgroundPlain
public void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlainin interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasizedin interfaceThemePainter
-
paintCollapsiblePaneTitlePaneBackgroundSeparator
public void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparatorin interfaceThemePainter
-
getColor
- Specified by:
getColorin interfaceThemePainter
-
paintTabAreaBackground
public void paintTabAreaBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintTabAreaBackgroundin interfaceThemePainter
-
paintTabBackground
public void paintTabBackground(JComponent c, Graphics g, Shape region, Color[] colors, int orientation, int state) - Specified by:
paintTabBackgroundin interfaceThemePainter
-
paintTabContentBorder
public void paintTabContentBorder(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintTabContentBorderin interfaceThemePainter
-
paintSidePaneItemBackground
public void paintSidePaneItemBackground(JComponent c, Graphics g, Rectangle rect, Color[] colors, int orientation, int state) - Specified by:
paintSidePaneItemBackgroundin interfaceThemePainter
-
paintHeaderBoxBackground
public void paintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintHeaderBoxBackgroundin interfaceThemePainter
-
paintToolBarSeparator
public void paintToolBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintToolBarSeparatorin interfaceThemePainter
-
paintPopupMenuSeparator
public void paintPopupMenuSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintPopupMenuSeparatorin interfaceThemePainter
-
paintStatusBarSeparator
public void paintStatusBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintStatusBarSeparatorin interfaceThemePainter
-
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:
fillBackgroundin interfaceThemePainter
-
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:
getSortableTableHeaderColumnCellDecoratorInsetsin interfaceThemePainter
-
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:
paintSortableTableHeaderColumnin interfaceThemePainter
-