Searched refs:SynthContext (Results 1 - 25 of 68) sorted by relevance

123

/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthPainter.java73 * @param context SynthContext identifying the <code>JComponent</code> and
81 public void paintArrowButtonBackground(SynthContext context,
90 * @param context SynthContext identifying the <code>JComponent</code> and
98 public void paintArrowButtonBorder(SynthContext context,
109 * @param context SynthContext identifying the <code>JComponent</code> and
119 public void paintArrowButtonForeground(SynthContext context,
128 * @param context SynthContext identifying the <code>JComponent</code> and
136 public void paintButtonBackground(SynthContext context,
144 * @param context SynthContext identifying the <code>JComponent</code> and
152 public void paintButtonBorder(SynthContext contex
[all...]
H A DSynthUI.java31 * SynthUI is used to fetch the SynthContext for a particular Component.
41 * @param c Component requesting SynthContext.
42 * @return SynthContext describing component.
44 public SynthContext getContext(JComponent c);
56 public void paintBorder(SynthContext context, Graphics g, int x,
H A DSynthContext.java32 * a <code>Region</code>. A <code>SynthContext</code> should only be
35 * a <code>SynthContext</code> that is passed to you and expect it to
41 public class SynthContext { class
42 private static final Map<Class, List<SynthContext>> contextMap;
51 contextMap = new HashMap<Class, List<SynthContext>>();
55 static SynthContext getContext(Class type, JComponent component,
58 SynthContext context = null;
61 List<SynthContext> instances = contextMap.get(type);
73 context = (SynthContext)type.newInstance();
82 static void releaseContext(SynthContext contex
95 SynthContext() { method in class:SynthContext
109 public SynthContext(JComponent component, Region region, SynthStyle style, method in class:SynthContext
[all...]
H A DImagePainter.java125 private void paint(SynthContext context, Graphics g, int x, int y, int w,
151 public void paintArrowButtonBackground(SynthContext context,
157 public void paintArrowButtonBorder(SynthContext context,
163 public void paintArrowButtonForeground(SynthContext context,
171 public void paintButtonBackground(SynthContext context,
177 public void paintButtonBorder(SynthContext context,
184 public void paintCheckBoxMenuItemBackground(SynthContext context,
190 public void paintCheckBoxMenuItemBorder(SynthContext context,
197 public void paintCheckBoxBackground(SynthContext context,
203 public void paintCheckBoxBorder(SynthContext contex
[all...]
H A DSynthColorChooserUI.java65 SynthContext context = getContext(chooser, ENABLED);
86 SynthContext context = getContext(c, ENABLED);
96 SynthContext context = getContext(chooser, ENABLED);
126 public SynthContext getContext(JComponent c) {
130 private SynthContext getContext(JComponent c, int state) {
131 return SynthContext.getContext(SynthContext.class, c,
142 * the {@link #paint(SynthContext,Graphics)} method.
149 * @see #paint(SynthContext,Graphics)
153 SynthContext contex
[all...]
H A DSynthMenuBarUI.java77 SynthContext context = getContext(c, ENABLED);
94 SynthContext context = getContext(menuBar, ENABLED);
114 public SynthContext getContext(JComponent c) {
118 private SynthContext getContext(JComponent c, int state) {
119 return SynthContext.getContext(SynthContext.class, c,
130 * the {@link #paint(SynthContext,Graphics)} method.
137 * @see #paint(SynthContext,Graphics)
141 SynthContext context = getContext(c);
153 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DSynthPanelUI.java108 SynthContext context = getContext(p, ENABLED);
116 SynthContext context = getContext(c, ENABLED);
125 public SynthContext getContext(JComponent c) {
129 private SynthContext getContext(JComponent c, int state) {
130 return SynthContext.getContext(SynthContext.class, c,
141 * the {@link #paint(SynthContext,Graphics)} method.
148 * @see #paint(SynthContext,Graphics)
152 SynthContext context = getContext(c);
164 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DSynthPopupMenuUI.java71 SynthContext context = getContext(c, ENABLED);
97 SynthContext context = getContext(popupMenu, ENABLED);
121 public SynthContext getContext(JComponent c) {
125 private SynthContext getContext(JComponent c, int state) {
126 return SynthContext.getContext(SynthContext.class, c,
137 * the {@link #paint(SynthContext,Graphics)} method.
144 * @see #paint(SynthContext,Graphics)
148 SynthContext context = getContext(c);
160 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DSynthRootPaneUI.java67 SynthContext context = getContext(root, ENABLED);
78 public SynthContext getContext(JComponent c) {
82 private SynthContext getContext(JComponent c, int state) {
83 return SynthContext.getContext(SynthContext.class, c,
92 SynthContext context = getContext(c, ENABLED);
107 * the {@link #paint(SynthContext,Graphics)} method.
114 * @see #paint(SynthContext,Graphics)
118 SynthContext context = getContext(c);
130 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DSynthViewportUI.java84 SynthContext context = getContext(c, ENABLED);
129 SynthContext context = getContext(c, ENABLED);
139 public SynthContext getContext(JComponent c) {
143 private SynthContext getContext(JComponent c, int state) {
144 return SynthContext.getContext(SynthContext.class, c,
155 * the {@link #paint(SynthContext,Graphics)} method.
162 * @see #paint(SynthContext,Graphics)
166 SynthContext context = getContext(c);
188 public void paintBorder(SynthContext contex
[all...]
H A DSynthTextAreaUI.java84 SynthContext context = getContext(getComponent(), ENABLED);
96 SynthContext context = getContext(comp, ENABLED);
116 public SynthContext getContext(JComponent c) {
120 private SynthContext getContext(JComponent c, int state) {
121 return SynthContext.getContext(SynthContext.class, c,
128 * the {@link #paint(SynthContext,Graphics)} method.
135 * @see #paint(SynthContext,Graphics)
139 SynthContext context = getContext(c);
155 protected void paint(SynthContext contex
[all...]
H A DSynthMenuItemUI.java93 SynthContext context = getContext(mi, ENABLED);
129 SynthContext accContext = getContext(mi, Region.MENU_ITEM_ACCELERATOR,
141 SynthContext context = getContext(menuItem, ENABLED);
146 SynthContext accContext = getContext(menuItem,
168 public SynthContext getContext(JComponent c) {
172 SynthContext getContext(JComponent c, int state) {
173 return SynthContext.getContext(SynthContext.class, c,
177 SynthContext getContext(JComponent c, Region region) {
181 private SynthContext getContex
[all...]
H A DSynthMenuUI.java77 SynthContext context = getContext(mi, ENABLED);
115 SynthContext accContext = getContext(mi, Region.MENU_ITEM_ACCELERATOR,
141 SynthContext context = getContext(menuItem, ENABLED);
146 SynthContext accContext = getContext(menuItem,
168 public SynthContext getContext(JComponent c) {
172 SynthContext getContext(JComponent c, int state) {
174 return SynthContext.getContext(SynthContext.class, c, region,
178 SynthContext getContext(JComponent c, Region region) {
182 private SynthContext getContex
[all...]
H A DSynthInternalFrameUI.java102 SynthContext context = getContext(c, ENABLED);
125 SynthContext context = getContext(frame, ENABLED);
139 public SynthContext getContext(JComponent c) {
143 private SynthContext getContext(JComponent c, int state) {
144 return SynthContext.getContext(SynthContext.class, c,
199 * the {@link #paint(SynthContext,Graphics)} method.
206 * @see #paint(SynthContext,Graphics)
210 SynthContext context = getContext(c);
222 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DParsedSynthStyle.java93 public SynthPainter getPainter(SynthContext ss) {
110 private SynthPainter getBestPainter(SynthContext context, String method,
281 public void paintArrowButtonBackground(SynthContext context, Graphics g,
288 public void paintArrowButtonBorder(SynthContext context, Graphics g,
295 public void paintArrowButtonForeground(SynthContext context, Graphics g,
304 public void paintButtonBackground(SynthContext context, Graphics g,
311 public void paintButtonBorder(SynthContext context, Graphics g,
318 public void paintCheckBoxMenuItemBackground(SynthContext context,
326 public void paintCheckBoxMenuItemBorder(SynthContext context,
334 public void paintCheckBoxBackground(SynthContext contex
[all...]
H A DSynthSplitPaneUI.java120 SynthContext context = getContext(splitPane, Region.SPLIT_PANE_DIVIDER,
179 SynthContext context = getContext(splitPane, ENABLED);
207 public SynthContext getContext(JComponent c) {
211 private SynthContext getContext(JComponent c, int state) {
212 return SynthContext.getContext(SynthContext.class, c,
216 SynthContext getContext(JComponent c, Region region) {
220 private SynthContext getContext(JComponent c, Region region, int state) {
222 return SynthContext.getContext(SynthContext
[all...]
H A DSynthDesktopIconUI.java120 SynthContext context = getContext(c, ENABLED);
130 SynthContext context = getContext(desktopIcon, ENABLED);
140 public SynthContext getContext(JComponent c) {
144 private SynthContext getContext(JComponent c, int state) {
146 return SynthContext.getContext(SynthContext.class, c, region,
157 * the {@link #paint(SynthContext,Graphics)} method.
164 * @see #paint(SynthContext,Graphics)
168 SynthContext context = getContext(c);
180 * Painting is handled by the {@link #paint(SynthContext,Graphic
[all...]
H A DSynthEditorPaneUI.java81 SynthContext context = getContext(getComponent(), ENABLED);
117 SynthContext context = getContext(comp, ENABLED);
137 public SynthContext getContext(JComponent c) {
141 private SynthContext getContext(JComponent c, int state) {
142 return SynthContext.getContext(SynthContext.class, c,
153 * the {@link #paint(SynthContext,Graphics)} method.
160 * @see #paint(SynthContext,Graphics)
164 SynthContext context = getContext(c);
179 protected void paint(SynthContext contex
[all...]
H A DSynthTableHeaderUI.java79 SynthContext context = getContext(c, ENABLED);
109 SynthContext context = getContext(header, ENABLED);
128 * the {@link #paint(SynthContext,Graphics)} method.
135 * @see #paint(SynthContext,Graphics)
139 SynthContext context = getContext(c);
151 * Painting is handled by the {@link #paint(SynthContext,Graphics)} method.
155 * @see #paint(SynthContext,Graphics)
159 SynthContext context = getContext(c);
172 protected void paint(SynthContext context, Graphics g) {
180 public void paintBorder(SynthContext contex
[all...]
H A DSynthScrollBarUI.java79 SynthContext context = getContext(c, ENABLED);
161 SynthContext context = getContext(scrollbar, ENABLED);
183 public SynthContext getContext(JComponent c) {
187 private SynthContext getContext(JComponent c, int state) {
188 return SynthContext.getContext(SynthContext.class, c,
192 private SynthContext getContext(JComponent c, Region region) {
196 private SynthContext getContext(JComponent c, Region region, int state) {
202 return SynthContext.getContext(SynthContext
[all...]
H A DSynthCheckBoxMenuItemUI.java65 void paintBackground(SynthContext context, Graphics g, JComponent c) {
74 public void paintBorder(SynthContext context, Graphics g, int x,
H A DSynthCheckBoxUI.java64 void paintBackground(SynthContext context, Graphics g, JComponent c) {
73 public void paintBorder(SynthContext context, Graphics g, int x,
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/
H A DSynthIcon.java34 * An icon that is passed a SynthContext. Subclasses need only implement
35 * the variants that take a SynthContext, but must be prepared for the
36 * SynthContext to be null.
41 public static int getIconWidth(Icon icon, SynthContext context) {
51 public static int getIconHeight(Icon icon, SynthContext context) {
61 public static void paintIcon(Icon icon, SynthContext context, Graphics g,
80 public abstract void paintIcon(SynthContext context, Graphics g, int x,
86 * @param context SynthContext requesting the Icon, may be null.
89 public abstract int getIconWidth(SynthContext context);
94 * @param context SynthContext requestin
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DSynthPainterImpl.java33 import javax.swing.plaf.synth.SynthContext;
52 private void paint(Painter p, SynthContext ctx, Graphics g, int x, int y,
90 private void paintBackground(SynthContext ctx, Graphics g, int x, int y,
106 private void paintForeground(SynthContext ctx, Graphics g, int x, int y,
114 private void paintBorder(SynthContext ctx, Graphics g, int x, int y, int w,
122 private void paintBackground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
150 private void paintBorder(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
171 private void paintForeground(SynthContext ctx, Graphics g, int x, int y, int w, int h, int orientation) {
196 * @param context SynthContext identifying the <code>JComponent</code> and
204 public void paintArrowButtonBackground(SynthContext contex
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKIconFactory.java155 SynthContext.class, Graphics.class, int.class,
166 public void paintIcon(SynthContext context, Graphics g,
174 public int getIconWidth(SynthContext context) {
178 public int getIconHeight(SynthContext context) {
206 int getIconDimension(SynthContext context) {
239 public void paintIcon(SynthContext context, Graphics g, int x, int y,
247 int getIconDimension(SynthContext context) {
253 private void updateSizeIfNecessary(SynthContext context) {
266 SynthContext.class, Graphics.class, int.class,
280 public void paintIcon(SynthContext contex
[all...]

Completed in 1633 milliseconds

123