001: /*
002: * @(#)ThemePainter.java
003: *
004: * Copyright 2002 - 2004 JIDE Software Inc. All rights reserved.
005: */
006: package com.jidesoft.plaf.basic;
007:
008: import javax.swing.*;
009: import java.awt.*;
010:
011: /**
012: * An interface which defines a list of methods that are used to paint the UI.
013: * <p/>
014: * Please note, this interface is still in development mode.
015: * Future version might break your build if you use it now.
016: */
017: public interface ThemePainter {
018: public static final int STATE_DEFAULT = 0;
019: public static final int STATE_PRESSED = 1;
020: public static final int STATE_ROLLOVER = 2;
021: public static final int STATE_SELECTED = 3;
022: public static final int STATE_DISABLE = 4;
023: public static final int STATE_DISABLE_SELECTED = 5;
024: public static final int STATE_DISABLED_ROLLOVER = 6;
025: public static final int STATE_INACTIVE_ROLLOVER = 7; // this is only used by JideSplitButton. When the button part is rollover, the drop down part will be inactive rollover. And vice versa.
026:
027: void paintSelectedMenu(JComponent c, Graphics g, Rectangle rect,
028: int orientation, int state);
029:
030: void paintButtonBackground(JComponent c, Graphics g,
031: Rectangle rect, int orientation, int state);
032:
033: void paintButtonBackground(JComponent c, Graphics g,
034: Rectangle rect, int orientation, int state,
035: boolean showBorder);
036:
037: void paintMenuItemBackground(JComponent c, Graphics g,
038: Rectangle rect, int orientation, int state);
039:
040: void paintMenuItemBackground(JComponent c, Graphics g,
041: Rectangle rect, int orientation, int state,
042: boolean showBorder);
043:
044: void paintChevronBackground(JComponent c, Graphics g,
045: Rectangle rect, int orientation, int state);
046:
047: void paintDividerBackground(JComponent c, Graphics g,
048: Rectangle rect, int orientation, int state);
049:
050: void paintCommandBarBackground(JComponent c, Graphics g,
051: Rectangle rect, int orientation, int state);
052:
053: void paintFloatingCommandBarBackground(JComponent c, Graphics g,
054: Rectangle rect, int orientation, int state);
055:
056: void paintMenuShadow(JComponent c, Graphics g, Rectangle rect,
057: int orientation, int state);
058:
059: void paintGripper(JComponent c, Graphics g, Rectangle rect,
060: int orientation, int state);
061:
062: void paintChevronMore(JComponent c, Graphics g, Rectangle rect,
063: int orientation, int state);
064:
065: void paintChevronOption(JComponent c, Graphics g, Rectangle rect,
066: int orientation, int state);
067:
068: void paintFloatingChevronOption(JComponent c, Graphics g,
069: Rectangle rect, int orientation, int state);
070:
071: void paintContentBackground(JComponent c, Graphics g,
072: Rectangle rect, int orientation, int state);
073:
074: void paintStatusBarBackground(JComponent c, Graphics g,
075: Rectangle rect, int orientation, int state);
076:
077: void paintCommandBarTitlePane(JComponent c, Graphics g,
078: Rectangle rect, int orientation, int state);
079:
080: void paintDockableFrameBackground(JComponent c, Graphics g,
081: Rectangle rect, int orientation, int state);
082:
083: void paintDockableFrameTitlePane(JComponent c, Graphics g,
084: Rectangle rect, int orientation, int state);
085:
086: void paintCollapsiblePaneTitlePaneBackground(JComponent c,
087: Graphics g, Rectangle rect, int orientation, int state);
088:
089: void paintCollapsiblePaneTitlePaneBackgroundEmphasized(
090: JComponent c, Graphics g, Rectangle rect, int orientation,
091: int state);
092:
093: void paintCollapsiblePanesBackground(JComponent c, Graphics g,
094: Rectangle rect, int orientation, int state);
095:
096: void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(
097: JComponent c, Graphics g, Rectangle rect, int orientation,
098: int state);
099:
100: void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c,
101: Graphics g, Rectangle rect, int orientation, int state);
102:
103: Color getMenuItemBorderColor();
104:
105: Color getGripperForeground();
106:
107: Color getGripperForegroundLt();
108:
109: Color getSeparatorForeground();
110:
111: Color getSeparatorForegroundLt();
112:
113: Color getCollapsiblePaneContentBackground();
114:
115: Color getCollapsiblePaneTitleForeground();
116:
117: Color getCollapsiblePaneTitleForegroundEmphasized();
118:
119: Color getCollapsiblePaneFocusTitleForeground();
120:
121: Color getCollapsiblePaneFocusTitleForegroundEmphasized();
122:
123: ImageIcon getCollapsiblePaneUpIcon();
124:
125: ImageIcon getCollapsiblePaneDownIcon();
126:
127: ImageIcon getCollapsiblePaneUpIconEmphasized();
128:
129: ImageIcon getCollapsiblePaneDownIconEmphasized();
130:
131: ImageIcon getCollapsiblePaneTitleButtonBackground();
132:
133: ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized();
134:
135: ImageIcon getCollapsiblePaneUpMask();
136:
137: ImageIcon getCollapsiblePaneDownMask();
138:
139: Color getBackgroundDk();
140:
141: Color getBackgroundLt();
142:
143: Color getSelectionSelectedDk();
144:
145: Color getSelectionSelectedLt();
146:
147: Color getMenuItemBackground();
148:
149: Color getCommandBarTitleBarBackground();
150:
151: Color getColor(Object key);
152:
153: Color getControl();
154:
155: Color getControlLt();
156:
157: Color getControlDk();
158:
159: Color getControlShadow();
160:
161: Color getDockableFrameTitleBarActiveForeground();
162:
163: Color getDockableFrameTitleBarInactiveForeground();
164:
165: Color getTitleBarBackground();
166:
167: Color getOptionPaneBannerDk();
168:
169: Color getOptionPaneBannerLt();
170:
171: Color getOptionPaneBannerForeground();
172:
173: Color getTabbedPaneSelectDk();
174:
175: Color getTabbedPaneSelectLt();
176:
177: Color getTabAreaBackgroundDk();
178:
179: Color getTabAreaBackgroundLt();
180: }
|