com.jidesoft.plaf.office2007
Class Office2007Painter
java.lang.Object
com.jidesoft.plaf.basic.BasicPainter
com.jidesoft.plaf.office2007.Office2007Painter
- All Implemented Interfaces:
- ThemePainter, SwingConstants
public class Office2007Painter
- extends BasicPainter
Painter for Office2007 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 |
protected ThemePainter |
createDefaultPainter()
Creates a default painter that paints something that could not be painted by Office2007Painter.'
By default, it returns an Office2003Painter. |
void |
fillBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
Color color)
|
Color |
getBackgroundDk()
|
Color |
getBackgroundLt()
|
ThemePainter |
getDefaultPainter()
|
Color |
getGripperForegroundLt()
|
static ThemePainter |
getInstance()
|
Color |
getMenuItemBorderColor()
|
Color |
getSelectionSelectedDk()
|
Color |
getSelectionSelectedLt()
|
void |
installDefaults()
|
void |
paintButtonBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
|
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 |
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 |
paintDockableFrameTitlePane(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
|
void |
paintDropDownIcon(Graphics g,
int x,
int y)
|
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,
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 |
paintSidePaneItemBackground(JComponent c,
Graphics g,
Rectangle rect,
Color[] colors,
int orientation,
int state)
|
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 |
uninstallDefaults()
|
Methods inherited from class com.jidesoft.plaf.basic.BasicPainter |
getCollapsiblePaneContentBackground, getCollapsiblePaneDownIcon, getCollapsiblePaneDownIconEmphasized, getCollapsiblePaneDownMask, getCollapsiblePaneFocusTitleForeground, getCollapsiblePaneFocusTitleForegroundEmphasized, getCollapsiblePaneTitleButtonBackground, getCollapsiblePaneTitleButtonBackgroundEmphasized, getCollapsiblePaneTitleForeground, getCollapsiblePaneTitleForegroundEmphasized, getCollapsiblePaneUpIcon, getCollapsiblePaneUpIconEmphasized, getCollapsiblePaneUpMask, getColor, getCommandBarTitleBarBackground, getControl, getControlDk, getControlLt, getControlShadow, getDockableFrameTitleBarActiveForeground, getDockableFrameTitleBarInactiveForeground, getGripperForeground, getMenuItemBackground, getOptionPaneBannerDk, getOptionPaneBannerForeground, getOptionPaneBannerLt, getSeparatorForeground, getSeparatorForegroundLt, getSortableTableHeaderColumnCellDecoratorInsets, getTabAreaBackgroundDk, getTabAreaBackgroundLt, getTabbedPaneSelectDk, getTabbedPaneSelectLt, getTitleBarBackground, paintBackground, paintButtonBackground, paintChevronBackground, paintChevronMore, paintChevronOption, paintCollapsiblePaneTitlePaneBackgroundPlain, paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized, paintCommandBarTitlePane, paintDividerBackground, paintDockableFrameBackground, paintFloatingChevronOption, paintMenuItemBackground, paintSelectedMenu, paintSortableTableHeaderColumn, paintTabAreaBackground, paintTabBackground, paintTabContentBorder, paintToolBarSeparator, shouldDisplayOnTop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IS_MENU_PART_BUTTON
public static final String IS_MENU_PART_BUTTON
- See Also:
- Constant Field Values
Office2007Painter
protected Office2007Painter()
getInstance
public static ThemePainter getInstance()
createDefaultPainter
protected ThemePainter createDefaultPainter()
- Creates a default painter that paints something that could not be painted by Office2007Painter.'
By default, it returns an Office2003Painter. However, if you doesn't like the painting theme of
Office2003Painter, you could override this method to offer another default painter.
- Returns:
- the default painter instance.
getDefaultPainter
public ThemePainter getDefaultPainter()
installDefaults
public void installDefaults()
- Overrides:
installDefaults
in class BasicPainter
uninstallDefaults
public void uninstallDefaults()
- Overrides:
uninstallDefaults
in class BasicPainter
getMenuItemBorderColor
public Color getMenuItemBorderColor()
- Specified by:
getMenuItemBorderColor
in interface ThemePainter
- Overrides:
getMenuItemBorderColor
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
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
paintStatusBarBackground
public void paintStatusBarBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state)
- Specified by:
paintStatusBarBackground
in interface ThemePainter
- Overrides:
paintStatusBarBackground
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
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
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c,
Graphics g,
Rectangle rect,
int orientation,
int state,
boolean showBorder)
- Specified by:
paintMenuItemBackground
in interface ThemePainter
- Overrides:
paintMenuItemBackground
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
paintDropDownIcon
public void paintDropDownIcon(Graphics g,
int x,
int y)
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
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
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
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
paintSidePaneItemBackground
public void paintSidePaneItemBackground(JComponent c,
Graphics g,
Rectangle rect,
Color[] colors,
int orientation,
int state)
- Specified by:
paintSidePaneItemBackground
in interface ThemePainter
- Overrides:
paintSidePaneItemBackground
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
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
getGripperForegroundLt
public Color getGripperForegroundLt()
- Specified by:
getGripperForegroundLt
in interface ThemePainter
- Overrides:
getGripperForegroundLt
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
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
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