Lines Matching refs:context

90         SynthContext context = getContext(c, ENABLED);
92 style = SynthLookAndFeel.updateStyle(context, this);
93 setCellLength(style.getInt(context, "ProgressBar.cellLength", 1));
94 setCellSpacing(style.getInt(context, "ProgressBar.cellSpacing", 0));
95 progressPadding = style.getInt(context,
97 paintOutsideClip = style.getBoolean(context,
99 rotateText = style.getBoolean(context,
101 tileWhenIndeterminate = style.getBoolean(context, "ProgressBar.tileWhenIndeterminate", false);
102 tileWidth = style.getInt(context, "ProgressBar.tileWidth", 15);
117 context.dispose();
125 SynthContext context = getContext(progressBar, ENABLED);
127 style.uninstallDefaults(context);
128 context.dispose();
157 SynthContext context = getContext(c);
158 Font font = context.getStyle().getFont(context);
160 context.dispose();
209 SynthContext context = getContext(c);
211 SynthLookAndFeel.update(context, g);
212 context.getPainter().paintProgressBarBackground(context,
215 paint(context, g);
216 context.dispose();
230 SynthContext context = getContext(c);
232 paint(context, g);
233 context.dispose();
239 * @param context context for the component being painted
243 protected void paint(SynthContext context, Graphics g) {
244 JProgressBar pBar = (JProgressBar)context.getComponent();
299 context.getPainter().paintProgressBarForeground(
300 context, g, i, y, tileWidth, height, pBar.getOrientation());
305 context.getPainter().paintProgressBarForeground(
306 context, g, x, i, width, tileWidth, pBar.getOrientation());
311 context.getPainter().paintProgressBarForeground(context, g,
316 paintText(context, g, pBar.getString());
323 * @param context context for the component being painted
327 protected void paintText(SynthContext context, Graphics g, String title) {
329 SynthStyle style = context.getStyle();
330 Font font = style.getFont(context);
333 int strLength = style.getGraphicsUtils(context).
334 computeStringWidth(context, font, fm, title);
363 g2.setColor(style.getColor(context, ColorType.TEXT_FOREGROUND));
364 style.getGraphicsUtils(context).paintText(context, g, title,
380 g.setColor(style.getColor(context, ColorType.TEXT_FOREGROUND));
382 style.getGraphicsUtils(context).paintText(context, g, title,
392 public void paintBorder(SynthContext context, Graphics g, int x,
394 context.getPainter().paintProgressBarBorder(context, g, x, y, w, h,