Package com.seaglasslookandfeel

Examples of com.seaglasslookandfeel.SeaGlassContext.dispose()


        SeaGlassLookAndFeel.update(context, g);
        context.getPainter().paintPanelBackground(context, g, 0, 0, c.getWidth(), c.getHeight());
        paint(context, g);

        context.dispose();
    }

    /**
     * @see javax.swing.plaf.ComponentUI#paint(java.awt.Graphics, javax.swing.JComponent)
     */
 
View Full Code Here


     */
    public void paint(Graphics g, JComponent c) {
        SeaGlassContext context = getContext(c);

        paint(context, g);
        context.dispose();
    }

    /**
     * Paint the panel. Nothing to do here. The panel is painted by its
     * components.
 
View Full Code Here

            } else if (SeaGlassStyle.MINI_KEY.equals(scaleKey)) {
                trackThickness = 15;
                tileWidth *= 0.784;
            }
        }
        context.dispose();
    }

    @Override
    protected void uninstallDefaults() {
        SeaGlassContext context = getContext(progressBar, ENABLED);
View Full Code Here

    @Override
    protected void uninstallDefaults() {
        SeaGlassContext context = getContext(progressBar, ENABLED);

        style.uninstallDefaults(context);
        context.dispose();
        style = null;
    }

    public SeaGlassContext getContext(JComponent c) {
        return getContext(c, getComponentState(c));
View Full Code Here

        super.getBaseline(c, width, height);
        if (progressBar.isStringPainted() && progressBar.getOrientation() == JProgressBar.HORIZONTAL) {
            SeaGlassContext context = getContext(c);
            Font font = context.getStyle().getFont(context);
            FontMetrics metrics = progressBar.getFontMetrics(font);
            context.dispose();
            return (height - metrics.getAscent() - metrics.getDescent()) / 2 + metrics.getAscent();
        }
        return -1;
    }
View Full Code Here

        SeaGlassLookAndFeel.update(context, g);
        JProgressBar pBar = (JProgressBar) c;
        Rectangle bounds = calcBounds(pBar);
        context.getPainter().paintProgressBarBackground(context, g, bounds.x, bounds.y, bounds.width, bounds.height, pBar.getOrientation());
        paint(context, g);
        context.dispose();
    }

    @Override
    public void paint(Graphics g, JComponent c) {
        SeaGlassContext context = getContext(c);
View Full Code Here

    @Override
    public void paint(Graphics g, JComponent c) {
        SeaGlassContext context = getContext(c);

        paint(context, g);
        context.dispose();
    }

    protected void paint(SeaGlassContext context, Graphics g) {
        JProgressBar pBar = (JProgressBar) context.getComponent();
        Insets pBarInsets = pBar.getInsets();
View Full Code Here

                uninstallKeyboardActions();
                installKeyboardActions();
            }
        }

        context.dispose();
    }

    /**
     * Attaches listeners to the JTable.
     */
 
View Full Code Here

        }

        SeaGlassContext context = getContext(table, ENABLED);

        style.uninstallDefaults(context);
        context.dispose();
        style = null;
    }

    /**
     * @see javax.swing.plaf.basic.BasicTableUI#uninstallListeners()
View Full Code Here

        SeaGlassContext context = getContext(c);

        SeaGlassLookAndFeel.update(context, g);
        context.getPainter().paintTableBackground(context, g, 0, 0, c.getWidth(), c.getHeight());
        paint(context, g);
        context.dispose();
    }

    /**
     * @see SeaglassUI#paintBorder(javax.swing.plaf.synth.SynthContext,
     *      java.awt.Graphics, int, int, int, int)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.