NPlot::AxesConstraint::AxisPosition Class Reference

Defines an AxisConstraint that forces the specified axis to be placed at a specific physical position. More...

Inheritance diagram for NPlot::AxesConstraint::AxisPosition:

NPlot::AxesConstraint List of all members.

Public Member Functions

 AxisPosition (PlotSurface2D.XAxisPosition axis, int yPosition)
 Constructor, which defines an horizontal axis and the physical y position it should be drawn at.
 AxisPosition (PlotSurface2D.YAxisPosition axis, int xPosition)
 Constructor, which defines a vertical axis and the physical x position it should be drawn at.
override void ApplyConstraint (PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2)
 Applies the constraint to the axes.

Private Attributes

object xAxisPosition_
object yAxisPosition_
int position_

Detailed Description

Defines an AxisConstraint that forces the specified axis to be placed at a specific physical position.

The position of the axis opposite is held constant.

Definition at line 236 of file AxesConstraint.cs.


Constructor & Destructor Documentation

NPlot::AxesConstraint::AxisPosition::AxisPosition PlotSurface2D.XAxisPosition  axis,
int  yPosition
[inline]
 

Constructor, which defines an horizontal axis and the physical y position it should be drawn at.

Parameters:
axis The x-axis for which the y position is to be specified.
yPosition The [physical] y position of the axis.

Definition at line 250 of file AxesConstraint.cs.

References position_, and xAxisPosition_.

NPlot::AxesConstraint::AxisPosition::AxisPosition PlotSurface2D.YAxisPosition  axis,
int  xPosition
[inline]
 

Constructor, which defines a vertical axis and the physical x position it should be drawn at.

Parameters:
axis The y-axis for which the x position is to be specified.
xPosition The [physical] x position of the axis.

Definition at line 263 of file AxesConstraint.cs.

References position_, and yAxisPosition_.


Member Function Documentation

override void NPlot::AxesConstraint::AxisPosition::ApplyConstraint PhysicalAxis  pXAxis1,
PhysicalAxis  pYAxis1,
PhysicalAxis  pXAxis2,
PhysicalAxis  pYAxis2
[inline, virtual]
 

Applies the constraint to the axes.

Parameters:
pXAxis1 The bottom x-axis.
pYAxis1 The left y-axis.
pXAxis2 The top x-axis.
pYAxis2 The right y-axis.

Implements NPlot::AxesConstraint.

Definition at line 276 of file AxesConstraint.cs.

References NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, position_, xAxisPosition_, and yAxisPosition_.


Member Data Documentation

int NPlot::AxesConstraint::AxisPosition::position_ [private]
 

Definition at line 241 of file AxesConstraint.cs.

Referenced by ApplyConstraint(), and AxisPosition().

object NPlot::AxesConstraint::AxisPosition::xAxisPosition_ [private]
 

Definition at line 239 of file AxesConstraint.cs.

Referenced by ApplyConstraint(), and AxisPosition().

object NPlot::AxesConstraint::AxisPosition::yAxisPosition_ [private]
 

Definition at line 240 of file AxesConstraint.cs.

Referenced by ApplyConstraint(), and AxisPosition().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:07 2005 for NPlot by  doxygen 1.4.5