Examples of MorphShape


Examples of org.newdawn.slick.geom.MorphShape

   * @param diagram The base diagram which provides the first step of the morph
   */
  public SVGMorph(Diagram diagram) {
    for (int i=0;i<diagram.getFigureCount();i++) {
      Figure figure = diagram.getFigure(i);
      Figure copy = new Figure(figure.getType(), new MorphShape(figure.getShape()), figure.getData(), figure.getTransform());
     
      figures.add(copy);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

      String id = figure.getData().getMetaData();
     
      for (int j=0;j<figures.size();j++) {
        Figure existing = (Figure) figures.get(j);
        if (existing.getData().getMetaData().equals(id)) {
          MorphShape morph = (MorphShape) existing.getShape();
          morph.addShape(figure.getShape());
          break;
        }
      }
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

      Figure figure = (Figure) figures.get(i);
     
      for (int j=0;j<diagram.getFigureCount();j++) {
        Figure newBase = diagram.getFigure(j);
        if (newBase.getData().getMetaData().equals(figure.getData().getMetaData())) {
          MorphShape shape = (MorphShape) figure.getShape();
          shape.setExternalFrame(newBase.getShape());
          break;
        }
      }
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

   * @param delta The amount to update the morph by
   */
  public void updateMorphTime(float delta) {
    for (int i=0;i<figures.size();i++) {
      Figure figure = (Figure) figures.get(i);
      MorphShape shape = (MorphShape) figure.getShape();
      shape.updateMorphTime(delta);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

   * @param time The time index to represent on this diagrams
   */
  public void setMorphTime(float time) {
    for (int i=0;i<figures.size();i++) {
      Figure figure = (Figure) figures.get(i);
      MorphShape shape = (MorphShape) figure.getShape();
      shape.setMorphTime(time);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

  public SVGMorph(Diagram diagram) {
    super(diagram.getWidth(), diagram.getHeight());
   
    for (int i=0;i<diagram.getFigureCount();i++) {
      Figure figure = diagram.getFigure(i);
      Figure copy = new Figure(figure.getType(), new MorphShape(figure.getShape()), figure.getData(), figure.getTransform());
     
      figures.add(copy);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

      String id = figure.getData().getMetaData();
     
      for (int j=0;j<figures.size();j++) {
        Figure existing = (Figure) figures.get(j);
        if (existing.getData().getMetaData().equals(id)) {
          MorphShape morph = (MorphShape) existing.getShape();
          morph.addShape(figure.getShape());
          break;
        }
      }
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

      Figure figure = (Figure) figures.get(i);
     
      for (int j=0;j<diagram.getFigureCount();j++) {
        Figure newBase = diagram.getFigure(j);
        if (newBase.getData().getMetaData().equals(figure.getData().getMetaData())) {
          MorphShape shape = (MorphShape) figure.getShape();
          shape.setExternalFrame(newBase.getShape());
          break;
        }
      }
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

   * @param delta The amount to update the morph by
   */
  public void updateMorphTime(float delta) {
    for (int i=0;i<figures.size();i++) {
      Figure figure = (Figure) figures.get(i);
      MorphShape shape = (MorphShape) figure.getShape();
      shape.updateMorphTime(delta);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.geom.MorphShape

   * @param time The time index to represent on this diagrams
   */
  public void setMorphTime(float time) {
    for (int i=0;i<figures.size();i++) {
      Figure figure = (Figure) figures.get(i);
      MorphShape shape = (MorphShape) figure.getShape();
      shape.setMorphTime(time);
    }
  }
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.