Class Y2Axis
Y2Axis 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 Y2Axis : Axis, ICloneable, ISerializable
Constructors
| Improve this Doc View SourceY2Axis()
Default constructor that sets all Y2Axis properties to default values as defined in the Y2Axis.Default class
Declaration
public Y2Axis()
Y2Axis(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected Y2Axis(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 |
Y2Axis(String)
Default constructor that sets all Y2Axis properties to default values as defined in the Y2Axis.Default class, except for the axis title
Declaration
public Y2Axis(string title)
Parameters
Type | Name | Description |
---|---|---|
String | title | The Title for this axis |
Y2Axis(Y2Axis)
The Copy Constructor
Declaration
public Y2Axis(Y2Axis rhs)
Parameters
Type | Name | Description |
---|---|---|
Y2Axis | rhs | The Y2Axis 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 Y2Axis Clone()
Returns
Type | Description |
---|---|
Y2Axis | 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 Y2Axis
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 |