|
SAM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectModelerLayoutEditPolicy
org.topcased.modeler.sam.edit.policies.SAMPortLayoutEditPolicy
public class SAMPortLayoutEditPolicy
An EditPolicy that manage creation and moves of a Port inside its container (System or Automaton). The Port is attached to the nearest border (Left, Right or Bottom) Created 6 June 2005
Constructor Summary | |
---|---|
SAMPortLayoutEditPolicy()
Default contructor. |
Method Summary | |
---|---|
protected org.eclipse.gef.commands.Command |
createAddCommand(org.eclipse.gef.EditPart child,
java.lang.Object constraint,
org.eclipse.draw2d.geometry.Point mouseLocation)
Create and return the Command used to perform the DND of a Port |
protected org.eclipse.gef.commands.Command |
getAddCommand(org.eclipse.gef.Request generic)
Copy the code of the LayoutEditPolicy and pass to the createAddCommand the mouseLocation given by the request |
protected boolean |
isAttachedToBorder(GraphNode node)
|
protected boolean |
isValid(EObject child,
EObject parent)
Added a condition to disallow adding new ports to instances of a system/automaton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAMPortLayoutEditPolicy()
Method Detail |
---|
protected boolean isValid(EObject child, EObject parent)
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#isValid(org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EObject)
protected boolean isAttachedToBorder(GraphNode node)
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#isAttachedToBorder(org.topcased.modeler.di.model.GraphNode)
protected org.eclipse.gef.commands.Command getAddCommand(org.eclipse.gef.Request generic)
LayoutEditPolicy.getAddCommand(org.eclipse.gef.Request)
protected org.eclipse.gef.commands.Command createAddCommand(org.eclipse.gef.EditPart child, java.lang.Object constraint, org.eclipse.draw2d.geometry.Point mouseLocation)
child
- constraint
- mouseLocation
-
|
SAM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.