Examples of LinearGradient


Examples of com.emitrom.lienzo.client.core.types.LinearGradient

                {
                    GradientJSO base = grad.cast();

                    if (LinearGradient.TYPE.equals(base.getType()))
                    {
                        context.setFillGradient(new LinearGradient((LinearGradientJSO) base));

                        context.fillText(getText(), 0, 0);

                        setWasFilledFlag(true);
                    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.LinearGradient

        }
        String type = getString("type", obj);

        if (LinearGradient.TYPE.equals(type))
        {
            return new LinearGradient((LinearGradientJSO) obj);
        }
        else if (RadialGradient.TYPE.equals(type))
        {
            return new RadialGradient((RadialGradientJSO) obj);
        }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.LinearGradient

                {
                    GradientJSO base = grad.cast();

                    if (LinearGradient.TYPE.equals(base.getType()))
                    {
                        context.setFillGradient(new LinearGradient((LinearGradientJSO) base));

                        context.fill();

                        setWasFilledFlag(true);
                    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.LinearGradient

                {
                    GradientJSO base = grad.cast();

                    if (LinearGradient.TYPE.equals(base.getType()))
                    {
                        context.setFillGradient(new LinearGradient((LinearGradientJSO) base));

                        context.fill();

                        setWasFilledFlag(true);
                    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.types.LinearGradient

                {
                    GradientJSO base = grad.cast();

                    if (LinearGradient.TYPE.equals(base.getType()))
                    {
                        context.setFillGradient(new LinearGradient((LinearGradientJSO) base));

                        context.fillText(getText(), 0, 0);

                        setWasFilledFlag(true);
                    }
View Full Code Here

Examples of com.vaadin.addon.charts.model.style.GradientColor.LinearGradient

        // [1, 'rgb(0, 0, 0)']
        // ]

        JsonObject jsonObject = new JsonObject();

        LinearGradient linearGradient = src.getLinearGradient();

        if (linearGradient != null) {
            JsonArray value = new JsonArray();
            value.add(new JsonPrimitive(linearGradient.x1));
            value.add(new JsonPrimitive(linearGradient.y1));
View Full Code Here

Examples of gwt.g2d.client.graphics.LinearGradient

        KnownColor.CYAN,
        KnownColor.BLUE,
        KnownColor.MAGENTA,
        KnownColor.RED };

    LinearGradient gradient = new LinearGradient(0, 0, 220, 0);
   
  // Add the color stops.
    for (int i = 0; i < hue.length; i++) {
      gradient.addColorStop(i / 6.0, hue[i]);
    }
 
    // Use the gradient for the fillStyle.
    getPrimarySurface().setFillStyle(gradient)
   
View Full Code Here

Examples of gwt.g2d.client.graphics.LinearGradient

      if (type == null) {
        return;
      }
      position.set(col * BLOCK_PIXEL_SIZE, row * BLOCK_PIXEL_SIZE);
      strokeRectangle.move(position.add(STROKE_OFFSET));
      surface.setStrokeStyle(new LinearGradient(
          position.add(GRADIENT_POINT1_OFFSET),
          position.add(GRADIENT_POINT2_OFFSET))
              .addColorStop(0, KnownColor.WHITE)
              .addColorStop(1, KnownColor.GRAY))
          .strokeRectangle(strokeRectangle);
     
      fillRectangle.move(position.add(FILL_OFFSET));
      surface.setFillStyle(new LinearGradient(
          position.add(GRADIENT_POINT1_OFFSET),
          position.add(GRADIENT_POINT2_OFFSET))
              .addColorStop(0, type.getColor())
              .addColorStop(1, KnownColor.WHITE))             
          .fillRectangle(fillRectangle);
View Full Code Here

Examples of gwt.g2d.client.graphics.LinearGradient

    surface.fillRectangle(0, 0, size, size)
        .setTransform(matrix.mutableTranslate(size / 2, size / 2))
        .clipShape(new CircleShape(0, 0, size / 2.0 * .8));

    Gradient gradient = new LinearGradient(0, -size / 2, 0, size / 2)
        .addColorStop(0, new Color(35, 34, 86))
        .addColorStop(1, new Color(20, 55, 120));
   
    surface.setFillStyle(gradient)
        .fillRectangle(-size / 2, -size / 2, size, size);
View Full Code Here

Examples of javafx.scene.paint.LinearGradient

                new Stop(0.85d, Color.LIGHTGRAY), new Stop(0.97d, Color.DARKGRAY.darker()))
                : Color.BLACK);
    this.minorTickMarkFillProperty = new SimpleObjectProperty<Paint>(Color.GRAY.brighter());
    this.majorTickMarkFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.tickMarkLabelFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.tickValueDisplayFillProperty = new SimpleObjectProperty<Paint>(new LinearGradient(
        0, 0, 0, 1d, true, CycleMethod.NO_CYCLE,
        new Stop(0, Color.DARKGRAY.darker()), new Stop(0.4d, Color.BLACK)));
    this.tickValueDisplayTextFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.outerRimFillProperty = new SimpleObjectProperty<Paint>(Color.BLACK);
    this.outerRimEffectFillProperty = new SimpleObjectProperty<Color>(Color.LIGHTCYAN);
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.