Package org.pushingpixels.substance.api.painter.border

Examples of org.pushingpixels.substance.api.painter.border.FlatBorderPainter


    decorationPainter.setBaseDecorationPainter(new ArcDecorationPainter());
    decorationPainter.setTextureAlpha(0.3f);
    this.decorationPainter = decorationPainter;

    this.highlightPainter = new ClassicHighlightPainter();
    this.borderPainter = new FlatBorderPainter();
  }
View Full Code Here


    Graphics2D g2 = (Graphics2D) graphics.create();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
        RenderingHints.VALUE_ANTIALIAS_OFF);
    SimplisticFillPainter gradPainter = new SimplisticSoftBorderReverseFillPainter();
    FlatBorderPainter fbp = new FlatBorderPainter();

    int borderDelta = (int) Math.floor(SubstanceSizeUtils
        .getBorderStrokeWidth(fontSize) / 2.0);
    Shape contour = SubstanceOutlineUtilities.getBaseOutline(dim - 1,
        dim - 1, SubstanceSizeUtils.getClassicButtonCornerRadius(dim),
        null, borderDelta);

    g2.translate(0, 1);

    boolean isDark = fillScheme.isDark();

    fillScheme = new ShiftColorScheme(fillScheme, fillScheme
        .getExtraLightColor(), 0.7);

    gradPainter.paintContourBackground(g2, tree, dim - 1, dim - 1, contour,
        false, fillScheme, fillScheme, 0, false, false);
    borderScheme = new ShiftColorScheme(borderScheme, isDark ? borderScheme
        .getUltraLightColor() : borderScheme.getLightColor(), 0.5);
    fbp.paintBorder(g2, tree, dim - 1, dim - 1, contour, null,
        borderScheme, borderScheme, 0, false);

    g2.translate(-1, -1);

    Color signColor = isDark ? borderScheme.getUltraLightColor().brighter()
View Full Code Here

    Graphics2D g2 = (Graphics2D) graphics.create();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
        RenderingHints.VALUE_ANTIALIAS_OFF);
    SimplisticFillPainter gradPainter = new SimplisticSoftBorderReverseFillPainter();
    FlatBorderPainter fbp = new FlatBorderPainter();

    int borderDelta = (int) Math.floor(SubstanceSizeUtils
        .getBorderStrokeWidth(fontSize) / 2.0);
    Shape contour = SubstanceOutlineUtilities.getBaseOutline(dim - 1,
        dim - 1, SubstanceSizeUtils.getClassicButtonCornerRadius(dim),
        null, borderDelta);

    g2.translate(0, 1);

    boolean isDark = fillScheme.isDark();

    fillScheme = new ShiftColorScheme(fillScheme,
        fillScheme.getExtraLightColor(), 0.7);

    gradPainter.paintContourBackground(g2, tree, dim - 1, dim - 1, contour,
        false, fillScheme, false);
    borderScheme = new ShiftColorScheme(borderScheme,
        isDark ? borderScheme.getUltraLightColor()
            : borderScheme.getLightColor(), 0.5);
    fbp.paintBorder(g2, tree, dim - 1, dim - 1, contour, null, borderScheme);

    g2.translate(-1, -1);

    Color signColor = isDark ? borderScheme.getUltraLightColor().brighter()
        .brighter() : borderScheme.getUltraDarkColor();
View Full Code Here

    decorationPainter.setBaseDecorationPainter(new ArcDecorationPainter());
    decorationPainter.setTextureAlpha(0.3f);
    this.decorationPainter = decorationPainter;

    this.highlightPainter = new ClassicHighlightPainter();
    this.borderPainter = new FlatBorderPainter();
  }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.painter.border.FlatBorderPainter

Copyright © 2018 www.massapicom. 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.