Пример #1
0
 public void Add(IDrawable p, PlotSurface2D.XAxisPosition xax, PlotSurface2D.YAxisPosition yax)
 {
     this.invokeOnGuiThread(() =>
     {
         this.PlotSurface.Add(p, xax, yax);
     });
     this.refresh();
 }
Пример #2
0
 public void Add(IDrawable p, PlotSurface2D.XAxisPosition xp, PlotSurface2D.YAxisPosition yp, int zOrder)
 {
     this.invokeOnGuiThread(() =>
     {
         this.PlotSurface.Add(p, xp, yp, zOrder);
     });
     this.refresh();
 }
Пример #3
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)
 {
     a_          = a;
     holdFixedX_ = holdFixedX;
     holdFixedY_ = holdFixedY;
 }
Пример #4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Legend()
 {
     xAttach_ = PlotSurface2D.XAxisPosition.Top;
     yAttach_ = PlotSurface2D.YAxisPosition.Right;
     xOffset_ = 10;
     yOffset_ = 1;
     verticalEdgePlacement_ = Placement.Outside;
     horizontalEdgePlacement_ = Placement.Inside;
     neverShiftAxes_ = false;
 }
Пример #5
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Legend()
 {
     xAttach_ = PlotSurface2D.XAxisPosition.Top;
     yAttach_ = PlotSurface2D.YAxisPosition.Right;
     xOffset_ = 10;
     yOffset_ = 1;
     verticalEdgePlacement_   = Placement.Outside;
     horizontalEdgePlacement_ = Placement.Inside;
     neverShiftAxes_          = false;
 }
Пример #6
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Legend()
 {
     xAttach_ = PlotSurface2D.XAxisPosition.Top;
     yAttach_ = PlotSurface2D.YAxisPosition.Right;
     XOffset  = 10;
     YOffset  = 1;
     VerticalEdgePlacement   = Placement.Outside;
     HorizontalEdgePlacement = Placement.Inside;
     NeverShiftAxes          = false;
 }
Пример #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;
 }
Пример #8
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)
 {
     pWorldLength_ = p;
     holdFixedX_   = holdFixedX;
 }
Пример #9
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;
 }
Пример #10
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;
 }
Пример #11
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>
 public AspectRatio(double a, PlotSurface2D.XAxisPosition holdFixedX)
 {
     this.a_          = a;
     this.holdFixedX_ = holdFixedX;
 }
Пример #12
0
 public void Add(IDrawable p, PlotSurface2D.XAxisPosition xax, PlotSurface2D.YAxisPosition yax)
 {
     this.ActiveOrNewFigure.Add(p, xax, yax);
 }
Пример #13
0
 public void Add(IDrawable p, PlotSurface2D.XAxisPosition xp, PlotSurface2D.YAxisPosition yp, int zOrder)
 {
     this.ActiveOrNewFigure.Add(p, xp, yp, zOrder);
 }