SysML

org.topcased.modeler.sysml.blockdefinitiondiagram.policies
Class BlockLayoutEditPolicy

java.lang.Object
  extended by ModelerLayoutEditPolicy
      extended by org.topcased.modeler.sysml.blockdefinitiondiagram.policies.BlockLayoutEditPolicy

public class BlockLayoutEditPolicy
extends ModelerLayoutEditPolicy

Layout Edit Policy for a block It manages creation of elements in the block and creation of elements inside block childs which have a EListEditPart edit part. Block childs which have a EListEditPart edit part don't have their own layout edit policy in order to enable to move port in the block


Constructor Summary
BlockLayoutEditPolicy()
          Default contructor.
 
Method Summary
protected  org.eclipse.gef.commands.Command createChangeConstraintCommand(org.eclipse.gef.requests.ChangeBoundsRequest request, org.eclipse.gef.EditPart child, java.lang.Object constraint)
           
protected  org.eclipse.draw2d.geometry.Point getAbsoluteMouseLocation(org.eclipse.draw2d.geometry.Point relativeLocation)
          Get the absolute coordinates from relative coordinates given by the pointer Location
 org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
           
protected  org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gef.requests.CreateRequest request)
           
protected  org.eclipse.draw2d.IFigure getLayoutContainer()
           
protected  boolean isAttachedToBorder(GraphNode node)
           
protected  boolean isValid(EObject child, EObject parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockLayoutEditPolicy

public BlockLayoutEditPolicy()
Default contructor.

** Generated **
Method Detail

isAttachedToBorder

protected boolean isAttachedToBorder(GraphNode node)
See Also:
org.topcased.modeleler.edit.policies.ModelerLayoutEditPolicy#isAttachedToBorder(org.topcased.modeler.di.model.GraphNode)

isValid

protected boolean isValid(EObject child,
                          EObject parent)
See Also:
org.topcased.modeleler.edit.policies.ModelerLayoutEditPolicy#isValid(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject)

getCreateCommand

protected org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gef.requests.CreateRequest request)
See Also:
LayoutEditPolicy.getCreateCommand(org.eclipse.gef.requests.CreateRequest)

getAbsoluteMouseLocation

protected org.eclipse.draw2d.geometry.Point getAbsoluteMouseLocation(org.eclipse.draw2d.geometry.Point relativeLocation)
Get the absolute coordinates from relative coordinates given by the pointer Location

Parameters:
relativeLocation -
Returns:
Point with absolute coordinates

createChangeConstraintCommand

protected org.eclipse.gef.commands.Command createChangeConstraintCommand(org.eclipse.gef.requests.ChangeBoundsRequest request,
                                                                         org.eclipse.gef.EditPart child,
                                                                         java.lang.Object constraint)
See Also:
ConstrainedLayoutEditPolicy.createChangeConstraintCommand(org.eclipse.gef.requests.ChangeBoundsRequest, org.eclipse.gef.EditPart, java.lang.Object)

getLayoutContainer

protected org.eclipse.draw2d.IFigure getLayoutContainer()
See Also:
LayoutEditPolicy.getLayoutContainer()

getCommand

public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)

SysML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.