public PSM_AttributeContainerController(PSMAttributeContainer attributeContainer, DiagramController diagramController) : base(attributeContainer, diagramController) { controlsPSMAttributes = new ControlsPSMAttributes(AttributeContainer, DiagramController); }
public static void SwitchAssociationDiamond(AssociationViewHelper associationViewHelper, Association association, DiagramController controller) { SwitchAssociationDiamondCommand switchAssociationDiamondCommand = (SwitchAssociationDiamondCommand)SwitchAssociationDiamondCommandFactory.Factory().Create(controller); switchAssociationDiamondCommand.Association = association; switchAssociationDiamondCommand.AssociationViewHelper = associationViewHelper; switchAssociationDiamondCommand.Execute(); }
public PSM_ContentChoiceController(PSMContentChoice contentChoice, DiagramController diagramController) : base(contentChoice, diagramController) { }
/// <summary> /// Removes the element this controller controls /// </summary> public override void Remove() { DiagramController.RemovePSMSubtree(Element); }
public static JunctionPointCommand CreateBreakLineCommand(Point p, int orderInJunction, ObservablePointCollection pointCollection, DiagramController controller) { JunctionPointCommand junctionPointCommand = (JunctionPointCommand)JunctionPointCommandFactory.Factory().Create(controller); junctionPointCommand.Action = JunctionPointCommand.EJunctionPointAction.AddPoint; junctionPointCommand.NewPoint = p; junctionPointCommand.PointIndex = orderInJunction; junctionPointCommand.ViewHelperPointCollection = pointCollection; return(junctionPointCommand); }
public static JunctionPointCommand CreateSraightenLineCommand(int orderInJunction, ObservablePointCollection viewHelperPointCollection, DiagramController controller) { JunctionPointCommand junctionPointCommand = (JunctionPointCommand)JunctionPointCommandFactory.Factory().Create(controller); junctionPointCommand.Action = JunctionPointCommand.EJunctionPointAction.RemovePoint; junctionPointCommand.PointIndex = orderInJunction; junctionPointCommand.ViewHelperPointCollection = viewHelperPointCollection; return(junctionPointCommand); }
public ControlsPSMAttributes(IHasPSMAttributes attributeHolder, DiagramController diagramController) { AttributeHolder = attributeHolder; DiagramController = diagramController; }
/// <summary> /// Alters size of an element on the diagram /// </summary> /// <param name="width">new width</param> /// <param name="height">new height</param> /// <param name="viewHelper">viewHelper of the moved element</param> /// <param name="diagramController">diagram controller</param> public static void ResizeElement(double width, double height, PositionableElementViewHelper viewHelper, DiagramController diagramController) { ResizeElementCommand resizeElementCommand = CreateResizeCommand(width, height, viewHelper, diagramController); resizeElementCommand.Execute(); }
public PSM_ContentContainerController(PSMContentContainer contentContainer, DiagramController diagramController) : base(contentContainer, diagramController) { }
public CommentController(Comment comment, DiagramController diagramController) : base(comment, diagramController) { }
protected NamedElementController(NamedElement element, DiagramController diagramController) : base(element, diagramController) { }
public PSM_DiagramReferenceController(PSMDiagramReference element, DiagramController diagramController) : base(element, diagramController) { }
public ClassController(PIMClass @class, DiagramController diagramController) : base(@class, diagramController) { }
/// <summary> /// Move an element on the diagram /// </summary> /// <param name="X">new X coordinate</param> /// <param name="Y">new Y coordinate</param> /// <param name="viewHelper">viewHelper of the moved element</param> /// <param name="diagramController">diagram controller</param> public static void MoveElement(double X, double Y, PositionableElementViewHelper viewHelper, DiagramController diagramController) { MoveElementCommand moveElementCommand = CreateMoveCommand(X, Y, viewHelper, diagramController); moveElementCommand.Execute(); }
public PSM_ClassController(PSMClass @class, DiagramController diagramController) : base(@class, diagramController) { controlsPSMAttributes = new ControlsPSMAttributes(@class, diagramController); }
/// <summary> /// Creates <see cref="MoveElementCommand"/> that moves an element on the diagram /// </summary> /// <param name="X">new X coordinate</param> /// <param name="Y">new Y coordinate</param> /// <param name="viewHelper">viewHelper of the moved element</param> /// <param name="diagramController">diagram controller</param> /// <returns><see cref="MoveElementCommand"/> that moves an element on the diagram</returns> public static MoveElementCommand CreateMoveCommand(double?X, double?Y, PositionableElementViewHelper viewHelper, DiagramController diagramController) { MoveElementCommand moveElementCommand = (MoveElementCommand)MoveElementCommandFactory.Factory().Create(diagramController); moveElementCommand.X = X; moveElementCommand.Y = Y; moveElementCommand.ViewHelper = viewHelper; return(moveElementCommand); }
public GeneralizationController(Generalization generalization, DiagramController diagramController) : base(generalization, diagramController) { }
/// <summary> /// Creates <see cref="ResizeElementCommand"/> that resizes an element on the diagram /// </summary> /// <param name="width">new width</param> /// <param name="height">new height</param> /// <param name="viewHelper">viewHelper of the moved element</param> /// <param name="diagramController">diagram controller</param> /// <returns>Creates <see cref="ResizeElementCommand"/> that resizes an element on the diagram</returns> public static ResizeElementCommand CreateResizeCommand(double width, double height, PositionableElementViewHelper viewHelper, DiagramController diagramController) { ResizeElementCommand resizeElementCommand = (ResizeElementCommand)ResizeElementCommandFactory.Factory().Create(diagramController); resizeElementCommand.Width = width; resizeElementCommand.Height = height; resizeElementCommand.ViewHelper = viewHelper; return(resizeElementCommand); }
public ConnectionController(Element element, DiagramController diagramController) : base(element, diagramController) { }
public static void BreakLine(Point p, int orderInJunction, ObservablePointCollection pointCollection, DiagramController controller) { JunctionPointCommand pointCommand = CreateBreakLineCommand(p, orderInJunction, pointCollection, controller); pointCommand.Execute(); }
public static void StraightenLine(int orderInJunction, ObservablePointCollection viewHelperPointCollection, DiagramController controller) { JunctionPointCommand junctionPointCommand = CreateSraightenLineCommand(orderInJunction, viewHelperPointCollection, controller); junctionPointCommand.Execute(); }
protected ElementController(Element element, DiagramController diagramController) { DiagramController = diagramController; Element = element; }
public static void ChangeSectionVisibility(ClassViewHelper classViewHelper, SectionVisibilityCommand.ESectionVisibilityAction action, DiagramController controller) { SectionVisibilityCommand command = (SectionVisibilityCommand)SectionVisibilityCommandFactory.Factory().Create(controller); command.Action = action; command.ViewHelper = classViewHelper; command.Execute(); }
public PSM_AssociationController(PSMAssociation element, DiagramController diagramController) : base(element, diagramController) { }
public static void ChangeElementNameLabelAlignment(ClassViewHelper classViewHelper, bool alignedRight, DiagramController controller) { ChangeElementNameLabelAlignmentCommand c = (ChangeElementNameLabelAlignmentCommand)ChangeElementNameLabelAlignmentCommandFactory.Factory().Create(controller); c.Set(classViewHelper, alignedRight); c.Execute(); }
public AssociationController(Association association, DiagramController diagramController) : base(association, diagramController) { }
public PSM_ClassUnionController(PSMClassUnion classUnion, DiagramController diagramController) : base(classUnion, diagramController) { }