Package net.sf.arianne.marboard.client.entity

Examples of net.sf.arianne.marboard.client.entity.Entity


      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


   * adds an object to the board, which automatically creates the corresponding entity
   *
   * @param rpobject object
   */
  public void add(RPObject rpobject) {
    Entity entity = EntityFactory.create(rpobject);
    entities.put(rpobject.getID(), entity);
    if (entity instanceof Shape) {
      shapes.add((Shape) entity);
      fire();
    }
View Full Code Here

   * removes the object
   *
   * @param rpobject object
   */
  public void remove(RPObject rpobject) {
    Entity entity = entities.remove(rpobject.getID());
    if ((entity != null) && (entity instanceof Shape)) {
      shapes.remove(entity);
      fire();
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.arianne.marboard.client.entity.Entity

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.