ThemePainter
, SwingConstants
AquaPainter
, EclipsePainter
, MetalPainter
, Office2003Painter
, Office2007Painter
, XertoPainter
public class BasicPainter extends Object implements SwingConstants, ThemePainter
Modifier and Type | Field | Description |
---|---|---|
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.
|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
STATE_DEFAULT, STATE_DISABLE, STATE_DISABLE_ROLLOVER, STATE_DISABLE_SELECTED, STATE_INACTIVE_ROLLOVER, STATE_PRESSED, STATE_ROLLOVER, STATE_SELECTED
Constructor | Description |
---|---|
BasicPainter() |
protected Color _bk0
protected Color _bk1
protected Color _bk2
protected Color _bk3
protected Color _borderColor
public static int V_GAP
public static int H_GAP
public static int ARROW_TEXT_GAP
public static ThemePainter getInstance()
public void installDefaults()
public void uninstallDefaults()
public Color getGripperForeground()
getGripperForeground
in interface ThemePainter
public Color getGripperForegroundLt()
getGripperForegroundLt
in interface ThemePainter
public Color getSeparatorForeground()
getSeparatorForeground
in interface ThemePainter
public Color getSeparatorForegroundLt()
getSeparatorForegroundLt
in interface ThemePainter
public Color getCollapsiblePaneContentBackground()
getCollapsiblePaneContentBackground
in interface ThemePainter
public Color getCollapsiblePaneTitleForeground()
getCollapsiblePaneTitleForeground
in interface ThemePainter
public Color getCollapsiblePaneTitleForegroundEmphasized()
getCollapsiblePaneTitleForegroundEmphasized
in interface ThemePainter
public Color getCollapsiblePaneFocusTitleForegroundEmphasized()
getCollapsiblePaneFocusTitleForegroundEmphasized
in interface ThemePainter
public Color getCollapsiblePaneFocusTitleForeground()
getCollapsiblePaneFocusTitleForeground
in interface ThemePainter
public ImageIcon getCollapsiblePaneUpIcon()
getCollapsiblePaneUpIcon
in interface ThemePainter
public ImageIcon getCollapsiblePaneDownIcon()
getCollapsiblePaneDownIcon
in interface ThemePainter
public ImageIcon getCollapsiblePaneUpIconEmphasized()
getCollapsiblePaneUpIconEmphasized
in interface ThemePainter
public ImageIcon getCollapsiblePaneDownIconEmphasized()
getCollapsiblePaneDownIconEmphasized
in interface ThemePainter
public ImageIcon getCollapsiblePaneTitleButtonBackground()
getCollapsiblePaneTitleButtonBackground
in interface ThemePainter
public ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized()
getCollapsiblePaneTitleButtonBackgroundEmphasized
in interface ThemePainter
public ImageIcon getCollapsiblePaneUpMask()
getCollapsiblePaneUpMask
in interface ThemePainter
public ImageIcon getCollapsiblePaneDownMask()
getCollapsiblePaneDownMask
in interface ThemePainter
public Color getBackgroundDk()
getBackgroundDk
in interface ThemePainter
public Color getBackgroundLt()
getBackgroundLt
in interface ThemePainter
public Color getSelectionSelectedDk()
getSelectionSelectedDk
in interface ThemePainter
public Color getSelectionSelectedLt()
getSelectionSelectedLt
in interface ThemePainter
public Color getMenuItemBorderColor()
getMenuItemBorderColor
in interface ThemePainter
public Color getMenuItemBackground()
getMenuItemBackground
in interface ThemePainter
public Color getCommandBarTitleBarBackground()
getCommandBarTitleBarBackground
in interface ThemePainter
public Color getControl()
getControl
in interface ThemePainter
public Color getControlLt()
getControlLt
in interface ThemePainter
public Color getControlDk()
getControlDk
in interface ThemePainter
public Color getControlShadow()
getControlShadow
in interface ThemePainter
public Color getTitleBarBackground()
getTitleBarBackground
in interface ThemePainter
public Color getDockableFrameTitleBarActiveForeground()
getDockableFrameTitleBarActiveForeground
in interface ThemePainter
public Color getDockableFrameTitleBarInactiveForeground()
getDockableFrameTitleBarInactiveForeground
in interface ThemePainter
public Color getTabbedPaneSelectDk()
getTabbedPaneSelectDk
in interface ThemePainter
public Color getTabbedPaneSelectLt()
getTabbedPaneSelectLt
in interface ThemePainter
public Color getTabAreaBackgroundDk()
getTabAreaBackgroundDk
in interface ThemePainter
public Color getTabAreaBackgroundLt()
getTabAreaBackgroundLt
in interface ThemePainter
public Color getOptionPaneBannerForeground()
getOptionPaneBannerForeground
in interface ThemePainter
public Color getOptionPaneBannerDk()
getOptionPaneBannerDk
in interface ThemePainter
public Color getOptionPaneBannerLt()
getOptionPaneBannerLt
in interface ThemePainter
public void paintSelectedMenu(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintSelectedMenu
in interface ThemePainter
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintMenuItemBackground
in interface ThemePainter
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder)
paintMenuItemBackground
in interface ThemePainter
public void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintButtonBackground
in interface ThemePainter
public void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder)
paintButtonBackground
in interface ThemePainter
protected void paintBackground(JComponent c, Graphics g, Rectangle rect, Color borderColor, Color background, int orientation)
public void paintChevronBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintChevronBackground
in interface ThemePainter
public void paintDividerBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintDividerBackground
in interface ThemePainter
public void paintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCommandBarBackground
in interface ThemePainter
public void paintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintFloatingCommandBarBackground
in interface ThemePainter
public void paintMenuShadow(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintMenuShadow
in interface ThemePainter
public void paintContentBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintContentBackground
in interface ThemePainter
public void paintStatusBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintStatusBarBackground
in interface ThemePainter
public void paintCommandBarTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCommandBarTitlePane
in interface ThemePainter
public void paintGripper(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintGripper
in interface ThemePainter
public void paintChevronMore(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintChevronMore
in interface ThemePainter
public void paintChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintChevronOption
in interface ThemePainter
public void paintFloatingChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintFloatingChevronOption
in interface ThemePainter
public void paintDockableFrameBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintDockableFrameBackground
in interface ThemePainter
public void paintDockableFrameTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintDockableFrameTitlePane
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackground
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in interface ThemePainter
public void paintCollapsiblePanesBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePanesBackground
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackgroundPlain
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in interface ThemePainter
public void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintCollapsiblePaneTitlePaneBackgroundSeparator
in interface ThemePainter
public Color getColor(Object key)
getColor
in interface ThemePainter
public void paintTabAreaBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintTabAreaBackground
in interface ThemePainter
public void paintTabBackground(JComponent c, Graphics g, Shape region, Color[] colors, int orientation, int state)
paintTabBackground
in interface ThemePainter
public void paintTabContentBorder(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintTabContentBorder
in interface ThemePainter
public void paintSidePaneItemBackground(JComponent c, Graphics g, Rectangle rect, Color[] colors, int orientation, int state)
paintSidePaneItemBackground
in interface ThemePainter
public void paintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintHeaderBoxBackground
in interface ThemePainter
public void paintToolBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintToolBarSeparator
in interface ThemePainter
public void paintPopupMenuSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintPopupMenuSeparator
in interface ThemePainter
public void paintStatusBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state)
paintStatusBarSeparator
in interface ThemePainter
protected boolean shouldDisplayOnTop()
public void fillBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, Color color)
fillBackground
in interface ThemePainter
public Insets getSortableTableHeaderColumnCellDecoratorInsets(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex)
getSortableTableHeaderColumnCellDecoratorInsets
in interface ThemePainter
public void paintSortableTableHeaderColumn(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex)
paintSortableTableHeaderColumn
in interface ThemePainter