Class YAxis
YAxis inherits from Axis, and defines the special characteristics of a vertical axis, specifically located on the right side of the Rect of the GraphPane object
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class YAxis : Axis, ICloneable, ISerializable
Constructors
| Improve this Doc View SourceYAxis()
Default constructor that sets all YAxis properties to default values as defined in the YAxis.Default class
Declaration
public YAxis()
YAxis(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected YAxis(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
YAxis(String)
Default constructor that sets all YAxis properties to default values as defined in the YAxis.Default class, except for the axis title
Declaration
public YAxis(string title)
Parameters
Type | Name | Description |
---|---|---|
String | title | The Title for this axis |
YAxis(YAxis)
The Copy Constructor
Declaration
public YAxis(YAxis rhs)
Parameters
Type | Name | Description |
---|---|---|
YAxis | rhs | The YAxis object from which to copy |
Fields
| Improve this Doc View Sourceschema2
Current schema value that defines the version of the serialized file
Declaration
public const int schema2 = 10
Field Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public YAxis Clone()
Returns
Type | Description |
---|---|
YAxis | A new, independent copy of this class |
GetCrossAxis(GraphPane)
Gets the "Cross" axis that corresponds to this axis.
Declaration
public override Axis GetCrossAxis(GraphPane pane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | A reference to the GraphPane object that is the parent or owner of this object. |
Returns
Type | Description |
---|---|
Axis |
Overrides
Remarks
The cross axis is the axis which determines the of this Axis when the Cross property is used. The cross axis for any XAxis or X2Axis is always the primary YAxis, and the cross axis for any YAxis or Y2Axis is always the primary XAxis.
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
Overrides
| Improve this Doc View SourceSetTransformMatrix(Graphics, GraphPane, Single)
Setup the Transform Matrix to handle drawing of this YAxis
Declaration
public override void SetTransformMatrix(Graphics g, GraphPane pane, float scaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Graphics | g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
GraphPane | pane | A reference to the GraphPane object that is the parent or owner of this object. |
Single | scaleFactor | The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
Object | A deep copy of this object |