public override IHitTestObject HitTest(HitTestPointData htd) { IHitTestObject result; var pt = htd.GetHittedPointInWorldCoord(_transformation); foreach (GraphicsPath gp in _cachedSymbolPositions.Keys) { if (gp.IsVisible((PointF)pt)) { result = new HitTestObject(gp, _cachedSymbolPositions[gp]) { DoubleClick = PlotItemEditorMethod }; return(result); } } result = base.HitTest(htd); if (null != result) { result.DoubleClick = TextGraphicsEditorMethod; } return(result); }
public override IHitTestObject HitTest(PointF pt) { HitTestObject result = null; GraphicsPath gp = GetSelectionPath(); if (gp.IsVisible(pt)) { result = new HitTestObject(GetObjectPath(), gp, this); } if (result != null) { result.DoubleClick = EhHitDoubleClick; } return(result); }
public override IHitTestObject HitTest(HitTestPointData htd) { IHitTestObject result; var pt = htd.GetHittedPointInWorldCoord(_transformation); foreach (GraphicsPath gp in this._cachedSymbolPositions.Keys) { if (gp.IsVisible((PointF)pt)) { result = new HitTestObject(gp, _cachedSymbolPositions[gp]); result.DoubleClick = PlotItemEditorMethod; return result; } } result = base.HitTest(htd); if (null != result) result.DoubleClick = TextGraphicsEditorMethod; return result; }
public override IHitTestObject HitTest(PointF pt) { IHitTestObject result; foreach(GraphicsPath gp in this._cachedSymbolPositions.Keys) { if(gp.IsVisible(pt)) { result = new HitTestObject(gp,_cachedSymbolPositions[gp]); result.DoubleClick = PlotItemEditorMethod; return result; } } result = base.HitTest(pt); if(null!=result) result.DoubleClick = TextGraphicsEditorMethod; return result; }
public override IHitTestObject HitTest(PointF pt) { HitTestObject result = null; GraphicsPath gp = GetSelectionPath(); if (gp.IsVisible(pt)) { result = new HitTestObject(GetObjectPath(),gp, this); } if (result != null) result.DoubleClick = EhHitDoubleClick; return result; }