Examples of MTPolygon


Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon

  public void testShapeCreation(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
       
            MTPolygon poly = new MTPolygon(
                new Vertex[]{
                    new Vertex(0,0,100),
                    new Vertex(0,0,0),
                    new Vertex(0,100,0),
                    new Vertex(0,100,100),
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon

  public void disableAndDeleteChildrenDisplayLists() {
    MTComponent[] childs = this.getChildren();
    for (int i = 0; i < childs.length; i++) {
      MTComponent child = childs[i];
      if (child instanceof MTPolygon) {
        MTPolygon poly = (MTPolygon) child;
        poly.disableAndDeleteDisplayLists();
      }
    }
  }
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon

        new Vertex(centerPoint.x + radiusX/2.5f, centerPoint.y, centerPoint.z),
        new Vertex(centerPoint.x - radiusX/3f, centerPoint.y + radiusY/3f, centerPoint.z),
       
        new Vertex(centerPoint.x - radiusX/3f, centerPoint.y - radiusY/3f, centerPoint.z),
      };
      MTPolygon triangle = new MTPolygon(pApplet, vertices);
      triangle.setPickable(false);
      triangle.setNoFill(true);
      triangle.setStrokeColor(new MTColor(0,0,0,255));
      triangle.setStrokeWeight(1.5f);
      this.addChild(triangle);
     
      this.setComposite(true);
      this.setPickable(false); //We tap on the movie itself instead
      this.setFillColor(new MTColor(150,150,150,255));
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.