/// <summary>
        /// Flag to display a coordinates in a tooltip.
        /// </summary>
        /// <summary>
        /// Default constructor.
        /// </summary>
        public PlotSurface2D()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            ps_ = new xuzhenzhen.com.chart.PlotSurface2D();

            this.InteractionOccured += new InteractionHandler( OnInteractionOccured );
            this.PreRefresh += new PreRefreshHandler( OnPreRefresh );
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="a">Aspect Ratio</param>
 /// <param name="holdFixedX">When adjusting the position of axes, the specified axis will never be moved.</param>
 /// <param name="holdFixedY">When adjusting the position of axes, the specified axis will never be moved.</param>
 public AspectRatio( 
     double a,
     PlotSurface2D.XAxisPosition holdFixedX,
     PlotSurface2D.YAxisPosition holdFixedY)
 {
     this.a_ = a;
     this.holdFixedX_ = holdFixedX;
     this.holdFixedY_ = holdFixedY;
 }
Пример #3
0
 /// <summary>
 /// Constructor, which defines the world pixel length together with
 /// the x-axis that should be held constant when forcing this 
 /// constraint [the other x-axis only will be moved].
 /// </summary>
 /// <param name="p">The world pixel length</param>
 /// <param name="holdFixedX">The position of this x-axis will be held constant. The other x-axis will be moved in order to force the constraint.</param>
 public YPixelWorldLength( double p, PlotSurface2D.XAxisPosition holdFixedX )
 {
     this.pWorldLength_ = p;
     this.holdFixedX_ = holdFixedX;
 }
Пример #4
0
 /// <summary>
 /// Constructor, which defines the world pixel length together with
 /// the y-axis that should be held constant when forcing this 
 /// constraint [the other y-axis only will be moved].
 /// </summary>
 /// <param name="p">The world pixel length</param>
 /// <param name="holdFixedY">The position of this y-axis will be 
 /// held constant. The other y-axis will be moved in order to 
 /// force the constraint.</param>
 public XPixelWorldLength( double p, PlotSurface2D.YAxisPosition holdFixedY )
 {
     this.pWorldLength_ = p;
     this.holdFixedY_ = holdFixedY;
 }
Пример #5
0
 /// <summary>
 /// Constructor, which defines a vertical axis and the physical
 /// x position it should be drawn at.
 /// </summary>
 /// <param name="axis">The y-axis for which the x position is to be specified.</param>
 /// <param name="xPosition">The [physical] x position of the axis.</param>
 public AxisPosition( PlotSurface2D.YAxisPosition axis, int xPosition )
 {
     position_ = xPosition;
     yAxisPosition_ = axis;
 }
Пример #6
0
 /// <summary>
 /// Constructor, which defines an horizontal axis and the physical
 /// y position it should be drawn at.
 /// </summary>
 /// <param name="axis">The x-axis for which the y position is to be specified.</param>
 /// <param name="yPosition">The [physical] y position of the axis.</param>
 public AxisPosition( PlotSurface2D.XAxisPosition axis, int yPosition )
 {
     position_ = yPosition;
     xAxisPosition_ = axis;
 }
Пример #7
0
 /// <summary>
 /// Specify the Axes to attach the legend to. 
 /// </summary>
 /// <param name="xa">Specify which horizontal axis the legend should be attached to.</param>
 /// <param name="ya">Specify which vertical axis the legend should be attached to.</param>
 public void AttachTo( PlotSurface2D.XAxisPosition xa, PlotSurface2D.YAxisPosition ya )
 {
     xAttach_ = xa;
     yAttach_ = ya;
 }