Class ZoomState
A class that captures all the scale range settings for a GraphPane.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public class ZoomState : ICloneable
Remarks
This class is used to store scale ranges in order to allow zooming out to prior scale range states. ZoomState objects are maintained in the ZoomStateStack collection. The ZoomState object holds a ScaleState object for each of the three axes; the XAxis, the YAxis, and the Y2Axis.
Constructors
| Improve this Doc View SourceZoomState(GraphPane, ZoomState.StateType)
Declaration
public ZoomState(GraphPane pane, ZoomState.StateType type)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane from which to obtain the scale range values. |
ZoomState.StateType | type | A ZoomState.StateType enumeration that indicates whether this saved state is from a pan or zoom. |
ZoomState(ZoomState)
The Copy Constructor
Declaration
public ZoomState(ZoomState rhs)
Parameters
Type | Name | Description |
---|---|---|
ZoomState | rhs | The ZoomState object from which to copy |
Properties
| Improve this Doc View SourceType
Gets a ZoomState.StateType value indicating the type of action (zoom or pan) saved by this ZoomState.
Declaration
public ZoomState.StateType Type { get; }
Property Value
Type | Description |
---|---|
ZoomState.StateType |
TypeString
Gets a string representing the type of adjustment that was made when this scale state was saved.
Declaration
public string TypeString { get; }
Property Value
Type | Description |
---|---|
String | A string representation for the state change type; typically "Pan", "Zoom", or "Scroll". |
Methods
| Improve this Doc View SourceApplyState(GraphPane)
Declaration
public void ApplyState(GraphPane pane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane to which the scale range properties should be copied. |
Clone()
Typesafe, deep-copy clone method.
Declaration
public ZoomState Clone()
Returns
Type | Description |
---|---|
ZoomState | A new, independent copy of this class |
IsChanged(GraphPane)
Determine if the state contained in this ZoomState object is different from the state of the specified GraphPane.
Declaration
public bool IsChanged(GraphPane pane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane 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 |