Package net.sf.arianne.marboard.server.entity.shape

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


    } 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


public class CreateOvalAction extends CreateAction {

  @Override
  protected void perform(User user, RPAction action) {
    MarboardZone zone = user.getZone();
    Shape shape = new Oval(action.getInt("color"), action.getInt("fill_color"), action.getInt("thickness"), action.getInt("x"), action.getInt("y"), action.getInt("x2"), action.getInt("y2"));
    zone.add(shape);
  }
View Full Code Here

TOP

Related Classes of net.sf.arianne.marboard.server.entity.shape.Oval

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.