Package com.jidesoft.plaf.office2007
Class Office2007Painter
java.lang.Object
com.jidesoft.plaf.basic.BasicPainter
com.jidesoft.plaf.office2007.Office2007Painter
- All Implemented Interfaces:
ThemePainter
,SwingConstants
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.
-
Field Summary
FieldsFields inherited from class com.jidesoft.plaf.basic.BasicPainter
_bk0, _bk1, _bk2, _bk3, _borderColor, ARROW_TEXT_GAP, H_GAP, V_GAP
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
Fields 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 TypeMethodDescriptionprotected ThemePainter
Creates a default painter that paints something that could not be painted by Office2007Painter.'void
fillBackground
(JComponent c, Graphics g, Rectangle rect, int orientation, int state, Color color) static ThemePainter
void
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
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
-
Field Details
-
IS_MENU_PART_BUTTON
- See Also:
-
-
Constructor Details
-
Office2007Painter
protected Office2007Painter()
-
-
Method Details
-
getInstance
-
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
-
installDefaults
public void installDefaults()- Overrides:
installDefaults
in classBasicPainter
-
uninstallDefaults
public void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicPainter
-
getMenuItemBorderColor
- Specified by:
getMenuItemBorderColor
in interfaceThemePainter
- Overrides:
getMenuItemBorderColor
in classBasicPainter
-
paintContentBackground
public void paintContentBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintContentBackground
in interfaceThemePainter
- Overrides:
paintContentBackground
in classBasicPainter
-
paintButtonBackground
public void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) - Specified by:
paintButtonBackground
in interfaceThemePainter
- Overrides:
paintButtonBackground
in classBasicPainter
-
paintStatusBarBackground
public void paintStatusBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintStatusBarBackground
in interfaceThemePainter
- Overrides:
paintStatusBarBackground
in classBasicPainter
-
paintStatusBarSeparator
public void paintStatusBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintStatusBarSeparator
in interfaceThemePainter
- Overrides:
paintStatusBarSeparator
in classBasicPainter
-
paintMenuShadow
- Specified by:
paintMenuShadow
in interfaceThemePainter
- Overrides:
paintMenuShadow
in classBasicPainter
-
paintMenuItemBackground
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) - Specified by:
paintMenuItemBackground
in interfaceThemePainter
- Overrides:
paintMenuItemBackground
in classBasicPainter
-
paintPopupMenuSeparator
public void paintPopupMenuSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintPopupMenuSeparator
in interfaceThemePainter
- Overrides:
paintPopupMenuSeparator
in classBasicPainter
-
paintDropDownIcon
-
paintCommandBarBackground
public void paintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCommandBarBackground
in interfaceThemePainter
- Overrides:
paintCommandBarBackground
in classBasicPainter
-
paintFloatingCommandBarBackground
public void paintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintFloatingCommandBarBackground
in interfaceThemePainter
- Overrides:
paintFloatingCommandBarBackground
in classBasicPainter
-
paintDockableFrameTitlePane
public void paintDockableFrameTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintDockableFrameTitlePane
in interfaceThemePainter
- Overrides:
paintDockableFrameTitlePane
in classBasicPainter
-
paintCollapsiblePaneTitlePaneBackground
public void paintCollapsiblePaneTitlePaneBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackground
in interfaceThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackground
in classBasicPainter
-
paintCollapsiblePaneTitlePaneBackgroundEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in interfaceThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundEmphasized
in classBasicPainter
-
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
public void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in interfaceThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized
in classBasicPainter
-
paintCollapsiblePaneTitlePaneBackgroundSeparator
public void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePaneTitlePaneBackgroundSeparator
in interfaceThemePainter
- Overrides:
paintCollapsiblePaneTitlePaneBackgroundSeparator
in classBasicPainter
-
paintCollapsiblePanesBackground
public void paintCollapsiblePanesBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintCollapsiblePanesBackground
in interfaceThemePainter
- Overrides:
paintCollapsiblePanesBackground
in classBasicPainter
-
paintSidePaneItemBackground
public void paintSidePaneItemBackground(JComponent c, Graphics g, Rectangle rect, Color[] colors, int orientation, int state) - Specified by:
paintSidePaneItemBackground
in interfaceThemePainter
- Overrides:
paintSidePaneItemBackground
in classBasicPainter
-
paintHeaderBoxBackground
public void paintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) - Specified by:
paintHeaderBoxBackground
in interfaceThemePainter
- Overrides:
paintHeaderBoxBackground
in classBasicPainter
-
paintGripper
- Specified by:
paintGripper
in interfaceThemePainter
- Overrides:
paintGripper
in classBasicPainter
-
getGripperForegroundLt
- Specified by:
getGripperForegroundLt
in interfaceThemePainter
- Overrides:
getGripperForegroundLt
in classBasicPainter
-
getSelectionSelectedDk
- Specified by:
getSelectionSelectedDk
in interfaceThemePainter
- Overrides:
getSelectionSelectedDk
in classBasicPainter
-
getSelectionSelectedLt
- Specified by:
getSelectionSelectedLt
in interfaceThemePainter
- Overrides:
getSelectionSelectedLt
in classBasicPainter
-
getBackgroundDk
- Specified by:
getBackgroundDk
in interfaceThemePainter
- Overrides:
getBackgroundDk
in classBasicPainter
-
getBackgroundLt
- Specified by:
getBackgroundLt
in interfaceThemePainter
- Overrides:
getBackgroundLt
in classBasicPainter
-
fillBackground
public void fillBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, Color color) - Specified by:
fillBackground
in interfaceThemePainter
- Overrides:
fillBackground
in classBasicPainter
-