Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="position">The position the arrow points to.</param>
 /// <param name="angle">angle of arrow with respect to x axis.</param>
 public ArrowItem(PointD position, double angle)
 {
     to_    = position;
     angle_ = -angle;
     Init();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="marker">The marker to place on the chart.</param>
 /// <param name="point">The world position of the marker</param>
 public MarkerItem(Marker marker, PointD point)
 {
     marker_ = marker;
     x_      = point.X;
     y_      = point.Y;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Default constructor :
 /// text = ""
 /// angle = 45 degrees anticlockwise from horizontal.
 /// </summary>
 /// <param name="position">The position the arrow points to.</param>
 public ArrowItem(PointD position)
 {
     to_ = position;
     Init();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs a square marker at the (world) point point.
 /// </summary>
 /// <param name="point">the world position at which to place the marker</param>
 public MarkerItem(PointD point)
 {
     marker_ = new Marker(Marker.MarkerType.Square);
     x_      = point.X;
     y_      = point.Y;
 }