Examples of FillPaint


Examples of org.mt4j.components.clipping.FillPaint

    //Instead we draw the outline over the gradient
    //in postDraw() method
    savedNoStrokeSetting = this.isNoStroke();
   
    if (this.getFillPaint() != null){
      FillPaint fillPaint = this.getFillPaint();
     
      //Force drawing stencil shape without stroke
      this.setNoStroke(true);
     
      fillPaint.pre(graphics);
    }
   
    //FIXME outline gets drawn twice if gradient + childClipmask
   
    //FIXME TEST //Draw without stroke because the stencil
View Full Code Here

Examples of org.mt4j.components.clipping.FillPaint

  public void postDraw(PGraphics graphics) {
    super.postDraw(graphics);

    //Draw gradient
    if (this.getFillPaint() != null){
      FillPaint g = this.getFillPaint();
      //Draw gradient over shape!
      g.post(graphics);

      boolean savedNoFillSetting = this.isNoFill();
      //Draw shape outlines over gradient
      if (!savedNoStrokeSetting){
        this.setNoStroke(false);
View Full Code Here

Examples of org.mt4j.components.clipping.FillPaint

              //shape.setBoundingShape(new BoundsZPlaneRectangle(shape)); //already done by override, (ie svgpoly)
             
              //Create amd apply the linear gradient if existant and if we are in opengl rendering mode
              if (MT4jSettings.getInstance().isOpenGlMode()){
                if (linearGradient != null){
                  FillPaint gradient = this.createLinearGradient(linearGradient, gfxElem, originalFillOpacity, shape);
                  if (gradient != null){
                    shape.setFillPaint(gradient);
                  }
                }
                if (radialGradient != null){
                  FillPaint gradient = this.createRadialGradient(radialGradient, gfxElem, opacity, shape);
                  if (gradient != null){
                    shape.setFillPaint(gradient);
                  }
                }
              //Per default use direct gl drawing and displaylists in OGL mode
View Full Code Here

Examples of org.mt4j.components.clipping.FillPaint

          rectanglePaintedComp.setTexture(swingTex.getTextureToRenderTo());
          rectanglePaintedComp.setFillColor(255, 255, 255, 150);
          shape.addChild(rectanglePaintedComp);
             */
          }
          FillPaint gradStencil = new FillPaint(((PGraphicsOpenGL)pa.g).gl, rectangle);
          return gradStencil;
//        return null;
        }
        return null;
    }
View Full Code Here

Examples of org.mt4j.components.clipping.FillPaint

        p.setStrokeWeight(testShape.getStrokeWeight());
        p.setFillDrawMode(GL.GL_QUADS);
        //Use displaylist by default for gradientshape
        p.generateAndUseDisplayLists();
       
        FillPaint gradStencil = new FillPaint(gl, p);
    return gradStencil;
  }
View Full Code Here

Examples of org.mt4j.components.clipping.FillPaint

          p.setFillDrawMode(GL.GL_QUADS);
          p.setStrokeWeight(testShape.getStrokeWeight());
          //Use displaylist by default for gradientshape
          p.generateAndUseDisplayLists();
     
          FillPaint gradStencil = new FillPaint(gl, p);
          return gradStencil;
    }
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.