com.jidesoft.plaf.office2003
Class Office2003Painter
java.lang.Object
com.jidesoft.plaf.basic.BasicPainter
com.jidesoft.plaf.office2003.Office2003Painter
- All Implemented Interfaces:
- ThemePainter, SwingConstants
public class Office2003Painter
- extends BasicPainter
Painter for Office2003 L&F.
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.
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 |
addTheme(Office2003Theme theme)
|
void |
fillBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
Color color)
|
Collection<Office2003Theme> |
getAvailableThemes()
|
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)
|
String |
getColorName()
|
Color |
getCommandBarTitleBarBackground()
|
Color |
getControl()
|
Color |
getControlDk()
|
Color |
getControlLt()
|
Color |
getControlShadow()
|
Office2003Theme |
getCurrentTheme()
|
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()
|
Color |
getTabbedPaneSelectDk()
|
Color |
getTabbedPaneSelectLt()
|
Office2003Theme |
getTheme(String themeName)
|
Color |
getTitleBarBackground()
|
void |
installDefaults()
|
static boolean |
isNative()
|
protected void |
paintBackground(JComponent c,
Graphics2D g2d,
Rectangle rect,
Color borderColor,
Color startColor,
Color endColor,
int orientation)
|
void |
paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
|
protected void |
paintChevron(JComponent c,
Graphics2D g2d,
Color color1,
Color color2,
Rectangle rect,
int orientation)
|
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 |
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 |
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 |
paintMenuShadow(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintPopupMenuSeparator(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 |
paintToolBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
removeTheme(String themeName)
|
void |
setColorName(String colorName)
|
static void |
setNative(boolean aNative)
|
void |
uninstallDefaults()
|
Methods inherited from class com.jidesoft.plaf.basic.BasicPainter |
getSortableTableHeaderColumnCellDecoratorInsets, getTabAreaBackgroundDk, getTabAreaBackgroundLt, paintBackground, paintButtonBackground, paintCommandBarTitlePane, paintFloatingChevronOption, paintMenuItemBackground, paintMenuItemBackground, paintSelectedMenu, paintSidePaneItemBackground, paintSortableTableHeaderColumn, paintStatusBarBackground, paintTabBackground, paintTabContentBorder, shouldDisplayOnTop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Office2003Painter
protected Office2003Painter()
getInstance
public static ThemePainter getInstance()
addTheme
public void addTheme(Office2003Theme theme)
getTheme
public Office2003Theme getTheme(String themeName)
removeTheme
public void removeTheme(String themeName)
getAvailableThemes
public Collection<Office2003Theme> getAvailableThemes()
installDefaults
public void installDefaults()
- Overrides:
installDefaults
in class BasicPainter
uninstallDefaults
public void uninstallDefaults()
- Overrides:
uninstallDefaults
in class BasicPainter
getColorName
public String getColorName()
setColorName
public void setColorName(String colorName)
isNative
public static boolean isNative()
setNative
public static void setNative(boolean aNative)
getCurrentTheme
public Office2003Theme getCurrentTheme()
paintButtonBackground
public void paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
- Specified by:
paintButtonBackground
in interface ThemePainter
- Overrides:
paintButtonBackground
in class BasicPainter
paintBackground
protected void paintBackground(JComponent c,
Graphics2D g2d,
Rectangle rect,
Color borderColor,
Color startColor,
Color endColor,
int orientation)
paintChevronBackground
public void paintChevronBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronBackground
in interface ThemePainter
- Overrides:
paintChevronBackground
in class BasicPainter
paintDividerBackground
public void paintDividerBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDividerBackground
in interface ThemePainter
- Overrides:
paintDividerBackground
in class BasicPainter
paintChevron
protected void paintChevron(JComponent c,
Graphics2D g2d,
Color color1,
Color color2,
Rectangle rect,
int orientation)
getColor
public Color getColor(Object key)
- Specified by:
getColor
in interface ThemePainter
- Overrides:
getColor
in class BasicPainter
paintCommandBarBackground
public void paintCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCommandBarBackground
in interface ThemePainter
- Overrides:
paintCommandBarBackground
in class BasicPainter
paintFloatingCommandBarBackground
public void paintFloatingCommandBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintFloatingCommandBarBackground
in interface ThemePainter
- Overrides:
paintFloatingCommandBarBackground
in class BasicPainter
paintMenuShadow
public void paintMenuShadow(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintMenuShadow
in interface ThemePainter
- Overrides:
paintMenuShadow
in class BasicPainter
getControl
public Color getControl()
- Specified by:
getControl
in interface ThemePainter
- Overrides:
getControl
in class BasicPainter
getControlLt
public Color getControlLt()
- Specified by:
getControlLt
in interface ThemePainter
- Overrides:
getControlLt
in class BasicPainter
getControlDk
public Color getControlDk()
- Specified by:
getControlDk
in interface ThemePainter
- Overrides:
getControlDk
in class BasicPainter
getControlShadow
public Color getControlShadow()
- Specified by:
getControlShadow
in interface ThemePainter
- Overrides:
getControlShadow
in class BasicPainter
getGripperForeground
public Color getGripperForeground()
- Specified by:
getGripperForeground
in interface ThemePainter
- Overrides:
getGripperForeground
in class BasicPainter
getGripperForegroundLt
public Color getGripperForegroundLt()
- Specified by:
getGripperForegroundLt
in interface ThemePainter
- Overrides:
getGripperForegroundLt
in class BasicPainter
getSeparatorForeground
public Color getSeparatorForeground()
- Specified by:
getSeparatorForeground
in interface ThemePainter
- Overrides:
getSeparatorForeground
in class BasicPainter
getSeparatorForegroundLt
public Color getSeparatorForegroundLt()
- Specified by:
getSeparatorForegroundLt
in interface ThemePainter
- Overrides:
getSeparatorForegroundLt
in class BasicPainter
getCollapsiblePaneContentBackground
public Color getCollapsiblePaneContentBackground()
- Specified by:
getCollapsiblePaneContentBackground
in interface ThemePainter
- Overrides:
getCollapsiblePaneContentBackground
in class BasicPainter
getCollapsiblePaneTitleForeground
public Color getCollapsiblePaneTitleForeground()
- Specified by:
getCollapsiblePaneTitleForeground
in interface ThemePainter
- Overrides:
getCollapsiblePaneTitleForeground
in class BasicPainter
getCollapsiblePaneFocusTitleForeground
public Color getCollapsiblePaneFocusTitleForeground()
- Specified by:
getCollapsiblePaneFocusTitleForeground
in interface ThemePainter
- Overrides:
getCollapsiblePaneFocusTitleForeground
in class BasicPainter
getCollapsiblePaneTitleForegroundEmphasized
public Color getCollapsiblePaneTitleForegroundEmphasized()
- Specified by:
getCollapsiblePaneTitleForegroundEmphasized
in interface ThemePainter
- Overrides:
getCollapsiblePaneTitleForegroundEmphasized
in class BasicPainter
getCollapsiblePaneFocusTitleForegroundEmphasized
public Color getCollapsiblePaneFocusTitleForegroundEmphasized()
- Specified by:
getCollapsiblePaneFocusTitleForegroundEmphasized
in interface ThemePainter
- Overrides:
getCollapsiblePaneFocusTitleForegroundEmphasized
in class BasicPainter
getCollapsiblePaneUpIcon
public ImageIcon getCollapsiblePaneUpIcon()
- Specified by:
getCollapsiblePaneUpIcon
in interface ThemePainter
- Overrides:
getCollapsiblePaneUpIcon
in class BasicPainter
getCollapsiblePaneDownIcon
public ImageIcon getCollapsiblePaneDownIcon()
- Specified by:
getCollapsiblePaneDownIcon
in interface ThemePainter
- Overrides:
getCollapsiblePaneDownIcon
in class BasicPainter
getCollapsiblePaneUpIconEmphasized
public ImageIcon getCollapsiblePaneUpIconEmphasized()
- Specified by:
getCollapsiblePaneUpIconEmphasized
in interface ThemePainter
- Overrides:
getCollapsiblePaneUpIconEmphasized
in class BasicPainter
getCollapsiblePaneDownIconEmphasized
public ImageIcon getCollapsiblePaneDownIconEmphasized()
- Specified by:
getCollapsiblePaneDownIconEmphasized
in interface ThemePainter
- Overrides:
getCollapsiblePaneDownIconEmphasized
in class BasicPainter
getCollapsiblePaneTitleButtonBackground
public ImageIcon getCollapsiblePaneTitleButtonBackground()
- Specified by:
getCollapsiblePaneTitleButtonBackground
in interface ThemePainter
- Overrides:
getCollapsiblePaneTitleButtonBackground
in class BasicPainter
getCollapsiblePaneTitleButtonBackgroundEmphasized
public ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized()
- Specified by:
getCollapsiblePaneTitleButtonBackgroundEmphasized
in interface ThemePainter
- Overrides:
getCollapsiblePaneTitleButtonBackgroundEmphasized
in class BasicPainter
getCollapsiblePaneUpMask
public ImageIcon getCollapsiblePaneUpMask()
- Specified by:
getCollapsiblePaneUpMask
in interface ThemePainter
- Overrides:
getCollapsiblePaneUpMask
in class BasicPainter
getCollapsiblePaneDownMask
public ImageIcon getCollapsiblePaneDownMask()
- Specified by:
getCollapsiblePaneDownMask
in interface ThemePainter
- Overrides:
getCollapsiblePaneDownMask
in class BasicPainter
getBackgroundDk
public Color getBackgroundDk()
- Specified by:
getBackgroundDk
in interface ThemePainter
- Overrides:
getBackgroundDk
in class BasicPainter
getBackgroundLt
public Color getBackgroundLt()
- Specified by:
getBackgroundLt
in interface ThemePainter
- Overrides:
getBackgroundLt
in class BasicPainter
getSelectionSelectedDk
public Color getSelectionSelectedDk()
- Specified by:
getSelectionSelectedDk
in interface ThemePainter
- Overrides:
getSelectionSelectedDk
in class BasicPainter
getSelectionSelectedLt
public Color getSelectionSelectedLt()
- Specified by:
getSelectionSelectedLt
in interface ThemePainter
- Overrides:
getSelectionSelectedLt
in class BasicPainter
getMenuItemBorderColor
public Color getMenuItemBorderColor()
- Specified by:
getMenuItemBorderColor
in interface ThemePainter
- Overrides:
getMenuItemBorderColor
in class BasicPainter
getMenuItemBackground
public Color getMenuItemBackground()
- Specified by:
getMenuItemBackground
in interface ThemePainter
- Overrides:
getMenuItemBackground
in class BasicPainter
getCommandBarTitleBarBackground
public Color getCommandBarTitleBarBackground()
- Specified by:
getCommandBarTitleBarBackground
in interface ThemePainter
- Overrides:
getCommandBarTitleBarBackground
in class BasicPainter
getDockableFrameTitleBarActiveForeground
public Color getDockableFrameTitleBarActiveForeground()
- Specified by:
getDockableFrameTitleBarActiveForeground
in interface ThemePainter
- Overrides:
getDockableFrameTitleBarActiveForeground
in class BasicPainter
getDockableFrameTitleBarInactiveForeground
public Color getDockableFrameTitleBarInactiveForeground()
- Specified by:
getDockableFrameTitleBarInactiveForeground
in interface ThemePainter
- Overrides:
getDockableFrameTitleBarInactiveForeground
in class BasicPainter
getTitleBarBackground
public Color getTitleBarBackground()
- Specified by:
getTitleBarBackground
in interface ThemePainter
- Overrides:
getTitleBarBackground
in class BasicPainter
getOptionPaneBannerForeground
public Color getOptionPaneBannerForeground()
- Specified by:
getOptionPaneBannerForeground
in interface ThemePainter
- Overrides:
getOptionPaneBannerForeground
in class BasicPainter
getTabbedPaneSelectDk
public Color getTabbedPaneSelectDk()
- Specified by:
getTabbedPaneSelectDk
in interface ThemePainter
- Overrides:
getTabbedPaneSelectDk
in class BasicPainter
getTabbedPaneSelectLt
public Color getTabbedPaneSelectLt()
- Specified by:
getTabbedPaneSelectLt
in interface ThemePainter
- Overrides:
getTabbedPaneSelectLt
in class BasicPainter
getOptionPaneBannerDk
public Color getOptionPaneBannerDk()
- Specified by:
getOptionPaneBannerDk
in interface ThemePainter
- Overrides:
getOptionPaneBannerDk
in class BasicPainter
getOptionPaneBannerLt
public Color getOptionPaneBannerLt()
- Specified by:
getOptionPaneBannerLt
in interface ThemePainter
- Overrides:
getOptionPaneBannerLt
in class BasicPainter
paintContentBackground
public void paintContentBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintContentBackground
in interface ThemePainter
- Overrides:
paintContentBackground
in class BasicPainter
paintGripper
public void paintGripper(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintGripper
in interface ThemePainter
- Overrides:
paintGripper
in class BasicPainter
paintChevronMore
public void paintChevronMore(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronMore
in interface ThemePainter
- Overrides:
paintChevronMore
in class BasicPainter
paintChevronOption
public void paintChevronOption(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintChevronOption
in interface ThemePainter
- Overrides:
paintChevronOption
in class BasicPainter
paintDockableFrameBackground
public void paintDockableFrameBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDockableFrameBackground
in interface ThemePainter
- Overrides:
paintDockableFrameBackground
in class BasicPainter
paintDockableFrameTitlePane
public void paintDockableFrameTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintDockableFrameTitlePane
in interface ThemePainter
- Overrides:
paintDockableFrameTitlePane
in class BasicPainter
paintCollapsiblePaneTitlePaneBackground
public void paintCollapsiblePaneTitlePaneBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackground
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackground
in class BasicPainter
paintCollapsiblePaneTitlePaneBackgroundEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in class BasicPainter
paintCollapsiblePanesBackground
public void paintCollapsiblePanesBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePanesBackground
in interface ThemePainter
- Overrides:
paintCollapsiblePanesBackground
in class BasicPainter
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized
in class BasicPainter
paintCollapsiblePaneTitlePaneBackgroundPlain
public void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundPlain
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundPlain
in class BasicPainter
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in class BasicPainter
paintCollapsiblePaneTitlePaneBackgroundSeparator
public void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparator
in interface ThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundSeparator
in class BasicPainter
paintTabAreaBackground
public void paintTabAreaBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintTabAreaBackground
in interface ThemePainter
- Overrides:
paintTabAreaBackground
in class BasicPainter
paintHeaderBoxBackground
public void paintHeaderBoxBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintHeaderBoxBackground
in interface ThemePainter
- Overrides:
paintHeaderBoxBackground
in class BasicPainter
paintToolBarSeparator
public void paintToolBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintToolBarSeparator
in interface ThemePainter
- Overrides:
paintToolBarSeparator
in class BasicPainter
paintPopupMenuSeparator
public void paintPopupMenuSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintPopupMenuSeparator
in interface ThemePainter
- Overrides:
paintPopupMenuSeparator
in class BasicPainter
paintStatusBarSeparator
public void paintStatusBarSeparator(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintStatusBarSeparator
in interface ThemePainter
- Overrides:
paintStatusBarSeparator
in class BasicPainter
fillBackground
public void fillBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
Color color)
- Specified by:
fillBackground
in interface ThemePainter
- Overrides:
fillBackground
in class BasicPainter