개정판 a6272c57
issue #923: add ICommentUserInfo interface
Change-Id: Id0b65251436a5aa647eef78026dfad90d3ca64ab
MarkupToPDF/Controls/Line/LineControl.cs | ||
---|---|---|
487 | 487 |
} |
488 | 488 |
|
489 | 489 |
/// <summary> |
490 |
/// call when mouse is moving while drawing control |
|
491 |
/// </summary> |
|
492 |
/// <author>humkyung</author> |
|
493 |
/// <param name="pt"></param> |
|
494 |
/// <param name="bAxisLocked"></param> |
|
495 |
public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed) |
|
496 |
{ |
|
497 |
if (this.ControlType == ControlType.DimLine) |
|
498 |
this.LineStyleSet = LineStyleSet.DimLine; |
|
499 |
else if (this.ControlType == ControlType.TwinLine) |
|
500 |
this.LineStyleSet = LineStyleSet.TwinLine; |
|
501 |
else if(this.ControlType == ControlType.ArrowLine) |
|
502 |
this.LineStyleSet = LineStyleSet.ArrowLine; |
|
503 |
else if(this.ControlType == ControlType.CancelLine) |
|
504 |
this.LineStyleSet = LineStyleSet.CancelLine; |
|
505 |
else if(this.ControlType == ControlType.SingleLine) |
|
506 |
this.LineStyleSet = LineStyleSet.SingleLine; |
|
507 |
|
|
508 |
this.EndPoint = pt; |
|
509 |
|
|
510 |
if (bAxisLocked || bShiftKeyPressed) |
|
511 |
{ |
|
512 |
Point tmp = this.EndPoint; |
|
513 |
string angle = MathSet.returnAngleString(this.StartPoint, ref tmp, true); |
|
514 |
this.EndPoint = tmp; |
|
515 |
} |
|
516 |
|
|
517 |
this.PointSet = new List<Point> |
|
518 |
{ |
|
519 |
this.StartPoint, |
|
520 |
this.EndPoint, |
|
521 |
}; |
|
522 |
} |
|
523 |
|
|
524 |
/// <summary> |
|
490 | 525 |
/// return linecontrols' area |
491 | 526 |
/// </summary> |
492 | 527 |
/// <author>humkyung</author> |
내보내기 Unified diff