Package org.pushingpixels.substance.api

Examples of org.pushingpixels.substance.api.ColorSchemeSingleColorQuery.query()


    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(
View Full Code Here


    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);
    }
View Full Code Here

    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(
View Full Code Here

    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

        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

    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

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.