Package info.textgrid.lab.noteeditor.commands

Examples of info.textgrid.lab.noteeditor.commands.SetConstraintCommand


  add.setParent((MusicContainerForm)getHost().getModel());
  add.setChild(part);
  add.setLabel(MusicMessages.MusicXYLayoutEditPolicy_AddCommandLabelText);
  add.setDebugLabel("XYEP add subpart");//$NON-NLS-1$

  SetConstraintCommand setConstraint = new SetConstraintCommand();
  setConstraint.setLocation(rect);
  setConstraint.setPart(part);
  setConstraint.setLabel(MusicMessages.MusicXYLayoutEditPolicy_AddCommandLabelText);
  setConstraint.setDebugLabel("XYEP setConstraint");//$NON-NLS-1$
 
  Command cmd = add.chain(setConstraint);
  return cmd;
}
View Full Code Here


}

@Override
protected Command createChangeConstraintCommand(ChangeBoundsRequest request,
                                                EditPart child, Object constraint) {
  SetConstraintCommand cmd = new SetConstraintCommand();
  BasicElement part = (BasicElement)child.getModel();
  cmd.setPart(part);
  cmd.setLocation((Rectangle)constraint);
  Command result = cmd;

  return result;
}
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.commands.SetConstraintCommand

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.