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

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


  /**
   * Stops drawing the polyline, memorizes the shapes in the history, draws
   * it and sends it to other users.
   */
  public void mouseReleased(Double point, int scaleX, int scaleY) { 
    Shape shape = new Polygon(points, color, chat.getMyJID(), isFilled);
    chat.draw(shape);
    points.clear();
    board.setCurrentShape(null);
  }
View Full Code Here


  public void mouseDragged(Double point) {
    points.add(point);
    if (board.getCurrentShape() != null) {
      (board.getCurrentShape()).setCoordinates(PointsOperations.pointsToString(points));
    } else {
      board.setCurrentShape(new Polygon(points, color, chat.getMyJID(), isFilled));
    }
    board.repaint();
  }
View Full Code Here

      if (points.size() > 0) {
        if (points.size() - 1 > 0
            && e.getButton() == MouseEvent.BUTTON3) {
          points.remove(points.size() - 1);
        }
        Shape shape = new Polygon(points, color, chat.getMyJID(),
            isFilled);
        chat.draw(shape);
        board.setCurrentShape(null);
        points.clear();
      }
View Full Code Here

      points.setElementAt(end, points.size() - 1);
      if (board.getCurrentShape() != null) {
        (board.getCurrentShape()).setCoordinates(PointsOperations
            .pointsToString(points));
      } else {
        board.setCurrentShape(new Polygon(points, color, chat
            .getMyJID(), isFilled));
      }
      board.repaint();
    }
  }
View Full Code Here

TOP

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

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.