Package nu.fw.jeti.plugins.drawing.shapes

Examples of nu.fw.jeti.plugins.drawing.shapes.Ellipse


    Point2D.Double upperLeft = PointsOperations.upperLeftPoint(start, point);
    Point2D.Double bottomRight = PointsOperations.bottomRightPoint(start, point);
    double width = bottomRight.x - upperLeft.x;
    double height = bottomRight.y - upperLeft.y;
   
    Shape shape = new Ellipse(upperLeft.x, upperLeft.y,
        width, height, color, chat.getMyJID(), isFilled);
    chat.draw(shape);
    board.setCurrentShape(null);
  }
View Full Code Here


   
    if (board.getCurrentShape() != null) {
      (board.getCurrentShape()).setCoordinates(
              upperLeft.x + " " + upperLeft.y + " " + width + " " + height);
    } else {
      board.setCurrentShape(new Ellipse(upperLeft.x, upperLeft.y,
          width, height, color, chat.getMyJID(), isFilled));
    }
    board.repaint();   
  }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.drawing.shapes.Ellipse

Copyright © 2018 www.massapicom. 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.