Package org.jvnet.substance.painter.gradient

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


      if (fadeState.fadeKind == FadeKind.SELECTION) {
        checkMarkVisibility = fadeState.getFadePosition();
        isCheckMarkFadingOut = !fadeState.isFadingIn();
      }
    }
    SubstanceGradientPainter fillPainter = SubstanceCoreUtilities
        .getGradientPainter(this.menuItem);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(this.menuItem);
    int fontSize = SubstanceSizeUtils.getComponentFontSize(this.menuItem);
View Full Code Here


      Icon result = SliderHorizontalIcon.icons.get(key);
      if (result != null)
        return result;

      SubstanceGradientPainter painter = SubstanceCoreUtilities
          .getGradientPainter(slider);
      SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
          .getBorderPainter(slider);

      int borderDelta = (int) Math.floor(SubstanceSizeUtils
          .getBorderStrokeWidth(SubstanceSizeUtils
              .getComponentFontSize(slider)) / 2.0);
      Shape contour = SubstanceOutlineUtilities.getTriangleButtonOutline(
          width, sliderIcon.size - 1, 2, borderDelta);

      BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage(
          sliderIcon.size - 1, sliderIcon.size - 1);
      Graphics2D g2d = stateImage.createGraphics();
      g2d.translate(delta, 0);

      painter.paintContourBackground(g2d, slider, width,
          sliderIcon.size - 1, contour, false, colorScheme,
          colorScheme2, cyclePos, true, colorScheme != colorScheme2);
      // BufferedImage biResult = SubstanceCoreUtilities.getBlankImage(
      // sliderIcon.size - 1, sliderIcon.size - 1);
      // Graphics2D bg2d = (Graphics2D) biResult.getGraphics();
View Full Code Here

      Icon result = SliderRoundIcon.icons.get(key);
      if (result != null)
        return result;

      SubstanceGradientPainter painter = SubstanceCoreUtilities
          .getGradientPainter(slider);
      SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
          .getBorderPainter(slider);

      int borderDelta = (int) Math.floor(SubstanceSizeUtils
          .getBorderStrokeWidth(SubstanceSizeUtils
              .getComponentFontSize(slider)) / 2.0);
      Shape contour = new Ellipse2D.Float(borderDelta, borderDelta, width
          - 2 * borderDelta - 1, width - 2 * borderDelta - 1);

      BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage(
          sliderIcon.size - 1, sliderIcon.size - 1);
      Graphics2D g2d = stateImage.createGraphics();
      g2d.translate(delta, delta);

      painter.paintContourBackground(g2d, slider, width,
          sliderIcon.size - 1, contour, false, colorScheme,
          colorScheme2, cyclePos, true, colorScheme != colorScheme2);
      // BufferedImage biResult = SubstanceCoreUtilities.getBlankImage(
      // sliderIcon.size - 1, sliderIcon.size - 1);
      // Graphics2D bg2d = (Graphics2D) biResult.getGraphics();
View Full Code Here

      Icon result = SliderVerticalIcon.icons.get(key);
      if (result != null)
        return result;

      SubstanceGradientPainter painter = SubstanceCoreUtilities
          .getGradientPainter(slider);
      SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
          .getBorderPainter(slider);

      int borderDelta = (int) Math.floor(SubstanceSizeUtils
          .getBorderStrokeWidth(SubstanceSizeUtils
              .getComponentFontSize(slider)) / 2.0);
      Shape contour = SubstanceOutlineUtilities.getTriangleButtonOutline(
          height, sliderIcon.size, 2, borderDelta);

      BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage(
          sliderIcon.size - 1, sliderIcon.size - 1);
      Graphics2D g2d = stateImage.createGraphics();
      g2d.translate(delta, 0);

      painter.paintContourBackground(g2d, slider, height,
          sliderIcon.size, contour, false, colorScheme, colorScheme2,
          cyclePos, true, colorScheme != colorScheme2);
      // BufferedImage biResult = SubstanceCoreUtilities.getBlankImage(
      // sliderIcon.size - 1, sliderIcon.size - 1);
      // Graphics2D bg2d = (Graphics2D) biResult.getGraphics();
View Full Code Here

      if (fadeState.fadeKind == FadeKind.SELECTION) {
        visibility = fadeState.getFadePosition();
      }
    }

    SubstanceGradientPainter fillPainter = SubstanceCoreUtilities
        .getGradientPainter(this.menuItem);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(this.menuItem);
    int fontSize = SubstanceSizeUtils.getComponentFontSize(this.menuItem);

    HashMapKey key = SubstanceCoreUtilities.getHashKey(fontSize, currState
        .name(), prevState.name(), fillPainter.getDisplayName(),
        borderPainter.getDisplayName(), currFillColorScheme
            .getDisplayName(),
        prevFillColorScheme.getDisplayName(), currMarkColorScheme
            .getDisplayName(),
        prevMarkColorScheme.getDisplayName(), currBorderColorScheme
View Full Code Here

      PairwiseButtonBackgroundDelegate.updatePairwiseBackground(g,
          button, width, height, sideable.getSide(), false);
      return;
    }

    SubstanceGradientPainter painter = SubstanceCoreUtilities
        .getGradientPainter(button);
    SubstanceButtonShaper shaper = SubstanceCoreUtilities
        .getButtonShaper(button);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(button);
View Full Code Here

TOP

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

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.