Package org.pushingpixels.substance.api

Examples of org.pushingpixels.substance.api.ColorSchemeSingleColorQuery


    double cycleCoef = 1.0 - cyclePos;

    Color[] fillColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      Color color1 = colorQuery.query(interpolationScheme1);
      Color color2 = colorQuery.query(interpolationScheme2);
      if (!useCyclePosAsInterpolation) {
        fillColors[i] = color1;
      } else {
        fillColors[i] = SubstanceColorUtilities.getInterpolatedColor(
            color1, color2, cycleCoef);
View Full Code Here


    double cycleCoef = 1.0 - cyclePos;

    Color[] fillColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      Color color1 = colorQuery.query(colorScheme1);
      Color color2 = colorQuery.query(colorScheme2);
      fillColors[i] = SubstanceColorUtilities.getInterpolatedColor(
          color1, color2, cycleCoef);
    }

    MultipleGradientPaint gradient = new LinearGradientPaint(0, 0, 0,
View Full Code Here

    double cycleCoef = 1.0 - cyclePos;

    Color[] fillColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      Color color1 = colorQuery.query(interpolationScheme1);
      Color color2 = colorQuery.query(interpolationScheme2);
      if (!useCyclePosAsInterpolation) {
        fillColors[i] = color1;
      } else {
        fillColors[i] = SubstanceColorUtilities.getInterpolatedColor(
            color1, color2, cycleCoef);
View Full Code Here

    graphics.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
        RenderingHints.VALUE_STROKE_NORMALIZE);

    Color[] drawColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      drawColors[i] = colorQuery.query(borderScheme);
    }

    // System.out.println("\t" + interpolationScheme1.getDisplayName()
    // + " -> [" + cyclePos + "] "
    // + interpolationScheme2.getDisplayName());
View Full Code Here

      SubstanceColorScheme fillScheme, boolean hasShine) {
    Graphics2D graphics = (Graphics2D) g.create();

    Color[] fillColors = new Color[this.fractions.length];
    for (int i = 0; i < this.fractions.length; i++) {
      ColorSchemeSingleColorQuery colorQuery = this.colorQueries[i];
      fillColors[i] = colorQuery.query(fillScheme);
    }

    MultipleGradientPaint gradient = new LinearGradientPaint(0, 0, 0,
        height, this.fractions, fillColors, CycleMethod.REPEAT);
    graphics.setPaint(gradient);
View Full Code Here

    setSelectedTabFadeEnd(0.3);

    // add two overlay painters to create a bezel line between
    // menu bar and toolbars
    this.menuOverlayPainter = new BottomLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            return scheme.getUltraDarkColor().darker();
          }
        });
    this.toolbarOverlayPainter = new TopLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            Color fg = scheme.getForegroundColor();
            return new Color(fg.getRed(), fg.getGreen(), fg
                .getBlue(), 32);
View Full Code Here

    setSelectedTabFadeStart(0.7);
    setSelectedTabFadeEnd(0.9);

    this.addOverlayPainter(new BottomLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            Color fg = scheme.getForegroundColor();
            return new Color(fg.getRed(), fg.getGreen(), fg
                .getBlue(), 72);
View Full Code Here

        DecorationAreaType.TOOLBAR);

    // add an overlay painter to paint separator lines along the bottom
    // edges of title panes and menu bars
    this.bottomLineOverlayPainter = new BottomLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            Color dark = scheme.getDarkColor();
            return new Color(dark.getRed(), dark.getGreen(), dark
                .getBlue(), 160);
View Full Code Here

        DecorationAreaType.TOOLBAR);

    // add an overlay painter to paint a dark line along the bottom
    // edge of toolbars
    this.toolbarBottomLineOverlayPainter = new BottomLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            return scheme.getUltraDarkColor();
          }
        });
    this.addOverlayPainter(this.toolbarBottomLineOverlayPainter,
        DecorationAreaType.TOOLBAR);

    // add an overlay painter to paint a light line along the top
    // edge of toolbars
    this.toolbarTopLineOverlayPainter = new TopLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            Color fg = scheme.getForegroundColor();
            return new Color(fg.getRed(), fg.getGreen(), fg
                .getBlue(), 40);
View Full Code Here

        DecorationAreaType.FOOTER);

    // add two overlay painters to create a bezel line between
    // menu bar and toolbars
    this.menuOverlayPainter = new BottomLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            return scheme.getUltraDarkColor().darker();
          }
        });
    this.toolbarOverlayPainter = new TopLineOverlayPainter(
        new ColorSchemeSingleColorQuery() {
          @Override
          public Color query(SubstanceColorScheme scheme) {
            Color fg = scheme.getForegroundColor();
            return new Color(fg.getRed(), fg.getGreen(), fg
                .getBlue(), 32);
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.ColorSchemeSingleColorQuery

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.