Examples of StraightLine


Examples of net.sf.arianne.marboard.client.entity.shape.StraightLine

      rpobject.put("thickness", boardState.getThickness());
      rpobject.put("x", startX);
      rpobject.put("y", startY);
      rpobject.put("x2", event.getX());
      rpobject.put("y2", event.getY());
      Shape line = new StraightLine(rpobject);
      board.drawTemporaryShape(line);
    }
  }
View Full Code Here

Examples of net.sf.arianne.marboard.client.entity.shape.StraightLine

    } else if (rpclass.equals("dot")) {
      return new Dot(rpobject);
    } else if (rpclass.equals("rectangle")) {
      return new Rectangle(rpobject);
    } else if (rpclass.equals("straight_line")) {
      return new StraightLine(rpobject);
    } else if (rpclass.equals("oval")) {
      return new Oval(rpobject);
    } else {
      logger.error("Unknown Entity class " + rpclass + ": " + rpobject);
      return new Entity(rpobject);
View Full Code Here

Examples of net.sf.arianne.marboard.server.entity.shape.StraightLine

    } else if (rpclass.equals("dot")) {
      return new Dot(object);
    } else if (rpclass.equals("rectangle")) {
      return new Rectangle(object);
    } else if (rpclass.equals("straight_line")) {
      return new StraightLine(object);
    } else if (rpclass.equals("circle")) {
      return new Oval(object);
    }

    return super.transform(object);
View Full Code Here

Examples of net.sf.arianne.marboard.server.entity.shape.StraightLine

    int thickness = action.getInt("thickness");
    int startX = action.getInt("x");
    int startY = action.getInt("y");
    int x2 = action.getInt("x2");
    int y2 = action.getInt("y2");
    StraightLine curve = new StraightLine(color, thickness, startX, startY, x2, y2);
    zone.add(curve);
  }
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.