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

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


   * After releasing the mouse the ellipse is memorized in the history, drawn
   * and sent to the other users.
   */
  public void mouseReleased(Double point, int scaleX, int scaleY) {
    end = point;
    Line line = new Line(start, end, color, chat.getMyJID());
    chat.draw(line);
    board.setCurrentShape(null);
  }
View Full Code Here


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

TOP

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

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.