개정판 a6272c57
issue #923: add ICommentUserInfo interface
Change-Id: Id0b65251436a5aa647eef78026dfad90d3ca64ab
MarkupToPDF/Controls/Line/ArrowControl_Multi.cs | ||
---|---|---|
351 | 351 |
} |
352 | 352 |
|
353 | 353 |
/// <summary> |
354 |
/// call when mouse is moving while drawing control |
|
355 |
/// </summary> |
|
356 |
/// <author>humkyung</author> |
|
357 |
/// <param name="pt"></param> |
|
358 |
/// <param name="bAxisLocked"></param> |
|
359 |
public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed) |
|
360 |
{ |
|
361 |
this.EndPoint = pt; |
|
362 |
if (this.MiddlePoint == new Point(0, 0)) |
|
363 |
{ |
|
364 |
if (bAxisLocked || bShiftKeyPressed) |
|
365 |
{ |
|
366 |
Point tmp = this.EndPoint; |
|
367 |
string angle = MathSet.returnAngleString(this.StartPoint, ref tmp, true); |
|
368 |
this.EndPoint = tmp; |
|
369 |
} |
|
370 |
} |
|
371 |
else |
|
372 |
{ |
|
373 |
if (bAxisLocked || bShiftKeyPressed) |
|
374 |
{ |
|
375 |
Point tmp = this.EndPoint; |
|
376 |
string angle = MathSet.returnAngleString(this.MiddlePoint, ref tmp, true); |
|
377 |
this.EndPoint = tmp; |
|
378 |
} |
|
379 |
} |
|
380 |
|
|
381 |
this.PointSet = new List<Point> |
|
382 |
{ |
|
383 |
this.StartPoint, |
|
384 |
this.MiddlePoint, |
|
385 |
this.EndPoint, |
|
386 |
}; |
|
387 |
} |
|
388 |
|
|
389 |
/// <summary> |
|
354 | 390 |
/// return ArrowControl_Multi's area |
355 | 391 |
/// </summary> |
356 | 392 |
/// <author>humkyung</author> |
내보내기 Unified diff