Package org.jvnet.substance.painter.gradient

Examples of org.jvnet.substance.painter.gradient.SimplisticGradientPainter


    this.setSelectedTabFadeStart(0.1);
    this.setSelectedTabFadeEnd(0.3);

    this.buttonShaper = new ClassicButtonShaper();
    this.watermark = null;
    this.gradientPainter = new SimplisticGradientPainter() {
      @Override
      public Color getBottomFillColor(
          SubstanceColorScheme interpolationScheme1,
          SubstanceColorScheme interpolationScheme2,
          double cycleCoef, boolean useCyclePosAsInterpolation) {
View Full Code Here


        RenderingHints.VALUE_ANTIALIAS_OFF);

    Graphics2D g2 = (Graphics2D) graphics.create();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
        RenderingHints.VALUE_ANTIALIAS_OFF);
    SimplisticGradientPainter gradPainter = new SimplisticSoftBorderReverseGradientPainter();
    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);
View Full Code Here

TOP

Related Classes of org.jvnet.substance.painter.gradient.SimplisticGradientPainter

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.