Examples of CornerStyle


Examples of com.seaglasslookandfeel.painter.util.ShapeGenerator.CornerStyle

     * @see com.seaglasslookandfeel.painter.AbstractRegionPainter#doPaint(java.awt.Graphics2D,
     *      javax.swing.JComponent, int, int, java.lang.Object[])
     */
    protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
      // Rossi: Top-Left corner is round for popups but square for sub menus and real menus from menubar
        CornerStyle topLeftCornerStyle = getTopLeftCornerStyle(c);

        Shape s = shapeGenerator.createRoundRectangle(0, 0, width, height,
            CornerSize.POPUP_BORDER, 
            topLeftCornerStyle, CornerStyle.ROUNDED,
            CornerStyle.ROUNDED,CornerStyle.ROUNDED);
View Full Code Here

Examples of com.seaglasslookandfeel.painter.util.ShapeGenerator.CornerStyle

     * @param c
     * @return
     */
    private CornerStyle getTopLeftCornerStyle(JComponent c) {
        Component invoker = getInvoker(c);
        CornerStyle topLeftCornerStyle = CornerStyle.ROUNDED;
        if (invoker instanceof JMenu) {
            topLeftCornerStyle = CornerStyle.SQUARE;
        }
        return topLeftCornerStyle;
    }
View Full Code Here

Examples of com.seaglasslookandfeel.painter.util.ShapeGenerator.CornerStyle

            CornerStyle.SQUARE, CornerStyle.SQUARE);
    }

    private Shape createFocusPath(CornerSize size, int x, int y, int width, int height) {
      // Rossi: all corners are round on editable combo boxes too.
        CornerStyle leftStyle = CornerStyle.ROUNDED;
        return shapeGenerator.createRoundRectangle(x, y, width, height, size, leftStyle, leftStyle, CornerStyle.ROUNDED,
            CornerStyle.ROUNDED);
    }
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.