Examples of Dreieck


Examples of bridge.objekte.Dreieck

  public Bridge() {

    JPanel content = new JPanel();
    content.setLayout(null);
    
    shapes.add(new GeoShapes(new Dreieck(0, 0, 100, 100)));
    shapes.add(new GeoShapes(new Rechteck(0, 0, 100, 100)));
    shapes.add(new GeoShapes(new Kreis(0, 0, 100, 100)))
   
    shapes.get(0).add(new Dreieck(0, 0, 300, 150));
   
    int i = 110;
    for (Shape shape : shapes) {
      content.add(shape);
      shape.setContentPosition(i, i);
View Full Code Here

Examples of bridge.objekte.Dreieck

            DrawingAPI object = (DrawingAPI) shape.getGraphicObjectByIndex(i);
           
            System.out.println(shape.getGraphicObjectByIndex(i).toString());
           
            if(shape.getGraphicObjectByIndex(i).toString().contains("Dreieck")) {
              shape.switchObjectTo(new Dreieck(object.getX(), object.getY(), object.getWidth(), object.getHeight()), i);
            }
           
            else if(shape.getGraphicObjectByIndex(i).toString().contains("Rechteck")) {
              shape.switchObjectTo(new Rechteck(object.getX(), object.getY(), object.getWidth(), object.getHeight()), i);
            }
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.