Class ScaleState
A class that captures an Axis scale range.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public class ScaleState : ICloneable
Remarks
This structure is used by the ZoomState class to store Axis scale range settings in a collection for later retrieval. The class stores the Min, Max, MinorStep, and MajorStep properties, along with the corresponding auto-scale settings: MinAuto, MaxAuto, MinorStepAuto, and MajorStepAuto.
Constructors
| Improve this Doc View SourceScaleState(Axis)
Construct a ScaleState from the specified Axis
Declaration
public ScaleState(Axis axis)
Parameters
Type | Name | Description |
---|---|---|
Axis | axis | The Axis from which to collect the scale range settings. |
ScaleState(ScaleState)
The Copy Constructor
Declaration
public ScaleState(ScaleState rhs)
Parameters
Type | Name | Description |
---|---|---|
ScaleState | rhs | The ScaleState object from which to copy |
Methods
| Improve this Doc View SourceApplyScale(Axis)
Copy the properties from this ScaleState out to the specified Axis.
Declaration
public void ApplyScale(Axis axis)
Parameters
Type | Name | Description |
---|---|---|
Axis | axis | The Axis reference to which the properties should be copied |
Clone()
Typesafe, deep-copy clone method.
Declaration
public ScaleState Clone()
Returns
Type | Description |
---|---|
ScaleState | A new, independent copy of this class |
IsChanged(Axis)
Determine if the state contained in this ScaleState object is different from the state of the specified Axis.
Declaration
public bool IsChanged(Axis axis)
Parameters
Type | Name | Description |
---|---|---|
Axis | axis | The Axis object with which to compare states. |
Returns
Type | Description |
---|---|
Boolean | true if the states are different, false otherwise |
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 |