Menu

Text XAxis

Help
2009-10-06
2012-09-19
  • Alberto Carrascal

    I'm using a text XAxis and I'd like to know whether is possible or not to draw
    an horizontal line from one added point to the y Axis.

    Bye

     
  • Gacek

    Gacek - 2009-10-07

    Please take a look at LineObj objects. It should help you.

     
  • Alberto Carrascal

    I know that class, but I suppose my problem is to handle the graph
    coordinates. How can I get the added point coordinates? or, for example, the
    graph center coordinates? Are the coordinates zoom-dependent?

    Thanks in advance

     
  • Gacek

    Gacek - 2009-10-08

    Ok, now I understand.

    If you use LineObj with Location.CoordinateFrame = CoordType.AxisXYScale
    (which is default) it is zoom-independent.

    To get the coordinates you can catch the Curve you are drawing. For example,
    if you draw line curve, you can use LineItem:

    LineItem line = myPane.AddCurve(...)

    and then access the points via line's properties.

    The second way is to find your curve in myPane.CurveList list, and then find
    the coordinates of your point.

     

Log in to post a comment.

MongoDB Logo MongoDB