internal virtual void restoreState(ItemState state) { ptOrg = state.ptOrg; ptEnd = state.ptEnd; rect = state.rect; Selected = state.selected; }
internal override void restoreState(ItemState state) { base.restoreState(state); onRectUpdate(); if (subordinateGroup != null) subordinateGroup.onRestoreState(); }
internal virtual void saveState(ItemState state) { state.ptOrg = ptOrg; state.ptEnd = ptEnd; state.rect = rect; state.selected = selected; }
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(); }
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; }
internal override void restoreState(ItemState state) { base.restoreState(state); BoxState bstate = (BoxState)state; setRotation(bstate.rotationAngle); }
internal override void saveState(ItemState state) { base.saveState(state); BoxState bstate = (BoxState)state; bstate.rotationAngle = rotationAngle; }