Package es.iiia.shapeeditor.controllers

Examples of es.iiia.shapeeditor.controllers.ControllerBase.addPropertyChangeListener()


   
    try {
      // init left side shape
      if (rule.getLeftShape() != null) {
        ControllerBase ctrl = ControllerFactory.CreateController(rule.getLeftShape());
        ctrl.addPropertyChangeListener(this);
        getEditControllers().add(ctrl);
        ctrl.getModel().setColor(Color.red);
      }
     
      // init right side shape
View Full Code Here


      }
     
      // init right side shape
      if (rule.getRightShape() != null) {
        ControllerBase ctrr = ControllerFactory.CreateController(rule.getRightShape());
        ctrr.addPropertyChangeListener(this);
        getEditControllers().add(ctrr);
      }
    } catch (Exception e1) {
      e1.printStackTrace();
    }   
View Full Code Here

    editControllers.clear();
    for (NodeModel model : this.model.getChildrenArray()) {
      if (model instanceof GeometryModel) {
        try {
          ControllerBase ctr = ControllerFactory.CreateController((GeometryModel) model);
          ctr.addPropertyChangeListener(this);
          editControllers.add(ctr);
        } catch (Exception e1) {
          e1.printStackTrace();
        }
      }
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.