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

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


  /**
   * The polyline is drawn, memorized in the history and sent to
   * the other users.
   */
  public void mouseReleased(Double point, int scaleX, int scaleY) { 
    Shape shape = new Polyline(points, color, chat.getMyJID());
    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 Polyline(points, color, chat.getMyJID()));
    }
    board.repaint();
  }
View Full Code Here

TOP

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

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.