public void handleMouseEvent(MouseClick click) { if (click.matchesClickType(ClickType.Position)) { handlePositionClick(click as PositionClick); } else if (click.matchesClickType(ClickType.Select) && bounds.containedInRectangle((click as SelectClick).Rectangle)) { handleSelectClick(click as SelectClick); } else if (bounds.containsPoint(click.Point)) { (click as NodeClick)?.acceptPropAdd(); if (click.matchesClickType(ClickType.Click)) { mouseClick(click as StandardClick); } else if (click.matchesClickType(ClickType.Bounds)) { handleBoundsClick(click as BoundsClick); } else if (click.matchesClickType(ClickType.Release)) { mouseDragRelease(click as ReleaseClick); } else if (click.matchesClickType(ClickType.NoteSelect)) { MouseDelegate?.invokeDelegate(click); } } }
public override void checkItem(int pos, IBounds bounds) { if (bounds.containsPoint(Point)) { MeasureSet = true; Position = pos; } }