Exemple #1
0
		internal virtual void restoreState(ItemState state)
		{
			ptOrg = state.ptOrg;
			ptEnd = state.ptEnd;
			rect = state.rect;
			Selected = state.selected;
		}
Exemple #2
0
		internal override void restoreState(ItemState state)
		{
			base.restoreState(state);

			onRectUpdate();

			if (subordinateGroup != null)
				subordinateGroup.onRestoreState();
		}
Exemple #3
0
		internal virtual void saveState(ItemState state)
		{
			state.ptOrg = ptOrg;
			state.ptEnd = ptEnd;
			state.rect = rect;
			state.selected = selected;
		}
Exemple #4
0
		internal override void restoreState(ItemState state)
		{
			base.restoreState(state);

			ArrowState astate = (ArrowState)state;
			style = astate.style;
			segmentCount = astate.segmentCount;
			points = astate.points.Clone();
			reflexive = astate.reflexive;
			cascadeStartHorizontal = astate.cascadeStartHorizontal;

			if (orgnLink != astate.orgnLink)
			{
				orgnLink.removeArrowFromObj();
				orgnLink = astate.orgnLink;
				orgnLink.addArrowToObj();
			}
			orgnAnchor = astate.orgnAnchor;

			if (destLink != astate.destLink)
			{
				destLink.removeArrowFromObj();
				destLink = astate.destLink;
				destLink.addArrowToObj();
			}
			destAnchor = astate.destAnchor;

			updateFromPoints(false);

			if (subordinateGroup != null)
				subordinateGroup.onRestoreState();

			orgnLink.RelativePosition = astate.orgnPoint;
			destLink.RelativePosition = astate.destPoint;

			resetCrossings();
			updateText();
		}
Exemple #5
0
		internal override void saveState(ItemState state)
		{
			base.saveState(state);

			ArrowState astate = (ArrowState)state;
			astate.points = points.Clone();
			astate.segmentCount = segmentCount;
			astate.style = style;
			astate.reflexive = reflexive;
			astate.cascadeStartHorizontal = cascadeStartHorizontal;

			astate.orgnLink = orgnLink;
			astate.orgnAnchor = orgnAnchor;
			astate.destLink = destLink;
			astate.destAnchor = destAnchor;

			astate.orgnPoint = orgnLink.RelativePosition;
			astate.destPoint = destLink.RelativePosition;
		}
Exemple #6
0
		internal override void restoreState(ItemState state)
		{
			base.restoreState(state);

			BoxState bstate = (BoxState)state;
			setRotation(bstate.rotationAngle);
		}
Exemple #7
0
		internal override void saveState(ItemState state)
		{
			base.saveState(state);

			BoxState bstate = (BoxState)state;
			bstate.rotationAngle = rotationAngle;
		}