Class ZoomStateStack
A LIFO stack of prior ZoomState objects, used to allow zooming out to prior states (of scale range settings).
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public class ZoomStateStack : List<ZoomState>, IList<ZoomState>, ICollection<ZoomState>, IEnumerable<ZoomState>, IList, ICollection, IEnumerable, ICloneable
Constructors
| Improve this Doc View SourceZoomStateStack()
Default Constructor
Declaration
public ZoomStateStack()
ZoomStateStack(ZoomStateStack)
The Copy Constructor
Declaration
public ZoomStateStack(ZoomStateStack rhs)
Parameters
Type | Name | Description |
---|---|---|
ZoomStateStack | rhs | The ZoomStateStack object from which to copy |
Properties
| Improve this Doc View SourceIsEmpty
Public readonly property that indicates if the stack is empty
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean | true for an empty stack, false otherwise |
Top
Gets a reference to the ZoomState object at the top of the stack, without actually removing it from the stack.
Declaration
public ZoomState Top { get; }
Property Value
Type | Description |
---|---|
ZoomState | A ZoomState object reference, or null if the stack is empty. |
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public ZoomStateStack Clone()
Returns
Type | Description |
---|---|
ZoomStateStack | A new, independent copy of this class |
Pop(GraphPane)
Pop a ZoomState entry from the top of the stack, and apply the properties to the specified GraphPane object.
Declaration
public ZoomState Pop(GraphPane pane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane object to which the scale range information should be copied. |
Returns
Type | Description |
---|---|
ZoomState | The ZoomState object that was "popped" from the stack and applied to the specified GraphPane. null if no ZoomState was available (the stack was empty). |
PopAll(GraphPane)
Pop the ZoomState entry from the bottom of the stack, and apply the properties to the specified GraphPane object. Clear the stack completely.
Declaration
public ZoomState PopAll(GraphPane pane)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane object to which the scale range information should be copied. |
Returns
Type | Description |
---|---|
ZoomState | The ZoomState object at the bottom of the stack that was applied to the specified GraphPane. null if no ZoomState was available (the stack was empty). |
Push(GraphPane, ZoomState.StateType)
Add the scale range information from the specified GraphPane object as a new ZoomState entry on the stack.
Declaration
public ZoomState Push(GraphPane pane, ZoomState.StateType type)
Parameters
Type | Name | Description |
---|---|---|
GraphPane | pane | The GraphPane object from which the scale range information should be copied. |
ZoomState.StateType | type | A ZoomState.StateType enumeration that indicates whether this state is the result of a zoom or pan operation. |
Returns
Type | Description |
---|---|
ZoomState | The resultant ZoomState object that was pushed on the stack. |
Push(ZoomState)
Add the scale range information from the specified ZoomState object as a new ZoomState entry on the stack.
Declaration
public ZoomState Push(ZoomState state)
Parameters
Type | Name | Description |
---|---|---|
ZoomState | state | The ZoomState object to be placed on the stack. |
Returns
Type | Description |
---|---|
ZoomState | The ZoomState object (same as the |
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 |