Beispiel #1
0
 /// <summary>
 /// Size the object appropriately
 /// </summary>
 public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
 {
     base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);
     if (fixupState == BoundsFixupState.ViewFixup)
     {
         AutoResize();
     }
 }
Beispiel #2
0
        public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
        {
            base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);

            // be sure the isActiveTab property is set for Active Tab
            VDTabHead tabHead = this.ModelElement as VDTabHead;

            if (tabHead != null && tabHead.Parent != null && tabHead.Parent.Parent != null)
            {
                VDTab tab = tabHead.Parent.Parent as VDTab;
                if (tab != null && tab.ActiveHead == tabHead)
                {
                    this.isActiveTab = true;
                }
            }
        }
Beispiel #3
0
        public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
        {
            base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);

            // be sure the isActiveTab property is set for Active Tab
            VDTabHead tabHead = this.ModelElement as VDTabHead;
            if (tabHead != null && tabHead.Parent != null && tabHead.Parent.Parent != null)
            {
                VDTab tab = tabHead.Parent.Parent as VDTab;
                if (tab != null && tab.ActiveHead == tabHead)
                {
                    this.isActiveTab = true;
                }
            }
        }
Beispiel #4
0
 /// <summary>
 /// TIPS placement d'un shape
 /// </summary>
 /// <param name="fixupState">The state of the bounds.</param>
 /// <param name="iteration">The iteration.</param>
 /// <param name="createdDuringViewFixup">true if a child shape was created during the fix up process; otherwise, false.</param>
 public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
 {
     base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);
     AbsoluteBounds = new RectangleD(0, 0, Size.Width, Size.Height);
 }
Beispiel #5
0
		/// <summary>
		/// Size the object appropriately
		/// </summary>
		public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
		{
			base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);
			if (fixupState == BoundsFixupState.ViewFixup)
			{
				AutoResize();
			}
		}
Beispiel #6
0
 /// <summary>
 /// Ensure outer decorators are placed appropriately.  This is called during view fixup,
 /// after the shape has been associated with the model element.
 /// </summary>
 /// <param name="fixupState"></param>
 /// <param name="iteration"></param>
 /// <param name="createdDuringViewFixup"></param>
 public override void OnBoundsFixup(BoundsFixupState fixupState, int iteration, bool createdDuringViewFixup)
 {
     base.OnBoundsFixup(fixupState, iteration, createdDuringViewFixup);
     ArrangeShapes();
 }