Debian Codegraph @

src/com/jidesoft/plaf/basic/ThemePainter.java

raw
1 /*
2 * @(#)ThemePainter.java
3 *
4 * Copyright 2002 - 2004 JIDE Software Inc. All rights reserved.
5 */
6 package com.jidesoft.plaf.basic;
7
8 import javax.swing.*;
9 import java.awt.*;
10
11 /**
12 * An interface which defines a list of methods that are used to paint the UI.
13 * <p/>
14 * Please note, this interface is still in development mode. Future version might break your build if you use it now.
15 */
16 public interface ThemePainter {
17 public static final int STATE_DEFAULT = 0;
18 public static final int STATE_PRESSED = 1;
19 public static final int STATE_ROLLOVER = 2;
20 public static final int STATE_SELECTED = 3;
21 public static final int STATE_DISABLE = 4;
22 public static final int STATE_DISABLE_SELECTED = 5;
23 public static final int STATE_DISABLE_ROLLOVER = 6;
24 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.
25
26 void paintSelectedMenu(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
27
28 void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
29
30 void paintButtonBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder);
31
32 void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
33
34 void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder);
35
36 void paintChevronBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
37
38 void paintDividerBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
39
40 void paintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
41
42 void paintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
43
44 void paintMenuShadow(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
45
46 void paintGripper(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
47
48 void paintChevronMore(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
49
50 void paintChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
51
52 void paintFloatingChevronOption(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
53
54 void paintContentBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
55
56 void paintStatusBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
57
58 void paintCommandBarTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
59
60 void paintDockableFrameBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
61
62 void paintDockableFrameTitlePane(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
63
64 void paintCollapsiblePaneTitlePaneBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
65
66 void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
67
68 void paintCollapsiblePanesBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
69
70 void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
71
72 void paintCollapsiblePaneTitlePaneBackgroundPlain(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
73
74 void paintCollapsiblePaneTitlePaneBackgroundSeparatorEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
75
76 void paintCollapsiblePaneTitlePaneBackgroundSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
77
78 void paintTabAreaBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
79
80 void paintTabBackground(JComponent c, Graphics g, Shape region, Color[] colors, int orientation, int state);
81
82 void paintSidePaneItemBackground(JComponent c, Graphics g, Rectangle rect, Color[] colors, int orientation, int state);
83
84 void paintTabContentBorder(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
85
86 void paintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
87
88 void paintToolBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
89
90 void paintStatusBarSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
91
92 void paintPopupMenuSeparator(JComponent c, Graphics g, Rectangle rect, int orientation, int state);
93
94 Insets getSortableTableHeaderColumnCellDecoratorInsets(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex);
95
96 void paintSortableTableHeaderColumn(JComponent c, Graphics g, Rectangle rect, int orientation, int state, int sortOrder, Icon sortIcon, int orderIndex, Color indexColor, boolean paintIndex);
97
98 void fillBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, Color color);
99
100 Color getMenuItemBorderColor();
101
102 Color getGripperForeground();
103
104 Color getGripperForegroundLt();
105
106 Color getSeparatorForeground();
107
108 Color getSeparatorForegroundLt();
109
110 Color getCollapsiblePaneContentBackground();
111
112 Color getCollapsiblePaneTitleForeground();
113
114 Color getCollapsiblePaneTitleForegroundEmphasized();
115
116 Color getCollapsiblePaneFocusTitleForeground();
117
118 Color getCollapsiblePaneFocusTitleForegroundEmphasized();
119
120 ImageIcon getCollapsiblePaneUpIcon();
121
122 ImageIcon getCollapsiblePaneDownIcon();
123
124 ImageIcon getCollapsiblePaneUpIconEmphasized();
125
126 ImageIcon getCollapsiblePaneDownIconEmphasized();
127
128 ImageIcon getCollapsiblePaneTitleButtonBackground();
129
130 ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized();
131
132 ImageIcon getCollapsiblePaneUpMask();
133
134 ImageIcon getCollapsiblePaneDownMask();
135
136 Color getBackgroundDk();
137
138 Color getBackgroundLt();
139
140 Color getSelectionSelectedDk();
141
142 Color getSelectionSelectedLt();
143
144 Color getMenuItemBackground();
145
146 Color getCommandBarTitleBarBackground();
147
148 Color getColor(Object key);
149
150 Color getControl();
151
152 Color getControlLt();
153
154 Color getControlDk();
155
156 Color getControlShadow();
157
158 Color getDockableFrameTitleBarActiveForeground();
159
160 Color getDockableFrameTitleBarInactiveForeground();
161
162 Color getTitleBarBackground();
163
164 Color getOptionPaneBannerDk();
165
166 Color getOptionPaneBannerLt();
167
168 Color getOptionPaneBannerForeground();
169
170 Color getTabbedPaneSelectDk();
171
172 Color getTabbedPaneSelectLt();
173
174 Color getTabAreaBackgroundDk();
175
176 Color getTabAreaBackgroundLt();
177 }