예제 #1
0
		internal virtual void restoreState(ItemState state)
		{
			ptOrg = state.ptOrg;
			ptEnd = state.ptEnd;
			rect = state.rect;
			Selected = state.selected;
		}
예제 #2
0
파일: Node.cs 프로젝트: ChrisMoreton/Test3
		internal override void restoreState(ItemState state)
		{
			base.restoreState(state);

			onRectUpdate();

			if (subordinateGroup != null)
				subordinateGroup.onRestoreState();
		}
예제 #3
0
		internal virtual void saveState(ItemState state)
		{
			state.ptOrg = ptOrg;
			state.ptEnd = ptEnd;
			state.rect = rect;
			state.selected = selected;
		}
예제 #4
0
파일: Arrow.cs 프로젝트: ChrisMoreton/Test3
		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();
		}
예제 #5
0
파일: Arrow.cs 프로젝트: ChrisMoreton/Test3
		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;
		}
예제 #6
0
파일: Box.cs 프로젝트: ChrisMoreton/Test3
		internal override void restoreState(ItemState state)
		{
			base.restoreState(state);

			BoxState bstate = (BoxState)state;
			setRotation(bstate.rotationAngle);
		}
예제 #7
0
파일: Box.cs 프로젝트: ChrisMoreton/Test3
		internal override void saveState(ItemState state)
		{
			base.saveState(state);

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