Lines Matching defs:context
54 public void paintIcon(SynthContext context, Graphics g, int x, int y,
57 if (context != null) {
58 painter = (Painter)context.getStyle().get(context, key);
64 if (painter != null && context != null) {
65 JComponent c = context.getComponent();
69 //must occur on the graphics context when rendering a toolbar
97 painter.paint(gfx, context.getComponent(), h, w);
103 painter.paint(gfx, context.getComponent(), w, h);
107 painter.paint(gfx, context.getComponent(), w, h);
120 painter.paint(gfx, context.getComponent(), h, w);
124 painter.paint(gfx, context.getComponent(), w, h);
126 painter.paint(gfx, context.getComponent(), w, h);
137 * synth stub passes null for the context and this will cause us to not
139 * state if no synth context is available
154 public int getIconWidth(SynthContext context) {
155 if (context == null) {
158 JComponent c = context.getComponent();
168 return scale(context, width);
173 public int getIconHeight(SynthContext context) {
174 if (context == null) {
177 JComponent c = context.getComponent();
189 return scale(context, width);
192 return scale(context, height);
200 * @param context The synthContext to get the component from
205 private int scale(SynthContext context, int size) {
206 if (context == null || context.getComponent() == null){
210 String scaleKey = (String) context.getComponent().getClientProperty(