Package org.asem.eclipse.mii.model.commands

Examples of org.asem.eclipse.mii.model.commands.ShapeSetConstraintCommand


         * @see ConstrainedLayoutEditPolicy#createChangeConstraintCommand( ChangeBoundsRequest, EditPart, Object)
         */
        protected Command createChangeConstraintCommand(ChangeBoundsRequest request, EditPart child, Object constraint) {
            if (child instanceof ShapeEditPart && constraint instanceof Rectangle) {
                // return a command that can move and/or resize a Shape
                return new ShapeSetConstraintCommand((AbstractModelShape) child.getModel(), request,
                        (Rectangle) constraint);
            }
            return super.createChangeConstraintCommand(request, child, constraint);
        }
View Full Code Here

TOP

Related Classes of org.asem.eclipse.mii.model.commands.ShapeSetConstraintCommand

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.