Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
		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;
		}
Esempio n. 4
0
    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;

    }
Esempio n. 5
0
    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;
    }