Class MasterPane
A collection class containing a list of Graph
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class MasterPane : PaneBase, ICloneable, ISerializable, IDeserializationCallback
Constructors
| Improve this Doc View SourceMasterPane()
Default constructor for the class. Sets the Rect to (0, 0, 500, 375).
Declaration
public MasterPane()
MasterPane(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected MasterPane(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | A System. |
System. |
context | A System. |
MasterPane(String, RectangleF)
Default constructor for the class. Specifies the Title of
the Master
Declaration
public MasterPane(string title, RectangleF paneRect)
Parameters
Type | Name | Description |
---|---|---|
System. |
title | |
System. |
paneRect |
MasterPane(MasterPane)
The Copy Constructor - Make a deep-copy clone of this class instance.
Declaration
public MasterPane(MasterPane rhs)
Parameters
Type | Name | Description |
---|---|---|
Master |
rhs | The Master |
Fields
| Improve this Doc View Sourceschema2
Current schema value that defines the version of the serialized file
Declaration
public const int schema2 = 11
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourceInnerPaneGap
Gets or sets the size of the margin between adjacent Graph
Declaration
public float InnerPaneGap { get; set; }
Property Value
Type | Description |
---|---|
System. |
The value is in points (1/72nd inch). |
Remarks
This property is scaled according to Calc
IsAntiAlias
Gets or sets a value that determines if all drawing operations for this
Master
Declaration
public bool IsAntiAlias { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsCommonScaleFactor
Gets or sets a value that determines if the
Do
Declaration
public bool IsCommonScaleFactor { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The scale factors, calculated by Calc
See Also
IsUniformLegendEntries
Gets or set the value of the Is
Declaration
public bool IsUniformLegendEntries { get; set; }
Property Value
Type | Description |
---|---|
System. |
Item[Int32]
Declaration
public GraphPane this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System. |
index | The ordinal position (zero-based) of the
Graph |
Property Value
| Improve this Doc View SourceItem[String]
Declaration
public GraphPane this[string title] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
title | The string title of the
Graph |
Property Value
| Improve this Doc View SourcePaneList
Gets or sets the Pane
Declaration
public PaneList PaneList { get; set; }
Property Value
Type | Description |
---|---|
Pane |
See Also
Methods
| Improve this Doc View SourceAdd(GraphPane)
Declaration
public void Add(GraphPane pane)
Parameters
See Also
AxisChange()
Call Axis
Declaration
public void AxisChange()
Remarks
This overload of AxisChange just uses a throw-away bitmap as Graphics.
If you have a Graphics instance available from your Windows Form, you should use
the Axis
AxisChange(Graphics)
Call Axis
Declaration
public void AxisChange(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
Clone()
Typesafe, deep-copy clone method.
Declaration
public MasterPane Clone()
Returns
Type | Description |
---|---|
Master |
A new, independent copy of this class |
CommonScaleFactor()
Method that forces the scale factor calculations
(via Calc
Declaration
public void CommonScaleFactor()
Remarks
This will make it such that a given font size will result in the same output font
size for all Graph
See Also
| Improve this Doc View SourceDoLayout(Graphics)
Modify the Graph
Declaration
public void DoLayout(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System. |
g |
Remarks
The Set
See Also
Draw(Graphics)
Declaration
public override void Draw(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
Overrides
Remarks
This method should be part of the Paint() update process. Calling this routine
will redraw all
features of all the Graph
FindChartRect(PointF)
Declaration
public GraphPane FindChartRect(PointF mousePt)
Parameters
Type | Name | Description |
---|---|---|
System. |
mousePt | The mouse point location where you want to search |
Returns
Type | Description |
---|---|
Graph |
A Graph |
FindNearestPaneObject(PointF, Graphics, out GraphPane, out Object, out Int32)
Find the pane and the object within that pane that lies closest to the specified mouse (screen) point.
Declaration
public bool FindNearestPaneObject(PointF mousePt, Graphics g, out GraphPane pane, out object nearestObj, out int index)
Parameters
Type | Name | Description |
---|---|---|
System. |
mousePt | The screen point, in pixel coordinates. |
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
Graph |
pane | A reference to the Graph |
System. |
nearestObj | A reference to the nearest object to the
specified screen point. This can be any of Axis,
Legend, Title,
Text |
System. |
index | The index number of the item within the selected object
(where applicable). For example, for a Curve |
Returns
Type | Description |
---|---|
System. |
true if a Graph |
Remarks
This method first finds the Graph
See Also
| Improve this Doc View SourceFindPane(PointF)
Declaration
public GraphPane FindPane(PointF mousePt)
Parameters
Type | Name | Description |
---|---|---|
System. |
mousePt | The mouse point location where you want to search |
Returns
Type | Description |
---|---|
Graph |
A Graph |
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | A System. |
System. |
context | A System. |
Overrides
| Improve this Doc View SourceOnDeserialization(Object)
Respond to the callback when the MasterPane objects are fully initialized.
Declaration
public void OnDeserialization(object sender)
Parameters
Type | Name | Description |
---|---|---|
System. |
sender |
ReSize(Graphics)
Redo the layout using the current size of the Rect,
and also handle resizing the
contents by calling Do
Declaration
public void ReSize(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
Remarks
This method will use the pane layout that was specified by a call to
Set
See Also
ReSize(Graphics, RectangleF)
Change the size of the Rect, and also handle resizing the
contents by calling Do
Declaration
public override void ReSize(Graphics g, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
System. |
rect |
Overrides
Remarks
This method will use the pane layout that was specified by a call to
Set
See Also
SetLayout(Graphics, Boolean, Int32[])
Declaration
public void SetLayout(Graphics g, bool isColumnSpecified, int[] countList)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally created with a call to the CreateGraphics() method of the Control or Form. |
System. |
isColumnSpecified | Specifies whether the number of columns in each row, or
the number of rows in each column will be specified. A value of true indicates the
number of columns in each row are specified in |
System. |
countList | An integer array specifying either the number of columns in
each row or the number of rows in each column, depending on the value of
|
Remarks
This method specifies the number of rows in each column, or the number of columns in each row, allowing for irregular layouts. Overloads are available that provide other layout options.
See Also
SetLayout(Graphics, Boolean, Int32[], Single[])
Declaration
public void SetLayout(Graphics g, bool isColumnSpecified, int[] countList, float[] proportion)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally created with a call to the CreateGraphics() method of the Control or Form. |
System. |
isColumnSpecified | Specifies whether the number of columns in each row, or
the number of rows in each column will be specified. A value of true indicates the
number of columns in each row are specified in |
System. |
countList | An integer array specifying either the number of columns in
each row or the number of rows in each column, depending on the value of
|
System. |
proportion | An array of float values specifying proportional sizes for each
row or column. Note that these proportions apply to the non-specified dimension -- that is,
if |
Remarks
This method specifies the number of panes in each row or column, allowing for irregular layouts.
See Also
SetLayout(Graphics, Int32, Int32)
Declaration
public void SetLayout(Graphics g, int rows, int columns)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally created with a call to the CreateGraphics() method of the Control or Form. |
System. |
rows | The number of rows of Graph |
System. |
columns | The number of columns of Graph |
Remarks
This method explicitly specifies the number of rows and columns to use
in the layout, and all Graph
See Also
SetLayout(Graphics, PaneLayout)
Automatically set all of the Graph
Declaration
public void SetLayout(Graphics g, PaneLayout paneLayout)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally created with a call to the CreateGraphics() method of the Control or Form. |
Pane |
paneLayout | A Pane |
Remarks
This method uses a Pane
See Also
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Implement the System.
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
System. |
A deep copy of this object |