ZedGraph
The last caption that was set.
The last point a tool tip caption was set at.
Initializes a new instance of the class.
The control.
The active callback.
The set tool tip callback.
control
or
activeCallback
or
setToolTipCallback
Gets the delegate that is called when the active state of the tool
tip is changed.
The active state delegate callback.
Gets the control that this tool tip instance handles.
The control that this tool tip instance handles.
Gets the callback delegate to call when the caption is set.
The callback delegate to call when the caption is set.
Disables the tool tip.
Enables the tool tip.
Sets the specified caption.
The caption.
Sets the caption for the tool tip at the specified point.
The caption.
The point.
Creates a for the specified control,
using the supplied tooltip to display values.
The control.
The tool tip.
toolTip
Disables the tool tip.
Enables the tool tip.
Sets the caption for the tool tip at the specified point.
The caption.
The point.
The reversible frame draws a dashed rectangle
The possible pen styles for creating pens.
The available raster operation types.
Draws the reversible frame with the given background color for the specified control rectangle.
The graphics object.
Color of the background.
The rectangle.
The ZedGraphControl class provides a UserControl interface to the
class library. This allows ZedGraph to be installed
as a control in the Visual Studio toolbox. You can use the control by simply
dragging it onto a form in the Visual Studio form editor. All graph
attributes are accessible via the
property.
John Champion revised by Jerry Vos
$Revision: 3.86 $ $Date: 2007-11-03 04:41:29 $
The tool tip for displaying the cursor and point values.
Enables the tool tip.
Sets the tool tip.
The caption.
The point.
Disables the tool tip.
Public enumeration that specifies the type of
object present at the Context Menu's mouse location
The object is an Inactive Curve Item at the Context Menu's mouse position
The object is an active Curve Item at the Context Menu's mouse position
There is no selectable object present at the Context Menu's mouse position
Find the object currently under the mouse cursor, and return its state.
protected method to handle the popup context menu in the .
Handler for the "Copy" context menu item. Copies the current image to a bitmap on the
clipboard.
Handler for the "Copy" context menu item. Copies the current image to a bitmap on the
clipboard.
boolean value that determines whether or not a prompt will be
displayed. true to show a message of "Image Copied to ClipBoard".
A threaded version of the copy method to avoid crash with MTA
Setup for creation of a new image, applying appropriate anti-alias properties and
returning the resultant image file
Special handler that copies the current image to an Emf file on the clipboard.
This version is similar to the regular method, except that
it will place an Emf image (vector) on the ClipBoard instead of the regular bitmap.
boolean value that determines whether or not a prompt will be
displayed. true to show a message of "Image Copied to ClipBoard".
A threaded version of the copy method to avoid crash with MTA
Handler for the "Save Image As" context menu item. Copies the current image to the selected
file.
Handler for the "Save Image As" context menu item. Copies the current image to the selected
file in either the Emf (vector), or a variety of Bitmap formats.
Note that and methods are provided
which allow for Bitmap-only or Emf-only handling of the "Save As" context menu item.
Copies the current image to the selected file in
Emf (vector), or a variety of Bitmap formats.
Accepts a default file name for the file dialog (if "" or null, default is not used)
The file name saved, or "" if cancelled.
Note that and methods are provided
which allow for Bitmap-only or Emf-only handling of the "Save As" context menu item.
Handler for the "Save Image As" context menu item. Copies the current image to the selected
Bitmap file.
Note that this handler saves as a bitmap only. The default handler is
, which allows for Bitmap or EMF formats
Handler for the "Save Image As" context menu item. Copies the current image to the selected
Emf format file.
Note that this handler saves as an Emf format only. The default handler is
, which allows for Bitmap or EMF formats.
Save the current Graph to the specified filename in EMF (vector) format.
See for public access.
Note that this handler saves as an Emf format only. The default handler is
, which allows for Bitmap or EMF formats.
Handler for the "Show Values" context menu item. Toggles the
property, which activates the point value tooltips.
Handler for the "Set Scale to Default" context menu item. Sets the scale ranging to
full auto mode for all axes.
This method differs from the method in that it sets the scales
to full auto mode. The method sets the scales to their initial
setting prior to any user actions (which may or may not be full auto mode).
Handler for the "Set Scale to Default" context menu item. Sets the scale ranging to
full auto mode for all axes.
This method differs from the method in that it sets the scales
to full auto mode. The method sets the scales to their initial
setting prior to any user actions (which may or may not be full auto mode).
The object which is to have the
scale restored
Handler for the "UnZoom/UnPan" context menu item. Restores the scale ranges to the values
before the last zoom or pan operation.
Handler for the "UnZoom/UnPan" context menu item. Restores the scale ranges to the values
before the last zoom, pan, or scroll operation.
Triggers a for any type of undo (including pan, scroll, zoom, and
wheelzoom). This method will affect all the
objects in the if
or is true.
The primary object which is to be
zoomed out
Handler for the "Undo All Zoom/Pan" context menu item. Restores the scale ranges to the values
before all zoom and pan operations
This method differs from the method in that it sets the scales
to their initial setting prior to any user actions. The method
sets the scales to full auto mode (regardless of what the initial setting may have been).
Handler for the "Undo All Zoom/Pan" context menu item. Restores the scale ranges to the values
before all zoom and pan operations
This method differs from the method in that it sets the scales
to their initial setting prior to any user actions. The method
sets the scales to full auto mode (regardless of what the initial setting may have been).
The object which is to be zoomed out
This private field contains the instance for the MasterPane object of this control.
You can access the MasterPane object through the public property
. This is nulled when this Control is
disposed.
private field that determines whether or not tooltips will be displayed
when the mouse hovers over data values. Use the public property
to access this value.
private field that determines whether or not tooltips will be displayed
showing the scale values while the mouse is located within the ChartRect.
Use the public property to access this value.
private field that determines the format for displaying tooltip values.
This format is passed to .
Use the public property to access this
value.
private field that determines whether or not the context menu will be available. Use the
public property to access this value.
private field that determines whether or not a message box will be shown in response to
a context menu "Copy" command. Use the
public property to access this value.
Note that, if this value is set to false, the user will receive no indicative feedback
in response to a Copy action.
private field that determines whether the settings of
and
will be overridden to true during printing operations.
Printing involves pixel maps that are typically of a dramatically different dimension
than on-screen pixel maps. Therefore, it becomes more important to scale the fonts and
lines to give a printed image that looks like what is shown on-screen. The default
setting for is true, but the default
setting for is false.
A value of true will cause both and
to be temporarily set to true during
printing operations.
private field that determines whether or not the visible aspect ratio of the
will be preserved
when printing this .
private field that determines whether or not the
dimensions will be expanded to fill the
available space when printing this .
If is also true, then the
dimensions will be expanded to fit as large
a space as possible while still honoring the visible aspect ratio.
private field that determines the format for displaying tooltip date values.
This format is passed to .
Use the public property to access this
value.
private value that determines whether or not zooming is enabled for the control in the
vertical direction. Use the public property to access this
value.
private value that determines whether or not zooming is enabled for the control in the
horizontal direction. Use the public property to access this
value.
private value that determines whether or not zooming is enabled with the mousewheel.
Note that this property is used in combination with the and
properties to control zoom options.
private value that determines whether or not point editing is enabled in the
vertical direction. Use the public property to access this
value.
private value that determines whether or not point editing is enabled in the
horizontal direction. Use the public property to access this
value.
private value that determines whether or not panning is allowed for the control in the
horizontal direction. Use the
public property to access this value.
private value that determines whether or not panning is allowed for the control in the
vertical direction. Use the
public property to access this value.
Internal variable that indicates if the control can manage selections.
private field that stores a instance, which maintains
a persistent selection of printer options.
This is needed so that a "Print" action utilizes the settings from a prior
"Page Setup" action.
This private field contains a list of selected CurveItems.
Gets or sets a value that determines which Mouse button will be used to click on
linkable objects
Gets or sets a value that determines which modifier keys will be used to click
on linkable objects
Gets or sets a value that determines which Mouse button will be used to edit point
data values
This setting only applies if and/or
are true.
Gets or sets a value that determines which modifier keys will be used to edit point
data values
This setting only applies if and/or
are true.
Gets or sets a value that determines which mouse button will be used to select
's.
This setting only applies if is true.
Gets or sets a value that determines which modifier keys will be used to select
's.
This setting only applies if is true.
Gets or sets a value that determines which Mouse button will be used to perform
zoom operations
This setting only applies if and/or
are true.
Gets or sets a value that determines which modifier keys will be used to perform
zoom operations
This setting only applies if and/or
are true.
Gets or sets a value that determines which Mouse button will be used as a
secondary option to perform zoom operations
This setting only applies if and/or
are true.
Gets or sets a value that determines which modifier keys will be used as a
secondary option to perform zoom operations
This setting only applies if and/or
are true.
Gets or sets a value that determines which Mouse button will be used to perform
panning operations
This setting only applies if and/or
are true. A Pan operation (dragging the graph with
the mouse) should not be confused with a scroll operation (using a scroll bar to
move the graph).
Gets or sets a value that determines which modifier keys will be used to perform
panning operations
This setting only applies if and/or
are true. A Pan operation (dragging the graph with
the mouse) should not be confused with a scroll operation (using a scroll bar to
move the graph).
Gets or sets a value that determines which Mouse button will be used as a
secondary option to perform panning operations
This setting only applies if and/or
are true. A Pan operation (dragging the graph with
the mouse) should not be confused with a scroll operation (using a scroll bar to
move the graph).
Gets or sets a value that determines which modifier keys will be used as a
secondary option to perform panning operations
This setting only applies if and/or
are true. A Pan operation (dragging the graph with
the mouse) should not be confused with a scroll operation (using a scroll bar to
move the graph).
Internal variable that indicates the control is currently being zoomed.
Internal variable that indicates the control is currently being panned.
Internal variable that indicates a point value is currently being edited.
Internal variable that indicates the control is currently using selection.
Internal variable that stores the reference for the Pane that is
currently being zoomed or panned.
Internal variable that stores a rectangle which is either the zoom rectangle, or the incremental
pan amount since the last mousemove event.
private field that stores the state of the scale ranges prior to starting a panning action.
Default Constructor
Clean up any resources being used.
true if the components should be
disposed, false otherwise
Called by the system to update the control on-screen
A PaintEventArgs object containing the Graphics specifications
for this Paint event.
Called when the control has been resized.
A reference to the control that has been resized.
An EventArgs object.
This performs an axis change command on the graphPane.
This is the same as
ZedGraphControl.GraphPane.AxisChange( ZedGraphControl.CreateGraphics() ), however,
this method also calls if
is true.
Save the current states of the GraphPanes to a separate collection. Save a single
() GraphPane if the panes are not synchronized
(see and ),
or save a list of states for all GraphPanes if the panes are synchronized.
The primary GraphPane on which zoom/pan/scroll operations
are taking place
The that describes the
current operation
The that corresponds to the
.
Restore the states of the GraphPanes to a previously saved condition (via
. This is essentially an "undo" for live
pan and scroll actions. Restores a single
() GraphPane if the panes are not synchronized
(see and ),
or save a list of states for all GraphPanes if the panes are synchronized.
The primary GraphPane on which zoom/pan/scroll operations
are taking place
Place the previously saved states of the GraphPanes on the individual GraphPane
collections. This provides for an
option to undo the state change at a later time. Save a single
() GraphPane if the panes are not synchronized
(see and ),
or save a list of states for all GraphPanes if the panes are synchronized.
The primary GraphPane on which zoom/pan/scroll operations
are taking place
The that corresponds to the
.
Clear the collection of saved states.
Clear all states from the undo stack for each GraphPane.
Required designer variable.
Required method for Designer support - do not modify
the contents of this method with the code editor.
A delegate that allows subscribing methods to append or modify the context menu.
The source object
A reference to the object
that contains the context menu.
The point at which the mouse was clicked
The current context menu state
Subscribe to this event to be able to modify the ZedGraph context menu.
The context menu is built on the fly after a right mouse click. You can add menu items
to this menu by simply modifying the parameter.
A delegate that allows notification of zoom and pan events.
The source object
A object that corresponds to the state of the
before the zoom or pan event.
A object that corresponds to the state of the
after the zoom or pan event
Subscribe to this event to be notified when the is zoomed or panned by the user,
either via a mouse drag operation or by the context menu commands.
A delegate that allows notification of scroll events.
The source object
The source object
A object that corresponds to the state of the
before the scroll event.
A object that corresponds to the state of the
after the scroll event
Subscribe to this event to be notified when the is scrolled by the user
using the scrollbars.
A delegate that allows notification of scroll events.
The source object
The source object
A object that corresponds to the state of the
before the scroll event.
A object that corresponds to the state of the
after the scroll event
Subscribe to this event to be notified when the is scrolled by the user
using the scrollbars.
Subscribe to this event to be notified when the is scrolled by the user
using the scrollbars.
A delegate that receives notification after a point-edit operation is completed.
The source object
The object that contains the
point that has been edited
The object that contains the point
that has been edited
The integer index of the edited within the
of the selected
Subscribe to this event to receive notifcation and/or respond after a data
point has been edited via and .
To subscribe to this event, use the following in your Form_Load method:
zedGraphControl1.PointEditEvent +=
new ZedGraphControl.PointEditHandler( MyPointEditHandler );
Add this method to your Form1.cs:
private string MyPointEditHandler( object sender, GraphPane pane, CurveItem curve, int iPt )
{
PointPair pt = curve[iPt];
return "This value is " + pt.Y.ToString("f2") + " gallons";
}
A delegate that allows custom formatting of the point value tooltips
The source object
The object that contains the point value of interest
The object that contains the point value of interest
The integer index of the selected within the
of the selected
Subscribe to this event to provide custom formatting for the tooltips
To subscribe to this event, use the following in your FormLoad method:
zedGraphControl1.PointValueEvent +=
new ZedGraphControl.PointValueHandler( MyPointValueHandler );
Add this method to your Form1.cs:
private string MyPointValueHandler( object sender, GraphPane pane, CurveItem curve, int iPt )
{
#region
PointPair pt = curve[iPt];
return "This value is " + pt.Y.ToString("f2") + " gallons";
#endregion
}
A delegate that allows custom formatting of the cursor value tooltips
The source object
The object that contains the cursor of interest
The object that represents the cursor value location
Subscribe to this event to provide custom formatting for the cursor value tooltips
To subscribe to this event, use the following in your FormLoad method:
zedGraphControl1.CursorValueEvent +=
new ZedGraphControl.CursorValueHandler( MyCursorValueHandler );
Add this method to your Form1.cs:
private string MyCursorValueHandler( object sender, GraphPane pane, Point mousePt )
{
#region
double x, y;
pane.ReverseTransform( mousePt, out x, out y );
return "( " + x.ToString( "f2" ) + ", " + y.ToString( "f2" ) + " )";
#endregion
}
A delegate that allows notification of mouse events on Graph objects.
The source object
A corresponding to this event
Return true if you have handled the mouse event entirely, and you do not
want the to do any further action (e.g., starting
a zoom operation). Return false if ZedGraph should go ahead and process the
mouse event.
Subscribe to this event to provide notification of MouseDown clicks on graph
objects
This event provides for a notification when the mouse is clicked on an object
within any of the associated
with this . This event will use the
method to determine which object
was clicked. The boolean value that you return from this handler determines whether
or not the will do any further handling of the
MouseDown event (see ). Return true if you have
handled the MouseDown event entirely, and you do not
want the to do any further action (e.g., starting
a zoom operation). Return false if ZedGraph should go ahead and process the
MouseDown event.
Hide the standard control MouseDown event so that the ZedGraphControl.MouseDownEvent
can be used. This is so that the user must return true/false in order to indicate
whether or not we should respond to the event.
Hide the standard control MouseUp event so that the ZedGraphControl.MouseUpEvent
can be used. This is so that the user must return true/false in order to indicate
whether or not we should respond to the event.
Hide the standard control MouseMove event so that the ZedGraphControl.MouseMoveEvent
can be used. This is so that the user must return true/false in order to indicate
whether or not we should respond to the event.
Subscribe to this event to provide notification of MouseUp clicks on graph
objects
This event provides for a notification when the mouse is clicked on an object
within any of the associated
with this . This event will use the
method to determine which object
was clicked. The boolean value that you return from this handler determines whether
or not the will do any further handling of the
MouseUp event (see ). Return true if you have
handled the MouseUp event entirely, and you do not
want the to do any further action (e.g., starting
a zoom operation). Return false if ZedGraph should go ahead and process the
MouseUp event.
Subscribe to this event to provide notification of MouseMove events over graph
objects
This event provides for a notification when the mouse is moving over on the control.
The boolean value that you return from this handler determines whether
or not the will do any further handling of the
MouseMove event (see ). Return true if you
have handled the MouseMove event entirely, and you do not
want the to do any further action.
Return false if ZedGraph should go ahead and process the MouseMove event.
Subscribe to this event to provide notification of Double Clicks on graph
objects
This event provides for a notification when the mouse is double-clicked on an object
within any of the associated
with this . This event will use the
method to determine which object
was clicked. The boolean value that you return from this handler determines whether
or not the will do any further handling of the
DoubleClick event (see ). Return true if you have
handled the DoubleClick event entirely, and you do not
want the to do any further action.
Return false if ZedGraph should go ahead and process the
DoubleClick event.
A delegate that allows notification of clicks on ZedGraph objects that have
active links enabled
The source object
The source in which the click
occurred.
The source object which was clicked. This is typically
a type of if a curve point was clicked, or
a type of if a graph object was clicked.
The object, belonging to
, that contains the link information
An index value, typically used if a
was clicked, indicating the ordinal value of the actual point that was clicked.
Return true if you have handled the LinkEvent entirely, and you do not
want the to do any further action.
Return false if ZedGraph should go ahead and process the LinkEvent.
Subscribe to this event to be able to respond to mouse clicks within linked
objects.
Linked objects are typically either type objects or
type objects. These object types can include
hyperlink information allowing for "drill-down" type operation.
CurveItem.Link
GraphObj.Link
Handle a MouseDown event in the
A reference to the
A instance
Set the cursor according to the current mouse location.
Set the cursor according to the current mouse location.
Handle a KeyUp event
The in which the KeyUp occurred.
A instance.
Handle the Key Events so ZedGraph can Escape out of a panning or zooming operation.
Handle a MouseUp event in the
A reference to the
A instance
Make a string label that corresponds to a user scale value.
The axis from which to obtain the scale value. This determines
if it's a date value, linear, log, etc.
The value to be made into a label
The ordinal position of the value
true to override the ordinal settings of the axis,
and prefer the actual value instead.
The string label.
protected method for handling MouseMove events to display tooltips over
individual datapoints.
A reference to the control that has the MouseMove event.
A MouseEventArgs object.
Handle a MouseWheel event in the
A reference to the
A instance
Zoom a specified pane in or out according to the specified zoom fraction.
The zoom will occur on the , , and
only if the corresponding flag, or
, is true. Note that if there are multiple Y or Y2 axes, all of
them will be zoomed.
The instance to be zoomed.
The fraction by which to zoom, less than 1 to zoom in, greater than
1 to zoom out. For example, 0.9 will zoom in such that the scale is 90% of what it was
originally.
The screen position about which the zoom will be centered. This
value is only used if is true.
true to cause the zoom to be centered on the point
, false to center on the .
true to force a refresh of the control, false to leave it unrefreshed
Zoom a specified pane in or out according to the specified zoom fraction.
The zoom will occur on the , , and
only if the corresponding flag, or
, is true. Note that if there are multiple Y or Y2 axes, all of
them will be zoomed.
The instance to be zoomed.
The fraction by which to zoom, less than 1 to zoom in, greater than
1 to zoom out. For example, 0.9 will zoom in such that the scale is 90% of what it was
originally.
The screen position about which the zoom will be centered. This
value is only used if is true.
true to cause the zoom to be centered on the point
, false to center on the .
Zoom the specified axis by the specified amount, with the center of the zoom at the
(optionally) specified point.
This method is used for MouseWheel zoom operations
The to be zoomed.
The zoom fraction, less than 1.0 to zoom in, greater than 1.0 to
zoom out. That is, a value of 0.9 will zoom in such that the scale length is 90% of what
it previously was.
The location for the center of the zoom. This is only used if
is true.
true if the zoom is to be centered at the
screen position, false for the zoom to be centered within
the .
Handle a panning operation for the specified .
The to be panned
The value where the pan started. The scale range
will be shifted by the difference between and
.
The value where the pan ended. The scale range
will be shifted by the difference between and
.
Caclulates the between two points for zooming.
The first point.
The second point.
The rectangle between the two points.
Perform selection on curves within the drag pane, or under the mouse click.
The backing field.
Gets or sets a value indicating whether the dialog should be shown in the Windows XP style for systems
running Windows XP Home Edition, Windows XP Professional, Windows Server 2003Â or later. The default is true.
true to indicate the dialog should be shown with the Windows XP style, otherwise false.
Handler for the "Page Setup..." context menu item. Displays a
.
Handler for the "Print..." context menu item. Displays a
.
Rendering method used by the print context menu items
The applicable .
A instance providing
page bounds, margins, and a Graphics instance for this printed output.
Gets or sets the instance
that is used for all of the context menu printing functions.
Display a to the user, allowing them to modify
the print settings for this .
Display a to the user, allowing them to select a
printer and print the contained in this
.
Display a , allowing the user to preview and
subsequently print the contained in this
.
Gets or sets a value that determines which mouse button will be used as a primary option
to trigger a zoom event.
This value is combined with to determine the actual zoom combination.
A secondary zoom button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which mouse button will be used as the secondary option
to trigger a zoom event.
This value is combined with to determine the actual zoom combination.
The primary zoom button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which modifier keys will be used as a primary option
to trigger a zoom event.
This value is combined with to determine the actual zoom combination.
A secondary zoom button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which modifier keys will be used as a secondary option
to trigger a zoom event.
This value is combined with to determine the actual zoom combination.
A primary zoom button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which mouse button will be used as a primary option
to trigger a pan event.
This value is combined with to determine the actual pan combination.
A secondary pan button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which mouse button will be used as the secondary option
to trigger a pan event.
This value is combined with to determine the actual pan combination.
The primary pan button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which modifier keys will be used as a primary option
to trigger a pan event.
This value is combined with to determine the actual pan combination.
A secondary pan button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which modifier keys will be used as a secondary option
to trigger a pan event.
This value is combined with to determine the actual pan combination.
A primary pan button/key combination option is available via and
. To not use this button/key combination, set the value
of to .
Gets or sets a value that determines which Mouse button will be used to edit point
data values
This setting only applies if and/or
are true.
Gets or sets a value that determines which modifier keys will be used to edit point
data values
This setting only applies if and/or
are true.
Gets or sets a value that determines which Mouse button will be used to
select 's.
This setting only applies if is true.
Gets or sets a value that determines which Modifier keys will be used to
select 's.
This setting only applies if is true.
Gets or sets a value that determines which Modifier keys will be used to
append a to the selection list.
Gets or sets a value that determines which Mouse button will be used to click
on linkable objects
Gets or sets a value that determines which modifier keys will be used to click
on linkable objects
Gets or sets the property for the control
Gets or sets the property for the control
actually uses a object
to hold a list of objects. This property really only
accesses the first in the list. If there is more
than one , use the
indexer property to access any of the objects.
Gets or sets a value that determines if all drawing operations for this control
will be forced to operate in Anti-alias mode. Note that if this value is set to
"true", it overrides the setting for sub-objects. Otherwise, the sub-object settings
(such as )
will be honored.
Gets or sets a value that determines whether or not tooltips will be displayed
when the mouse hovers over data values.
The displayed values are taken from
if it is a type, or
otherwise (using the as a format string).
Additionally, the user can custom format the values using the
event. Note that
may be overridden by .
Gets or sets a value that determines whether or not tooltips will be displayed
showing the current scale values when the mouse is within the
.
The displayed values are taken from the current mouse position, and formatted
according to and/or . If this
value is set to true, it overrides the setting.
Gets or sets a value that determines whether or not editing of point data is allowed in
the horizontal direction.
Editing is done by holding down the Alt key, and left-clicking on an individual point of
a given to drag it to a new location. The Mouse and Key
combination for this mode are modifiable using and
.
Gets or sets a value that determines whether or not editing of point data is allowed in
the vertical direction.
Editing is done by holding down the Alt key, and left-clicking on an individual point of
a given to drag it to a new location. The Mouse and Key
combination for this mode are modifiable using and
.
Gets or sets a value that determines whether or not zooming is allowed for the control.
Zooming is done by left-clicking inside the to drag
out a rectangle, indicating the new scale ranges that will be part of the graph.
Gets or sets a value that determines whether or not zooming is allowed for the control in
the horizontal direction.
Zooming is done by left-clicking inside the to drag
out a rectangle, indicating the new scale ranges that will be part of the graph.
Gets or sets a value that determines whether or not zooming is allowed for the control in
the vertical direction.
Zooming is done by left-clicking inside the to drag
out a rectangle, indicating the new scale ranges that will be part of the graph.
Gets or sets a value that determines whether or not zooming is allowed via the mouse wheel.
Wheel zooming is done by rotating the mouse wheel.
Note that this property is used in combination with the and
properties to control zoom options.
Gets or sets a value that determines whether or not panning is allowed for the control in
the horizontal direction.
Panning is done by clicking the middle mouse button (or holding down the shift key
while clicking the left mouse button) inside the and
dragging the mouse around to shift the scale ranges as desired.
Gets or sets a value that determines whether or not panning is allowed for the control in
the vertical direction.
Panning is done by clicking the middle mouse button (or holding down the shift key
while clicking the left mouse button) inside the and
dragging the mouse around to shift the scale ranges as desired.
Gets or sets a value that determines whether or not the context menu will be available.
The context menu is a menu that appears when you right-click on the
. It provides options for Zoom, Pan, AutoScale, Clipboard
Copy, and toggle .
true to allow the context menu, false to disable it
Gets or sets a value that determines whether or not a message box will be shown
in response to a context menu "Copy" command.
Note that, if this property is set to false, the user will receive no
indicative feedback in response to a Copy action.
Gets or sets the instance that will be used
by the "Save As..." context menu item.
This provides the opportunity to modify the dialog, such as setting the
property.
Gets or sets a value that determines whether or not the visible aspect ratio of the
will be preserved
when printing this .
Gets or sets a value that determines whether or not the
dimensions will be expanded to fill the
available space when printing this .
If is also true, then the
dimensions will be expanded to fit as large
a space as possible while still honoring the visible aspect ratio.
Gets or sets a value that determines whether the settings of
and
will be overridden to true during printing operations.
Printing involves pixel maps that are typically of a dramatically different dimension
than on-screen pixel maps. Therefore, it becomes more important to scale the fonts and
lines to give a printed image that looks like what is shown on-screen. The default
setting for is true, but the default
setting for is false.
A value of true will cause both and
to be temporarily set to true during
printing operations.
Gets or sets a value that controls whether or not the axis value range for the scroll
bars will be set automatically.
If this value is set to true, then the range of the scroll bars will be set automatically
to the actual range of the data as returned by at the
time that was last called. Note that a value of true
can override any setting of , ,
, ,
, and . Note also that you must
call from the for this to
work properly (e.g., don't call it directly from the .
Alternatively, you can call at anytime to set
the scroll bar range.
In most cases, you will probably want to disable
before activating this option.
Set a "grace" value that leaves a buffer area around the data when
is true.
This value represents a fraction of the total range around each axis. For example, if the
axis ranges from 0 to 100, then a 0.05 value for ScrollGrace would set the scroll range
to -5 to 105.
Gets or sets a value that determines if the horizontal scroll bar will be visible.
This scroll bar allows the display to be scrolled in the horizontal direction.
Another option is display panning, in which the user can move the display around by
clicking directly on it and dragging (see and ).
You can control the available range of scrolling with the and
properties. Note that the scroll range can be set automatically by
.
In most cases, you will probably want to disable
before activating this option.
A boolean value. true to display a horizontal scrollbar, false otherwise.
Gets or sets a value that determines if the vertical scroll bar will be visible.
This scroll bar allows the display to be scrolled in the vertical direction.
Another option is display panning, in which the user can move the display around by
clicking directly on it and dragging (see and ).
You can control the available range of scrolling with the and
properties.
Note that the vertical scroll bar only affects the ; it has no impact on
the . The panning options affect both the and
. Note also that the scroll range can be set automatically by
.
In most cases, you will probably want to disable
before activating this option.
A boolean value. true to display a vertical scrollbar, false otherwise.
Gets or sets a value that determines if the
ranges for all objects in the will
be forced to match.
If set to true (default is false), then all of the objects
in the associated with this
will be forced to have matching scale ranges for the x axis. That is, zoom, pan,
and scroll operations will result in zoom/pan/scroll for all graphpanes simultaneously.
Gets or sets a value that determines if the
ranges for all objects in the will
be forced to match.
If set to true (default is false), then all of the objects
in the associated with this
will be forced to have matching scale ranges for the y axis. That is, zoom, pan,
and scroll operations will result in zoom/pan/scroll for all graphpanes simultaneously.
Gets or sets a value that determines if the vertical scroll bar will affect the Y2 axis.
The vertical scroll bar is automatically associated with the Y axis. With this value, you
can choose to include or exclude the Y2 axis with the scrolling. Note that the Y2 axis
scrolling is handled as a secondary. The vertical scroll bar position always reflects
the status of the Y axis. This can cause the Y2 axis to "jump" when first scrolled if
the and values are not set to the
same proportions as and with respect
to the actual and . Also note that
this property is actually just an alias to the
property of the first element of .
Access the for the Y axes.
This list maintains the user scale ranges for the scroll bars for each axis
in the . Each ordinal location in
corresponds to an equivalent ordinal location
in .
Access the for the Y2 axes.
This list maintains the user scale ranges for the scroll bars for each axis
in the . Each ordinal location in
corresponds to an equivalent ordinal location
in .
The minimum value for the X axis scroll range.
Effectively, the minimum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and .
A double value indicating the minimum axis value
The maximum value for the X axis scroll range.
Effectively, the maximum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and .
A double value indicating the maximum axis value
The minimum value for the Y axis scroll range.
Effectively, the minimum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and . Also note that
this property is actually just an alias to the
property of the first element of .
A double value indicating the minimum axis value
The maximum value for the Y axis scroll range.
Effectively, the maximum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and . Also note that
this property is actually just an alias to the
property of the first element of .
A double value indicating the maximum axis value
The minimum value for the Y2 axis scroll range.
Effectively, the minimum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and . Also note that
this property is actually just an alias to the
property of the first element of .
A double value indicating the minimum axis value
The maximum value for the Y2 axis scroll range.
Effectively, the maximum endpoint of the scroll range will cause the
value to be set to . Note that this
value applies only to the scroll bar settings. Axis panning (see )
is not affected by this value. Note that this value can be overridden by
and . Also note that
this property is actually just an alias to the
property of the first element of .
A double value indicating the maximum axis value
Returns true if the user is currently scrolling via the scrollbar, or
false if no scrolling is taking place.
This method just tests ScrollBar.Capture to see if the
mouse has been captured by the scroll bar. If so, scrolling is active.
Gets or sets the format for displaying tooltip values.
This format is passed to .
Use the type
to determine the format strings.
Gets or sets the format for displaying tooltip values.
This format is passed to .
Use the type
to determine the format strings.
Gets or sets the step size fraction for zooming with the mouse wheel.
A value of 0.1 will result in a 10% zoom step for each mouse wheel movement.
Gets or sets a boolean value that determines if zooming with the wheel mouse
is centered on the mouse location, or centered on the existing graph.
Gets the graph pane's current image.
When the control has been disposed before this call.
This checks if the control has been disposed. This is synonymous with
the graph pane having been nulled or disposed. Therefore this is the
same as ZedGraphControl.GraphPane == null.
Readonly property that gets the list of selected CurveItems
Gets or sets a value that determines whether or not selection is allowed for the control.
Sets the value of the scroll range properties (see ,
, , and
based on the actual range of the data for
each corresponding .
This method is called automatically by if
is true. Note that this will not be called if you call AxisChange directly from the
. For example, zedGraphControl1.AxisChange() works properly, but
zedGraphControl1.GraphPane.AxisChange() does not.
A class that represents a graphic arrow or line object on the graph. A list of
ArrowObj objects is maintained by the collection class.
John Champion
$Revision: 3.4 $ $Date: 2007-01-25 07:56:08 $
Private field that stores the arrowhead size, measured in points.
Use the public property to access this value.
Private boolean field that stores the arrowhead state.
Use the public property to access this value.
true if an arrowhead is to be drawn, false otherwise
A simple struct that defines the
default property values for the class.
The default size for the item arrowhead
( property). Units are in points (1/72 inch).
The default display mode for the item arrowhead
( property). true to show the
arrowhead, false to hide it.
The size of the arrowhead.
The display of the arrowhead can be
enabled or disabled with the property.
The size is defined in points (1/72 inch)
Determines whether or not to draw an arrowhead
true to show the arrowhead, false to show the line segment
only
Constructors for the object
A constructor that allows the position, color, and size of the
to be pre-specified.
An arbitrary specification
for the arrow
The size of the arrowhead, measured in points.
The x position of the starting point that defines the
arrow. The units of this position are specified by the
property.
The y position of the starting point that defines the
arrow. The units of this position are specified by the
property.
The x position of the ending point that defines the
arrow. The units of this position are specified by the
property.
The y position of the ending point that defines the
arrow. The units of this position are specified by the
property.
A constructor that allows only the position of the
arrow to be pre-specified. All other properties are set to
default values
The x position of the starting point that defines the
. The units of this position are specified by the
property.
The y position of the starting point that defines the
. The units of this position are specified by the
property.
The x position of the ending point that defines the
. The units of this position are specified by the
property.
The y position of the ending point that defines the
. The units of this position are specified by the
property.
Default constructor -- places the at location
(0,0) to (1,1). All other values are defaulted.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The Axis class is an abstract base class that encompasses all properties
and methods required to define a graph Axis.
This class is inherited by the
, , and classes
to define specific characteristics for those types.
John Champion modified by Jerry Vos
$Revision: 3.76 $ $Date: 2008-02-16 23:21:48 $
private field that stores the class, which implements all the
calculations and methods associated with the numeric scale for this
. See the public property to access this class.
Private field that stores the class, which handles all
the minor tic information. See the public property to access this class.
Private field that stores the class, which handles all
the major tic information. See the public property to access this class.
Private field that stores the class, which handles all
the major grid information. See the public property to access this class.
Private field that stores the class, which handles all
the minor grid information. See the public property to access this class.
Private fields for the scale rendering properties.
Use the public properties and
for access to these values.
Private field for the automatic cross position mode.
Use the public property for access to this value.
Private fields for the attributes.
Use the public properties ,
for access to these values.
Private fields for the attributes.
Use the public properties ,
for access to these values.
Private field for the title string.
Use the public property for access to this value.
A tag object for use by the user. This can be used to store additional
information associated with the . ZedGraph does
not use this value for any purpose.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Private field for the drawing dimensions.
Use the public property
for access to these values.
Private field for the minimum allowable space allocation.
Use the public property to access this value.
Private fields for the colors.
Use the public property for access to this values.
Temporary values for axis space calculations (see ).
A delegate that allows full custom formatting of the Axis labels
The for which the label is to be
formatted
The of interest.
The value to be formatted
The zero-based index of the label to be formatted
A string value representing the label, or null if the ZedGraph should go ahead
and generate the label according to the current settings
Subscribe to this event to handle custom formatting of the scale labels.
Allow customization of title based on user preferences.
The of interest.
A string value representing the label, or null if the ZedGraph should go ahead
and generate the label according to the current settings. To make the title
blank, return "".
Allow customization of the title when the scale is very large
Subscribe to this event to handle custom formatting of the scale axis label.
A simple struct that defines the
default property values for the class.
The default size for the gap between multiple axes
( property). Units are in points (1/72 inch).
The default setting for the gap between the scale labels and the axis title.
The default font family for the text
font specification
( property).
The default font size for the text
font specification
( property). Units are
in points (1/72 inch).
The default font color for the text
font specification
( property).
The default font bold mode for the text
font specification
( property). true
for a bold typeface, false otherwise.
The default font italic mode for the text
font specification
( property). true
for an italic typeface, false otherwise.
The default font underline mode for the text
font specification
( property). true
for an underlined typeface, false otherwise.
The default color for filling in the text background
(see property).
The default custom brush for filling in the text background
(see property).
The default fill mode for filling in the text background
(see property).
The default color for the itself
( property). This color only affects the
the axis border.
The default value for , which determines
whether or not the scale segment itself is visible
The default setting for the scale axis type
( property). This value is set as per
the enumeration
The default color for the axis segment.
The default setting for the axis space allocation. This term, expressed in
points (1/72 inch) and scaled according to for the
, determines the minimum amount of space an axis must
have between the and the
. This minimum space
applies whether is true or false.
Default constructor for that sets all axis properties
to default values as defined in the class.
Constructor for that sets all axis properties
to default values as defined in the class,
except for the .
A string containing the axis title
The Copy Constructor.
The Axis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of Clone.
Note that this method must be called with an explicit cast to ICloneable, and
that it is inherently virtual. For example:
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with
ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation
of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.
A deep copy of this object
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Gets the instance associated with this .
Gets or sets the scale value at which this axis should cross the "other" axis.
This property allows the axis to be shifted away from its default location.
For example, for a graph with an X range from -100 to +100, the Y Axis can be located
at the X=0 value rather than the left edge of the ChartRect. This value can be set
automatically based on the state of . If
this value is set manually, then will
also be set to false. The "other" axis is the axis the handles the second dimension
for the graph. For the XAxis, the "other" axis is the YAxis. For the YAxis or
Y2Axis, the "other" axis is the XAxis.
The value is defined in user scale units
Gets or sets a value that determines whether or not the value
is set automatically.
Set to true to have ZedGraph put the axis in the default location, or false
to specify the axis location manually with a value.
Gets or sets the minimum axis space allocation.
This term, expressed in
points (1/72 inch) and scaled according to
for the , determines the minimum amount of space
an axis must have between the Chart.Rect and the
GraphPane.Rect. This minimum space
applies whether is true or false.
The color to use for drawing this .
This affects only the axis segment (see ),
since the ,
, , ,
, and
all have their own color specification.
The color is defined using the
class
.
Gets a reference to the class instance
for this . This class stores all the major tic settings.
Gets a reference to the class instance
for this . This class stores all the minor tic settings.
Gets a reference to the class that contains the properties
of the major grid.
Gets a reference to the class that contains the properties
of the minor grid.
This property determines whether or not the is shown.
Note that even if
the axis is not visible, it can still be actively used to draw curves on a
graph, it will just be invisible to the user
true to show the axis, false to disable all drawing of this axis
.
.
.
.
Gets or sets a property that determines whether or not the axis segment (the line that
represents the axis itself) is drawn.
Under normal circumstances, this value won't affect the appearance of the display because
the Axis segment is overlain by the Axis border (see ).
However, when the border is not visible, or when is set to
false, this value will make a difference.
Gets or sets the for this .
The type can be either ,
, ,
or .
Gets or sets the class that contains the title of this
.
The title normally shows the basis and dimensions of
the scale range, such as "Time (Years)". The title is only shown if the
property is set to true. If the Title text is empty,
then no title is shown, and no space is "reserved" for the title on the graph.
the title is a string value
The size of the gap between multiple axes (see and
).
This size will be scaled
according to the for the
The axis gap is measured in points (1/72 inch)
.
Restore the scale ranging to automatic mode, and recalculate the
scale ranges
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Do all rendering associated with this to the specified
device.
This method is normally only
called by the Draw method of the parent object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The number of pixels to shift to account for non-primary axis position (e.g.,
the second, third, fourth, etc. or .
This method will set the property for this
using the currently required space multiplied by a fraction (bufferFraction).
The currently required space is calculated using , and is
based on current data ranges, font sizes, etc. The "space" is actually the amount of space
required to fit the tic marks, scale labels, and axis title.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The amount of space to allocate for the axis, expressed
as a fraction of the currently required space. For example, a value of 1.2 would
allow for 20% extra above the currently required space.
If true, then this method will only modify the
property if the calculated result is more than the current value.
Setup the Transform Matrix to handle drawing of this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Calculate the "shift" size, in pixels, in order to shift the axis from its default
location to the value specified by .
A reference to the object that is the parent or
owner of this object.
The shift amount measured in pixels
Gets the "Cross" axis that corresponds to this axis.
The cross axis is the axis which determines the of this Axis when the
Axis.Cross property is used. The
cross axis for any or
is always the primary , and
the cross axis for any or is
always the primary .
A reference to the object that is the parent or
owner of this object.
Returns the linearized actual cross position for this axis, reflecting the settings of
, , and .
If the value of lies outside the axis range, it is
limited to the axis range.
Returns true if the axis is shifted at all due to the setting of
. This function will always return false if
is true.
Calculates the proportional fraction of the total cross axis width at which
this axis is located.
Calculate the space required (pixels) for this object.
This is the total space (vertical space for the X axis, horizontal space for
the Y axes) required to contain the axis. If is zero, then
this space will be the space required between the and
the . This method sets the internal values of
for use by the
method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The amount of space (pixels) at the edge of the ChartRect
that is always required for this axis, even if the axis is shifted by the
value.
Returns the space, in pixels, required for this axis (between the
rect and ChartRect)
Determines if this object is a "primary" one.
The primary axes are the (always), the first
in the
( = 0), and the first
in the
( = 0). Note that
and
always reference the primary axes.
A reference to the object that is the parent or
owner of this object.
true for a primary (for the ,
this is always true), false otherwise
Draw the minor tic marks as required for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scale value for the first major tic position. This is the reference point
for all other tic marks.
The number of pixels to shift this axis, based on the
value of . A positive value is into the ChartRect relative to
the default axis position.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The pixel location of the far side of the ChartRect from this axis.
This value is the ChartRect.Height for the XAxis, or the ChartRect.Width
for the YAxis and Y2Axis.
Draw the title for this .
On entry, it is assumed that the
graphics transform has been configured so that the origin is at the left side
of this axis, and the axis is aligned along the X coordinate direction.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The number of pixels to shift this axis, based on the
value of . A positive value is into the ChartRect relative to
the default axis position.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Make a value label for the axis at the specified ordinal position.
This method properly accounts for ,
,
and other axis format settings. It also implements the ScaleFormatEvent such that
custom labels can be created.
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log
()
and text () type axes.
The resulting value label as a
Class that handles the data associated with text title and its associated font
properties. Inherits from , and adds
and properties, which are specifically associated with
the .
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Constructor to build an from the text and the
associated font properties.
The representing the text to be
displayed
The font family name
The size of the font in points and scaled according
to the logic.
The instance representing the color
of the font
true for a bold font face
true for an italic font face
true for an underline font face
Copy constructor
the instance to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets the property that controls whether or not the magnitude factor (power of 10) for
this scale will be included in the label.
For large scale values, a "magnitude" value (power of 10) is automatically
used for scaling the graph. This magnitude value is automatically appended
to the end of the Axis (e.g., "(10^4)") to indicate
that a magnitude is in use. This property controls whether or not the
magnitude is included in the title. Note that it only affects the axis
title; a magnitude value may still be used even if it is not shown in the title.
true to show the magnitude value, false to hide it
Gets or sets a value that determines whether the Axis title is located at the
value or at the normal position (outside the ).
This value only applies if is false.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A class representing all the characteristics of the bar
segments that make up a curve on the graph.
John Champion
$Revision: 3.30 $ $Date: 2007-11-03 04:41:28 $
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the class that defines the
properties of the border around this . Use the public
property to access this value.
A simple struct that defines the
default property values for the class.
The default pen width to be used for drawing the border around the bars
( property). Units are points.
The default fill mode for bars ( property).
The default border mode for bars ( property).
true to display frames around bars, false otherwise
The default color for drawing frames around bars
( property).
The default color for filling in the bars
( property).
The default custom brush for filling in the bars
( property).
Default constructor that sets all properties to default
values as defined in the class.
Default constructor that sets the
as specified, and the remaining
properties to default
values as defined in the class.
The specified color is only applied to the
, and the
will be defaulted.
A value indicating
the
of the Bar.
The Copy Constructor
The Bar object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
The object used to draw the border around the .
Gets or sets the data for this
.
Draw the to the specified device
at the specified location. This routine draws a single bar.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The x position of the left side of the bar in
pixel units
The x position of the right side of the bar in
pixel units
The y position of the top of the bar in
pixel units
The y position of the bottom of the bar in
pixel units
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
true to draw the bottom portion of the border around the
bar (this is for legend entries)
The data value to be used for a value-based
color gradient. This is only applicable for ,
or .
Indicates that the should be drawn
with attributes from the class.
Draw the to the specified device
at the specified location. This routine draws a single bar.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The rectangle (pixels) to contain the bar
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
true to draw the bottom portion of the border around the
bar (this is for legend entries)
The data value to be used for a value-based
color gradient. This is only applicable for ,
or .
Indicates that the should be drawn
with attributes from the class.
Draw the this to the specified
device as a bar at each defined point. This method
is normally only called by the method of the
object
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The width of each bar, in pixels.
The ordinal position of the this bar series (0=first bar, 1=second bar, etc.)
in the cluster of bars.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw the specified single bar (an individual "point") of this series to the specified
device. This method is not as efficient as
, which draws the bars for all points. It is intended to be used
only for , which requires special handling of each bar.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The ordinal position of the this bar series (0=first bar, 1=second bar, etc.)
in the cluster of bars.
The zero-based index number for the single bar to be drawn.
The width of each bar, in pixels.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Protected internal routine that draws the specified single bar (an individual "point")
of this series to the specified device.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The zero-based index number for the single bar to be drawn.
The ordinal position of the this bar series (0=first bar, 1=second bar, etc.)
in the cluster of bars.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The width of each bar, in pixels.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Encapsulates a bar type that displays vertical or horizontal bars
The orientation of the bars depends on the state of
, and the bars can be stacked or
clustered, depending on the state of
John Champion
$Revision: 3.27 $ $Date: 2007-11-03 04:41:28 $
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Gets a reference to the class defined
for this .
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Create a new , specifying only the legend label for the bar.
The label that will appear in the legend.
Create a new using the specified properties.
The label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
A value that will be applied to
the and properties.
Create a new using the specified properties.
The label that will appear in the legend.
A of double precision value pairs that define
the X and Y values for this curve
A value that will be applied to
the and properties.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Create a for each bar in the .
This method will go through the bars, create a label that corresponds to the bar value,
and place it on the graph depending on user preferences. This works for horizontal or
vertical bars in clusters or stacks, but only for types. This method
does not apply to or objects.
Call this method only after calling .
The GraphPane in which to place the text labels.
true to center the labels inside the bars, false to
place the labels just above the top of the bar.
The double.ToString string format to use for creating
the labels.
Create a for each bar in the .
This method will go through the bars, create a label that corresponds to the bar value,
and place it on the graph depending on user preferences. This works for horizontal or
vertical bars in clusters or stacks, but only for types. This method
does not apply to or objects.
Call this method only after calling .
The GraphPane in which to place the text labels.
true to center the labels inside the bars, false to
place the labels just above the top of the bar.
The double.ToString string format to use for creating
the labels.
The color in which to draw the labels
The string name of the font family to use for the labels
The floating point size of the font, in scaled points
true for a bold font type, false otherwise
true for an italic font type, false otherwise
true for an underline font type, false otherwise
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Class that handles the global settings for bar charts
John Champion
$Revision: 3.6 $ $Date: 2007-12-30 23:27:39 $
Private field that determines the size of the gap between bar clusters
for bar charts. This gap is expressed as a fraction of the bar size (1.0 means
leave a 1-barwidth gap between clusters).
Use the public property to access this value.
Private field that determines the size of the gap between individual bars
within a bar cluster for bar charts. This gap is expressed as a fraction of the
bar size (1.0 means leave a 1-barwidth gap between each bar).
Use the public property to access this value.
Private field that determines the base axis from which
graphs will be displayed. The base axis is the axis from which the bars grow with
increasing value. The value is of the enumeration type .
To access this value, use the public property .
Private field that determines how the
graphs will be displayed. See the enum
for the individual types available.
To access this value, use the public property .
Private field that determines the width of a bar cluster (for bar charts)
in user scale units. Normally, this value is 1.0 because bar charts are typically
or , and the bars are
defined at ordinal values (1.0 scale units apart). For
or other scale types, you can use this value to scale the bars to an arbitrary
user scale. Use the public property to access this
value.
Private field that determines if the will be
calculated automatically. Use the public property
to access this value.
private field that stores the owner GraphPane that contains this BarSettings instance.
Constructor to build a instance from the defaults.
Copy constructor
the instance to be copied.
The that will be the
parent of this new BarSettings object.
The minimum space between clusters, expressed as a
fraction of the bar size.
The minimum space between individual Bars
within a cluster, expressed as a
fraction of the bar size.
Determines the base axis from which
graphs will be displayed.
The base axis is the axis from which the bars grow with
increasing value. The value is of the enumeration type .
Determines how the
graphs will be displayed. See the enum
for the individual types available.
The width of an individual bar cluster on a graph.
This value only applies to bar graphs plotted on non-ordinal X axis
types (, , and
.
This value can be calculated automatically if
is set to true. In this case, ClusterScaleWidth will be calculated if
refers to an of a non-ordinal type
( is false). The ClusterScaleWidth is calculated
from the minimum difference found between any two points on the
for any in the
. The ClusterScaleWidth is set automatically
each time is called. Calculations are
done by the method.
Gets or sets a property that determines if the will be
calculated automatically.
true for the to be calculated
automatically based on the available data, false otherwise. This value will
be set to false automatically if the value
is changed by the user.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
You MUST set the _ownerPane property after deserializing a BarSettings object.
A instance that defines the
serialized data
A instance that contains
the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Calculate the width of an individual bar cluster on a graph.
This value only applies to bar graphs plotted on non-ordinal X axis
types ( is false).
This value can be calculated automatically if
is set to true. In this case, ClusterScaleWidth will be calculated if
refers to an of a non-ordinal type
( is false). The ClusterScaleWidth is calculated
from the minimum difference found between any two points on the
for any in the
. The ClusterScaleWidth is set automatically
each time is called.
Determine the minimum increment between individual points to be used for
calculating a bar size that fits without overlapping
The list of points for the bar
of interest
The base axis for the bar
The minimum increment between bars along the base axis
Determine the width, in screen pixel units, of each bar cluster including
the cluster gaps and bar gaps.
This method calls the
method for the base for graphs
(the base is assigned by the
property).
The width of each bar cluster, in pixel units
Determine the from which the charts are based.
The class for the axis from which the bars are based
A simple struct that defines the
default property values for the class.
The default dimension gap between clusters of bars on a
graph.
This dimension is expressed in terms of the normal bar width.
The default dimension gap between each individual bar within a bar cluster
on a graph.
This dimension is expressed in terms of the normal bar width.
The default value for the , which determines the base
from which the graphs will be displayed.
The default value for the property, which
determines if the bars are drawn overlapping eachother in a "stacked" format,
or side-by-side in a "cluster" format. See the
for more information.
The default width of a bar cluster
on a graph. This value only applies to
graphs, and only when the
is ,
or .
This dimension is expressed in terms of X scale user units.
The default value for .
A data collection class for ZedGraph, provided as an alternative to .
The data storage class for ZedGraph can be any type, so long as it uses the
interface. This class, albeit simple, is a demonstration of implementing the
interface to provide a simple data collection using only two arrays. The
interface can also be used as a layer between ZedGraph and a database, for example.
John Champion
$Revision: 3.4 $ $Date: 2007-02-18 05:51:53 $
Instance of an array of x values
Instance of an array of x values
Indexer to access the specified object by
its ordinal position in the list.
Returns for any value of
that is outside of its corresponding array bounds.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
Returns the number of points available in the arrays. Count will be the greater
of the lengths of the X and Y arrays.
Constructor to initialize the PointPairList from two arrays of
type double.
The Copy Constructor
The PointPairList from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
A class that encapsulates Border (frame) properties for an object. The class
is used in a variety of ZedGraph objects to handle the drawing of the Border around the object.
John Champion
$Revision: 3.18 $ $Date: 2007-03-17 18:43:44 $
Private field that stores the amount of inflation to be done on the rectangle
before rendering. This allows the border to be inset or outset relative to
the actual rectangle area. Use the public property
to access this value.
A simple struct that defines the
default property values for the class.
The default value for , in units of points (1/72 inch).
The default constructor. Initialized to default values.
Constructor that specifies the visibility, color and penWidth of the Border.
Determines whether or not the Border will be drawn.
The color of the Border
The width, in points (1/72 inch), for the Border.
Constructor that specifies the color and penWidth of the Border.
The color of the Border
The width, in points (1/72 inch), for the Border.
The Copy Constructor
The Border object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Gets or sets the amount of inflation to be done on the rectangle
before rendering.
This allows the border to be inset or outset relative to
the actual rectangle area.
Draw the specified Border () using the properties of
this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
A struct to be drawn.
A class that represents a bordered and/or filled box (rectangle) object on
the graph. A list of
BoxObj objects is maintained by the collection class.
John Champion
$Revision: 3.3 $ $Date: 2007-01-25 07:56:08 $
Private field that stores the data for this
. Use the public property to
access this value.
Private field that determines the properties of the border around this
Use the public property to access this value.
A simple struct that defines the
default property values for the class.
The default pen width used for the border
( property). Units are points (1/72 inch).
The default color used for the border
( property).
The default color used for the fill
( property).
Gets or sets the data for this
.
Gets or sets the object, which
determines the properties of the border around this
Constructors for the object
A constructor that allows the position, border color, and solid fill color
of the to be pre-specified.
An arbitrary specification
for the box border
An arbitrary specification
for the box fill (will be a solid color fill)
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
A constructor that allows the position
of the to be pre-specified. Other properties are defaulted.
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
A default constructor that creates a using a location of (0,0),
and a width,height of (1,1). Other properties are defaulted.
A constructor that allows the position, border color, and two-color
gradient fill colors
of the to be pre-specified.
An arbitrary specification
for the box border
An arbitrary specification
for the start of the box gradient fill
An arbitrary specification
for the end of the box gradient fill
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
Determines the shape type and Coords values for this GraphObj
Encapsulates an "High-Low" Bar curve type that displays a bar in which both
the bottom and the top of the bar are set by data valuesfrom the
struct.
The type is intended for displaying
bars that cover a band of data, such as a confidence interval, "waterfall"
chart, etc. The position of each bar is set
according to the values. The independent axis
is assigned with , and is a
enum type. If
is set to or , then
the bars will actually be horizontal, since the X axis becomes the
value axis and the Y or Y2 axis becomes the independent axis.
John Champion
$Revision: 3.18 $ $Date: 2007-11-03 04:41:28 $
Create a new using the specified properties.
The label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
An array of double precision values that define the
base value (the bottom) of the bars for this curve.
A value that will be applied to
the and properties.
Create a new using the specified properties.
The label that will appear in the legend.
A of double precision value trio's that define
the X, Y, and lower dependent values for this curve
A value that will be applied to
the and properties.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
This class handles the drawing of the curve objects.
John Champion
$Revision: 3.5 $ $Date: 2007-04-16 00:03:02 $
Private field that stores the visibility of the open and
close line segments ("wings"). Use the public
property to access this value. If this value is
false, the wings will not be shown.
Private field that stores the total width for the Opening/Closing line
segments. Use the public property to access this value.
Private field that determines if the property will be
calculated automatically based on the minimum axis scale step size between
bars. Use the public property to access this value.
The result of the autosize calculation, which is the size of the bars in
user scale units. This is converted to pixels at draw time.
A simple struct that defines the
default property values for the class.
The default width for the candlesticks (see ),
in units of points.
The default display mode for symbols ( property).
true to display symbols, false to hide them.
The default value for the property.
Gets or sets a property that shows or hides the open/close "wings".
true to show the CandleStick wings, false to hide them
Gets or sets the total width to be used for drawing the opening/closing line
segments ("wings") of the items. Units are points.
The size of the candlesticks can be set by this value, which
is then scaled according to the scaleFactor (see
). Alternatively,
if is true, the bar width will
be set according to the maximum available cluster width less
the cluster gap (see
and ). That is, if
is true, then the value of
will be ignored. If you modify the value of Size,
then will be automatically set to false.
Size in points (1/72 inch)
Gets or sets a value that determines if the property will be
calculated automatically based on the minimum axis scale step size between
bars.
Default constructor that sets all properties to
default values as defined in the class.
Default constructor that sets the
as specified, and the remaining
properties to default
values as defined in the class.
A value indicating
the color of the symbol
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Draw the to the specified
device at the specified location.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
boolean value that indicates if the "base" axis for this
is the X axis. True for an base,
false for a or base.
The independent axis position of the center of the candlestick in
pixel units
The dependent axis position of the top of the candlestick in
pixel units
The dependent axis position of the bottom of the candlestick in
pixel units
The dependent axis position of the opening value of the candlestick in
pixel units
The dependent axis position of the closing value of the candlestick in
pixel units
The scaled width of the candlesticks, pixels
A pen with attributes of and
for this
Draw all the 's to the specified
device as a candlestick at each defined point.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Returns the width of the candleStick, in pixels, based on the settings for
and .
The parent object.
The object that
represents the bar base (independent axis).
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The width of each bar, in pixel units
Encapsulates a CandleStick curve type that displays a vertical (or horizontal)
line displaying the range of data values at each sample point, plus an starting
mark and an ending mark signifying the opening and closing value for the sample.
For this type to work properly, your must contain
objects, rather than ordinary types.
This is because the type actually displays 5 data values
but the only stores 3 data values. The
stores , ,
, , and
members.
For a vertical CandleStick chart, the opening value is drawn as a horizontal line
segment to the left of the vertical range bar, and the closing value is a horizontal
line segment to the right. The total length of these two line segments is controlled
by the property, which is specified in
points (1/72nd inch), and scaled according to .
The candlesticks are drawn horizontally or vertically depending on the
value of , which is a
enum type.
John Champion
$Revision: 3.4 $ $Date: 2007-12-31 00:23:05 $
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Gets a reference to the class defined
for this .
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
IsZIncluded is true for objects, since the Y and Z
values are defined as the High and Low values for the day.
The parent of this .
true if the Z data are included, false otherwise
Create a new , specifying only the legend label.
The label that will appear in the legend.
Create a new using the specified properties.
The _label that will appear in the legend.
An of double precision values that define
the Date, Close, Open, High, and Low values for the curve. Note that this
should contain items rather
than items.
The to use for drawing the candlesticks.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Class that handles the properties of the charting area (where the curves are
actually drawn), which is bounded by the , ,
and .
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
The rectangle that contains the area bounded by the axes, in pixel units
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the data for this
. Use the public property to
access this value.
Private field that determines if the will be
sized automatically. Use the public property to access
this value.
Default constructor.
Copy constructor
The source to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets the rectangle that contains the area bounded by the axes
(, , and ).
If you set this value manually, then the
value will automatically be set to false.
The rectangle units are in screen pixels
Gets or sets the data for this
.
Gets or sets the class for drawing the border
border around the
Gets or sets a boolean value that determines whether or not the
will be calculated automatically (almost always true).
If you have a need to set the ChartRect manually, such as you have multiple graphs
on a page and you want to line up the edges perfectly, you can set this value
to false. If you set this value to false, you must also manually set
the property.
You can easily determine the ChartRect that ZedGraph would have
calculated by calling the method, which returns
a chart rect sized for the current data range, scale sizes, etc.
true to have ZedGraph calculate the ChartRect, false to do it yourself
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default color for the border.
( property).
The default color for the background.
( property).
The default brush for the background.
( property of ).
The default for the background.
( property of ).
The default pen width for drawing the
border
( property).
Units are in points (1/72 inch).
The default display mode for the border
( property). true
to show the border border, false to omit the border
A collection base class containing basic extra functionality to be inherited
by , ,
.
The methods in this collection operate on basic
types. Therefore, in order to make sure that
the derived classes remain strongly-typed, there are no Add() or
Insert() methods here, and no methods that return an object.
Only Remove(), Move(), IndexOf(), etc. methods are included.
John Champion
$Revision: 3.8 $ $Date: 2006-06-24 20:26:43 $
Default Constructor
Return the zero-based position index of the specified object
in the collection.
A reference to the object that is to be found.
The zero-based index of the specified object, or -1 if the
object is not in the list
Remove an object from the collection at the specified ordinal location.
An ordinal position in the list at which the object to be removed
is located.
Remove an object from the collection based on an object reference.
A reference to the object that is to be
removed.
Move the position of the object at the specified index
to the new relative position in the list.
For Graphic type objects, this method controls the
Z-Order of the items. Objects at the beginning of the list
appear in front of objects at the end of the list.
The zero-based index of the object
to be moved.
The relative number of positions to move
the object. A value of -1 will move the
object one position earlier in the list, a value
of 1 will move it one position later. To move an item to the
beginning of the list, use a large negative value (such as -999).
To move it to the end of the list, use a large positive value.
The new position for the object, or -1 if the object
was not found.
Class used to get the next color/symbol for GraphPane.AddCurve methods.
Jerry Vos modified by John Champion
$Revision: 3.4 $ $Date: 2006-06-24 20:26:43 $
The s
rotates through.
The s
rotates through.
The index of the next color to be used. Note: may be
> COLORS.Length, it is reset to 0 on the next call if it is.
The index of the next symbol to be used. Note: may be
> SYMBOLS.Length, it is reset to 0 on the next call if it is.
Retrieves the next color in the rotation Calling this
method has the side effect of incrementing the color index.
Retrieves the index of the next color to be used. Calling this
method has the side effect of incrementing the color index.
Retrieves the next color in the rotation. Calling this
method has the side effect of incrementing the symbol index.
Retrieves the index of the next symbol to be used. Calling this
method has the side effect of incrementing the symbol index.
Retrieves the instance used by the
static methods.
Retrieves the next color from this class's static
instance
Retrieves the next symbol type from this class's static
instance
This class contains the data and methods for an individual curve within
a graph pane. It carries the settings for the curve including the
key and item names, colors, symbols and sizes, linetypes, etc.
John Champion
modified by Jerry Vos
$Revision: 3.43 $ $Date: 2007-11-03 04:41:28 $
protected field that stores a instance for this
, which is used for the
label. Use the public
property to access this value.
protected field that stores the boolean value that determines whether this
is on the bottom X axis or the top X axis (X2).
Use the public property to access this value.
protected field that stores the boolean value that determines whether this
is on the left Y axis or the right Y axis (Y2).
Use the public property to access this value.
protected field that stores the index number of the Y Axis to which this
belongs. Use the public property
to access this value.
protected field that stores the boolean value that determines whether this
is visible on the graph.
Use the public property to access this value.
Note that this value turns the curve display on or off, but it does not
affect the display of the legend entry. To hide the legend entry, you
have to set to false.
Protected field that stores the boolean value that determines whether this
is selected on the graph.
Use the public property to access this value.
Note that this value changes the curve display color, but it does not
affect the display of the legend entry. To hide the legend entry, you
have to set to false.
Protected field that stores the boolean value that determines whether this
can be selected in the graph.
protected field that stores a boolean value which allows you to override the normal
ordinal axis behavior. Use the public property to
access this value.
The of value sets that
represent this .
The size of this list determines the number of points that are
plotted. Note that values defined as
System.Double.MaxValue are considered "missing" values
(see ),
and are not plotted. The curve will have a break at these points
to indicate the values are missing.
A tag object for use by the user. This can be used to store additional
information associated with the . ZedGraph does
not use this value for any purpose.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Protected field that stores the hyperlink information for this object.
constructor the pre-specifies the curve label, the
x and y data values as a , the curve
type (Bar or Line/Symbol), the , and the
. Other properties of the curve are
defaulted to the values in the class.
A string label (legend entry) for this curve
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
constructor the pre-specifies the curve label, the
x and y data values as a , the curve
type (Bar or Line/Symbol), the , and the
. Other properties of the curve are
defaulted to the values in the class.
A string label (legend entry) for this curve
A of double precision value pairs that define
the X and Y values for this curve
Internal initialization routine thats sets some initial values to defaults.
A string label (legend entry) for this curve
constructor that specifies the label of the CurveItem.
This is the same as CurveItem(label, null, null).
A string label (legend entry) for this curve
The Copy Constructor
The CurveItem object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of Clone.
Note that this method must be called with an explicit cast to ICloneable, and
that it is inherently virtual. For example:
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with
ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation
of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.
A deep copy of this object
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A instance that represents the
entry for the this object
The //
color (FillColor for the Bar). This is a common access to
Line.Color,
Border.Color, and
Fill.Color properties for this curve.
Determines whether this is visible on the graph.
Note that this value turns the curve display on or off, but it does not
affect the display of the legend entry. To hide the legend entry, you
have to set to false.
Determines whether this is selected on the graph.
Note that this value changes the curve displayed color, but it does not
affect the display of the legend entry. To hide the legend entry, you
have to set to false.
Determines whether this can be selected in the graph.
Gets or sets a value which allows you to override the normal
ordinal axis behavior.
Normally for an ordinal axis type, the actual data values corresponding to the ordinal
axis will be ignored (essentially they are replaced by ordinal values, e.g., 1, 2, 3, etc).
If IsOverrideOrdinal is true, then the user data values will be used (even if they don't
make sense). Fractional values are allowed, such that a value of 1.5 is between the first and
second ordinal position, etc.
Gets or sets a value that determines which X axis this
is assigned to.
The
is on the bottom side of the graph and the
is on the top side. Assignment to an axis
determines the scale that is used to draw the curve on the graph.
true to assign the curve to the ,
false to assign the curve to the
Gets or sets a value that determines which Y axis this
is assigned to.
The
is on the left side of the graph and the
is on the right side. Assignment to an axis
determines the scale that is used to draw the curve on the graph. Note that
this value is used in combination with the to determine
which of the Y Axes (if there are multiples) this curve belongs to.
true to assign the curve to the ,
false to assign the curve to the
Gets or sets the index number of the Y Axis to which this
belongs.
This value is essentially an index number into the
or , depending on the setting of
.
Determines whether this
is a .
true for a bar chart, or false for a line or pie graph
Determines whether this
is a .
true for a pie chart, or false for a line or bar graph
Determines whether this
is a .
true for a line chart, or false for a bar type
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Readonly property that gives the number of points that define this
object, which is the number of points in the
data collection.
The of X,Y point sets that represent this
.
An accessor for the datum for this .
Index is the ordinal reference (zero based) of the point.
Gets or sets the hyperlink information for this .
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location.
This abstract base method passes through to or
to do the rendering.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Add a single x,y coordinate point to the end of the points collection for this curve.
The X coordinate value
The Y coordinate value
Add a object to the end of the points collection for this curve.
This method will only work if the instance reference
at supports the interface.
Otherwise, it does nothing.
A reference to the object to
be added
Clears the points from this . This is the same
as CurveItem.Points.Clear().
This method will only work if the instance reference
at supports the interface.
Otherwise, it does nothing.
Removes a single point from this .
This method will only work if the instance reference
at supports the interface.
Otherwise, it does nothing.
The ordinal position of the point to be removed.
Get the X Axis instance (either or ) to
which this belongs.
The object to which this curve belongs.
Either a or to which this
belongs.
Get the Y Axis instance (either or ) to
which this belongs.
This method safely retrieves a Y Axis instance from either the
or the using the values of and
. If the value of is out of bounds, the
default or is used.
The object to which this curve belongs.
Either a or to which this
belongs.
Get the index of the Y Axis in the or list to
which this belongs.
This method safely retrieves a Y Axis index into either the
or the using the values of and
. If the value of is out of bounds, the
default or is used, which is index zero.
The object to which this curve belongs.
An integer value indicating which index position in the list applies to this
Loads some pseudo unique colors/symbols into this CurveItem. This
is the same as MakeUnique(ColorSymbolRotator.StaticInstance).
Loads some pseudo unique colors/symbols into this CurveItem. This
is mainly useful for differentiating a set of new CurveItems without
having to pick your own colors/symbols.
The that is used to pick the color
and symbol for this method call.
Go through the list of data values for this
and determine the minimum and maximum values in the data.
The minimum X value in the range of data
The maximum X value in the range of data
The minimum Y value in the range of data
The maximum Y value in the range of data
ignoreInitial is a boolean value that
affects the data range that is considered for the automatic scale
ranging (see ). If true, then initial
data points where the Y value is zero are not included when
automatically determining the scale ,
, and size. All data after
the first non-zero Y value are included.
Determines if the auto-scaled axis ranges will subset the
data points based on any manually set scale range values.
A reference to the object that is the parent or
owner of this object.
Returns a reference to the object that is the "base"
(independent axis) from which the values are drawn.
This property is determined by the value of for
, , and
types. It is always the X axis for regular types.
Note that the setting can override the
and settings for bar types
(this is because all the bars that are clustered together must share the
same base axis).
Returns a reference to the object that is the "value"
(dependent axis) from which the points are drawn.
This property is determined by the value of for
, , and
types. It is always the Y axis for regular types.
Calculate the width of each bar, depending on the actual bar type
The width for an individual bar, in pixel units
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Compares 's based on the point value at the specified
index and for the specified axis.
Constructor for Comparer.
The axis type on which to sort.
The index number of the point on which to sort
Compares two s using the previously specified index value
and axis. Sorts in descending order.
Curve to the left.
Curve to the right.
-1, 0, or 1 depending on l.X's relation to r.X
A collection class containing a list of objects
that define the set of curves to be displayed on the graph.
John Champion
modified by Jerry Vos
$Revision: 3.43 $ $Date: 2007-11-03 04:41:28 $
Read only value for the maximum number of points in any of the curves
in the list.
Read only property that returns the number of curves in the list that are of
type . This does not include or
types.
Read only property that returns the number of curves in the list that are
potentially "clusterable", which includes and
types. This does not include ,
, , etc. types.
Note that this property is only the number of bars that COULD BE clustered. The
actual cluster settings are not considered.
Read only property that returns the number of pie slices in the list (class type is
).
Read only property that determines if all items in the are
Pies.
Determine if there is any data in any of the
objects for this graph. This method does not verify valid data, it
only checks to see if > 0.
true if there is any data, false otherwise
Default constructor for the collection class
The Copy Constructor
The XAxis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Iterate backwards through the items.
Iterate forward through the items.
Indexer to access the specified object by
its string.
The string label of the
object to be accessed.
A object reference.
Return the zero-based position index of the
with the specified .
The label that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the is not in the list
Return the zero-based position index of the
with the specified .
In order for this method to work, the
property must be of type .
The tag that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the is not in the list
Sorts the list according to the point values at the specified index and
for the specified axis.
Move the position of the object at the specified index
to the new relative position in the list.
For Graphic type objects, this method controls the
Z-Order of the items. Objects at the beginning of the list
appear in front of objects at the end of the list.
The zero-based index of the object
to be moved.
The relative number of positions to move
the object. A value of -1 will move the
object one position earlier in the list, a value
of 1 will move it one position later. To move an item to the
beginning of the list, use a large negative value (such as -999).
To move it to the end of the list, use a large positive value.
The new position for the object, or -1 if the object
was not found.
Go through each object in the collection,
calling the member to
determine the minimum and maximum values in the
list of data value pairs. If the curves include
a stack bar, handle within the current GetRange method. In the event that no
data are available, a default range of min=0.0 and max=1.0 are returned.
If the Y axis has a valid data range and the Y2 axis not, then the Y2
range will be a duplicate of the Y range. Vice-versa for the Y2 axis
having valid data when the Y axis does not.
If any in the list has a missing
, a new empty one will be generated.
ignoreInitial is a boolean value that
affects the data range that is considered for the automatic scale
ranging (see ). If true, then initial
data points where the Y value is zero are not included when
automatically determining the scale ,
, and size. All data after
the first non-zero Y value are included.
Determines if the auto-scaled axis ranges will subset the
data points based on any manually set scale range values.
A reference to the object that is the parent or
owner of this object.
Calculate the range for stacked bars and lines.
This method is required for the stacked
types because (for bars), the negative values are a separate stack than the positive
values. If you just sum up the bars, you will get the sum of the positive plus negative,
which is less than the maximum positive value and greater than the maximum negative value.
A reference to the object that is the parent or
owner of this object.
The for which to calculate the range
The minimum X value so far
The minimum Y value so far
The maximum X value so far
The maximum Y value so far
Render all the objects in the list to the
specified
device by calling the member function of
each object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Find the ordinal position of the specified within
the . This position only counts
types, ignoring all other types.
The of interest
The for which to search.
The ordinal position of the specified bar, or -1 if the bar
was not found.
John Champion
$Revision: 3.7 $ $Date: 2007-11-05 04:33:26 $
Indexer to access the specified object by
its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
gets the number of points available in the list
The object from which to get the bound data
Typically, you set the
property to a reference to your database, table or list object. The
property would be set
to the name of the datatable within the
,
if applicable.
The table or list object from which to extract the data values.
This property is just an alias for
.
The name of the property or column from which to obtain the
X data values for the chart.
Set this to null leave the X data values set to
The name of the property or column from which to obtain the
Y data values for the chart.
Set this to null leave the Y data values set to
The name of the property or column from which to obtain the
Z data values for the chart.
Set this to null leave the Z data values set to
The name of the property or column from which to obtain the
tag values for the chart.
Set this to null leave the tag values set to null. If this references string
data, then the tags may be used as tooltips using the
option.
Default Constructor
Constructor to initialize the DataSourcePointList from an
existing
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Extract a double value from the specified table row or data object with the
specified column name.
The data object from which to extract the value
The property name or column name of the value
to be extracted
The zero-based index of the point to be extracted.
Extract an object from the specified table row or data object with the
specified column name.
The data object from which to extract the object
The property name or column name of the object
to be extracted
The DateAsOrdinalScale class inherits from the class, and implements
the features specific to .
DateAsOrdinalScale is an ordinal axis that will have labels formatted with dates from the
actual data values of the first in the .
Although the tics are labeled with real data values, the actual points will be
evenly-spaced in spite of the data values. For example, if the X values of the first curve
are 1, 5, and 100, then the tic labels will show 1, 5, and 100, but they will be equal
distance from each other.
John Champion
$Revision: 1.13 $ $Date: 2007-11-28 02:38:22 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Gets or sets the minimum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the value to the range of valid dates for the
struct.
Gets or sets the maximum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the value to the range of valid dates for the
struct.
Select a reasonable ordinal axis scale given a range of data values, with the expectation that
dates will be displayed.
This method only applies to type axes, and it
is called by the general method. For this type,
the first curve is the "master", which contains the dates to be applied.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log
()
and text () type axes.
The resulting value label as a
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
The DateScale class inherits from the class, and implements
the features specific to .
DateScale is a cartesian axis with calendar dates or times. The actual data values should
be created with the type, which is directly translatable to a
type for storage in the point value arrays.
John Champion
$Revision: 1.15 $ $Date: 2007-09-19 06:41:56 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Gets or sets the minimum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the value to the range of valid dates for the
struct.
Gets or sets the maximum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the value to the range of valid dates for the
struct.
Determine the value for any major tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double)
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified major tic value (floating point double).
Determine the value for any minor tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double). This tic value is the base
reference for all tics (including minor ones).
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified minor tic value (floating point double).
Internal routine to determine the ordinals of the first minor tic mark
The value of the first major tic for the axis.
The ordinal position of the first minor tic, relative to the first major tic.
This value can be negative (e.g., -3 means the first minor tic is 3 minor step
increments before the first major tic.
Determine the value for the first major tic.
This is done by finding the first possible value that is an integral multiple of
the step size, taking into account the date/time units if appropriate.
This method properly accounts for , ,
and other axis format settings.
First major tic value (floating point double).
Internal routine to determine the ordinals of the first and last major axis label.
This is the total number of major tics for this axis.
Select a reasonable date-time axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. The scale range is chosen
based on increments of 1, 2, or 5 (because they are even divisors of 10).
Note that the property setting can have multiple unit
types ( and ),
but the and
units are always days (). This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. The basic default for
scale selection is defined with
and
from the default class.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Calculate a step size for a scale.
This method is used by .
The range of data in units of days
The desired "typical" number of steps
to divide the range into
The calculated step size for the specified data range. Also
calculates and sets the values for ,
, , and
Calculate a step size for a scale.
This method is used by .
The range of data in units of days
The desired "typical" number of steps
to divide the range into
The object on which to calculate the Date step size.
The calculated step size for the specified data range. Also
calculates and sets the values for ,
, , and
Calculate a date that is close to the specified date and an
even multiple of the selected
for a scale.
This method is used by .
The date which the calculation should be close to
The desired direction for the date to take.
1 indicates the result date should be greater than the specified
date parameter. -1 indicates the other direction.
The calculated date
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Gets the major unit multiplier for this scale type, if any.
The major unit multiplier will correct the units of
to match the units of
and . This reflects the setting of
.
Gets the minor unit multiplier for this scale type, if any.
The minor unit multiplier will correct the units of
to match the units of
and . This reflects the setting of
.
Internal routine to calculate a multiplier to the selected unit back to days.
The unit type for which the multiplier is to be
calculated
This is ratio of days/selected unit
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A class that represents a bordered and/or filled ellipse object on
the graph. A list of EllipseObj objects is maintained by the
collection class. The ellipse is defined
as the ellipse that would be contained by the rectangular box as
defined by the property.
John Champion
$Revision: 3.3 $ $Date: 2007-01-25 07:56:08 $
Constructors for the object
A constructor that allows the position and size
of the to be pre-specified. Other properties are defaulted.
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
A default constructor that places the at location (0,0),
with width/height of (1,1). Other properties are defaulted.
A constructor that allows the position, border color, and solid fill color
of the to be pre-specified.
An arbitrary specification
for the ellipse border
An arbitrary specification
for the ellipse fill (will be a solid color fill)
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
A constructor that allows the position, border color, and two-color
gradient fill colors
of the to be pre-specified.
An arbitrary specification
for the ellipse border
An arbitrary specification
for the start of the ellipse gradient fill
An arbitrary specification
for the end of the ellipse gradient fill
The x location for this . This will be in units determined by
.
The y location for this . This will be in units determined by
.
The width of this . This will be in units determined by
.
The height of this . This will be in units determined by
.
The Copy Constructor
The object from
which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
This class handles the drawing of the curve objects.
The Error Bars are the vertical lines with a symbol at each end.
To draw "I-Beam" bars, the symbol type defaults to
, which is just a horizontal line.
If is Y-oriented, then the symbol type should be
set to to get the same effect.
John Champion
$Revision: 3.21 $ $Date: 2007-08-10 16:22:54 $
Private field that stores the visibility of this
. Use the public
property to access this value. If this value is
false, the symbols will not be shown.
Private field that stores the error bar color. Use the public
property to access this value.
Private field that stores the pen width for this error bar. Use the public
property to access this value.
private field that contains the symbol element that will be drawn
at the top and bottom of the error bar. Use the public property
to access this value.
A simple struct that defines the
default property values for the class.
The default size for curve symbols
( property),
in units of points.
The default pen width to be used for drawing error bars
( property). Units are points.
The default display mode for symbols ( property).
true to display symbols, false to hide them.
The default color for drawing error bars ( property).
The default symbol for drawing at the top and bottom of the
error bar (see ).
Gets or sets a property that shows or hides the .
true to show the error bar, false to hide it
Gets or sets the data for this
.
This property only controls the color of
the vertical line. The symbol color is controlled separately in
the property.
The pen width to be used for drawing error bars
Units are points.
This property only controls the pen width for the
vertical line. The pen width for the symbol outline is
controlled separately by the property.
Contains the symbol element that will be drawn
at the top and bottom of the error bar.
Default constructor that sets all properties to
default values as defined in the class.
Default constructor that sets the
as specified, and the remaining
properties to default
values as defined in the class.
A value indicating
the color of the symbol
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Draw the to the specified
device at the specified location.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
boolean value that indicates if the "base" axis for this
is the X axis. True for an base,
false for a or base.
The independent axis position of the center of the error bar in
pixel units
The dependent axis position of the top of the error bar in
pixel units
The dependent axis position of the bottom of the error bar in
pixel units
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
A pen with attributes of and
for this
The data value to be used for a value-based
color gradient. This is only applicable for ,
or .
Indicates that the should be drawn
with attributes from the class.
Draw all the 's to the specified
device as a an error bar at each defined point.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Encapsulates an "Error Bar" curve type that displays a vertical or horizontal
line with a symbol at each end.
The type is intended for displaying
confidence intervals, candlesticks, stock High-Low charts, etc. It is
technically not a bar, since it is drawn as a vertical or horizontal line.
The default symbol at each end of the "bar" is ,
which creates an "I-Beam". For horizontal bars
( or
), you will need to change the symbol to
to get horizontal "I-Beams".
Since the horizontal segments are actually symbols, their widths are
controlled by the symbol size in ,
specified in points (1/72nd inch). The position of each "I-Beam" is set
according to the values. The independent axis
is assigned with , and is a
enum type.
John Champion
$Revision: 3.19 $ $Date: 2007-04-16 00:03:01 $
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Gets a reference to the class defined
for this .
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Create a new , specifying only the legend label.
The label that will appear in the legend.
Create a new using the specified properties.
The label that will appear in the legend.
An array of double precision values that define
the X axis values for this curve
An array of double precision values that define
the Y axis values for this curve
An array of double precision values that define
the lower dependent values for this curve
A value that will be applied to
the properties.
Create a new using the specified properties.
The label that will appear in the legend.
A of double precision values that define
the X, Y and lower dependent values for this curve
A value that will be applied to
the properties.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
The ExponentScale class inherits from the class, and implements
the features specific to .
ExponentScale is a non-linear axis in which the values are scaled using an exponential function
with the property.
John Champion with contributions by jackply
$Revision: 1.8 $ $Date: 2007-04-16 00:03:01 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Setup some temporary transform values in preparation for rendering the .
This method is typically called by the parent
object as part of the method. It is also
called by and
methods to setup for coordinate transformations.
A reference to the object that is the parent or
owner of this object.
The parent for this
Convert a value to its linear equivalent for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the log or power equivalent.
The value to be converted
Convert a value from its linear equivalent to its actual scale value
for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the anti-log or inverse-power equivalent.
The value to be converted
Determine the value for any major tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double)
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified major tic value (floating point double).
Determine the value for any minor tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double). This tic value is the base
reference for all tics (including minor ones).
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified minor tic value (floating point double).
Internal routine to determine the ordinals of the first minor tic mark
The value of the first major tic for the axis.
The ordinal position of the first minor tic, relative to the first major tic.
This value can be negative (e.g., -3 means the first minor tic is 3 minor step
increments before the first major tic.
Select a reasonable exponential axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. The exponential scale
relies on the property to set the scaling exponent. This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. For log axes, the MinorStep
value is not used.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A class that encapsulates color-fill properties for an object. The class
is used in , , ,
, and objects.
John Champion
$Revision: 3.22 $ $Date: 2007-01-26 09:01:49 $
Private field that stores the fill color. Use the public
property to access this value. This property is
only applicable if the is not .
Private field that stores the secondary color for gradientByValue fills. Use the public
property to access this value. This property is
only applicable if the is ,
, or .
Private field that stores the custom fill brush. Use the public
property to access this value. This property is
only applicable if the
property is set to .
Private field that determines the type of color fill. Use the public
property to access this value. The fill color
is determined by the property or
.
Private field that determines if the brush will be scaled to the bounding box
of the filled object. If this value is false, then the brush will only be aligned
with the filled object based on the and
properties.
Private field that determines how the brush will be aligned with the filled object
in the horizontal direction. This value is a enumeration.
This field only applies if is false.
properties.
Private field that determines how the brush will be aligned with the filled object
in the vertical direction. This value is a enumeration.
This field only applies if is false.
properties.
Private field that saves the image passed to the constructor.
This is used strictly for serialization.
Private field that saves the image wrapmode passed to the constructor.
This is used strictly for serialization.
Private field that saves the list of colors used to create the
in the constructor. This is used strictly
for serialization.
Private field that saves the list of positions used to create the
in the constructor. This is used strictly
for serialization.
Private field the saves the angle of the fill. This is used strictly for serialization.
A simple struct that defines the
default property values for the class.
The default scaling mode for fills.
This is the default value for the property.
The default horizontal alignment for fills.
This is the default value for the property.
The default vertical alignment for fills.
This is the default value for the property.
Generic initializer to default values
The default constructor. Initialized to no fill.
Constructor that specifies the color, brush, and type for this fill.
The color of the fill for solid fills
A custom brush for fills. Can be a ,
, or .
The for this fill.
Constructor that creates a solid color-fill, setting to
, and setting to the
specified color value.
The color of the solid fill
Constructor that creates a linear gradient color-fill, setting to
using the specified colors and angle.
The first color for the gradient fill
The second color for the gradient fill
The angle (degrees) of the gradient fill
Constructor that creates a linear gradient color-fill, setting to
using the specified colors.
The first color for the gradient fill
The second color for the gradient fill
Constructor that creates a linear gradient color-fill, setting to
using the specified colors. This gradient fill
consists of three colors.
The first color for the gradient fill
The second color for the gradient fill
The third color for the gradient fill
Constructor that creates a linear gradient color-fill, setting to
using the specified colors. This gradient fill
consists of three colors
The first color for the gradient fill
The second color for the gradient fill
The third color for the gradient fill
The angle (degrees) of the gradient fill
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on a object. The gradient
angle is defaulted to zero.
The object that defines the colors
and positions along the gradient.
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on a object, drawn at the
specified angle (degrees).
The object that defines the colors
and positions along the gradient.
The angle (degrees) of the gradient fill
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on an array of objects, drawn at an
angle of zero (degrees). The array is used to create
a object assuming a even linear distribution of the colors
across the gradient.
The array of objects that defines the colors
along the gradient.
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on an array of objects, drawn at the
specified angle (degrees). The array is used to create
a object assuming a even linear distribution of the colors
across the gradient.
The array of objects that defines the colors
along the gradient.
The angle (degrees) of the gradient fill
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on an array of objects, drawn at the
an angle of zero (degrees). The array is used to create
a object assuming a even linear distribution of the colors
across the gradient.
The array of objects that defines the colors
along the gradient.
The array of floating point values that defines the color
positions along the gradient. Values should range from 0 to 1.
Constructor that creates a linear gradient multi-color-fill, setting to
using the specified colors. This gradient fill
consists of many colors based on an array of objects, drawn at the
specified angle (degrees). The array is used to create
a object assuming a even linear distribution of the colors
across the gradient.
The array of objects that defines the colors
along the gradient.
The array of floating point values that defines the color
positions along the gradient. Values should range from 0 to 1.
The angle (degrees) of the gradient fill
Constructor that creates a texture fill, setting to
and using the specified image.
The to use for filling
The class that controls the image wrapping properties
Constructor that creates a fill, using a user-supplied, custom
. The brush will be scaled to fit the destination screen object
unless you manually change to false;
The to use for fancy fills. Typically, this would
be a or a class
Constructor that creates a fill, using a user-supplied, custom
. The brush will be scaled to fit the destination screen object
according to the parameter.
The to use for fancy fills. Typically, this would
be a or a class
Determines if the brush will be scaled to fit the bounding box
of the destination object. true to scale it, false to leave it unscaled
Constructor that creates a fill, using a user-supplied, custom
. This constructor will make the brush unscaled (see ),
but it provides and parameters to control
alignment of the brush with respect to the filled object.
The to use for fancy fills. Typically, this would
be a or a class
Controls the horizontal alignment of the brush within the filled object
(see
Controls the vertical alignment of the brush within the filled object
(see
The Copy Constructor
The Fill object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
The fill color. This property is used as a single color to make a solid fill
( is ), or it can be used in
combination with to make a
when is and
is null.
Gets or sets the secondary color for gradientByValue fills.
This property is only applicable if the is
,
, or
. Once the gradient-by-value logic picks
a color, a new gradient will be created using the SecondaryValueGradientColor, the
resulting gradient-by-value color, and the angle setting for this
. Use a value of Color.Empty to have
a solid-color resulting from a gradient-by-value
.
The custom fill brush. This can be a , a
, or a . This property is
only applicable if the property is set
to .
Determines the type of fill, which can be either solid
color () or a custom brush
(). See for
more information.
This property determines the type of color fill.
Returns true if the property is either
or
. If set to true, this property
will automatically set the to
. If set to false, this property
will automatically set the to
. In order to get a regular
solid-color fill, you have to manually set
to .
Determines if the brush will be scaled to the bounding box
of the filled object. If this value is false, then the brush will only be aligned
with the filled object based on the and
properties.
Determines how the brush will be aligned with the filled object
in the horizontal direction. This value is a enumeration.
This field only applies if is false.
Determines how the brush will be aligned with the filled object
in the vertical direction. This value is a enumeration.
This field only applies if is false.
Returns a boolean value indicating whether or not this fill is a "Gradient-By-Value"
type. This is true for , ,
or .
The gradient by value fill method allows the fill color for each point or bar to
be based on a value for that point (either X, Y, or Z in the .
For example, assume a class is defined with a linear gradient ranging from
to and the
is set to . If is set to
100.0 and is set to 200.0, then a point that has a Y value of
100 or less will be colored blue, a point with a Y value of 200 or more will be
colored red, and a point between 100 and 200 will have a color based on a linear scale
between blue and red. Note that the fill color is always solid for any given point.
You can use the Z value from along with
to color individual points according to some
property that is independent of the X,Y point pair.
true if this is a Gradient-by-value type, false otherwise
The minimum user-scale value for the gradient-by-value determination. This defines
the user-scale value for the start of the gradient.
A double value, in user scale unit
The maximum user-scale value for the gradient-by-value determination. This defines
the user-scale value for the end of the gradient.
A double value, in user scale unit
The default user-scale value for the gradient-by-value determination. This defines the
value that will be used when there is no point value available, or the actual point value
is invalid.
Note that this value, when defined, will determine the color that is used in the legend.
If this value is set to double.MaxValue, then it remains "undefined." In this case, the
legend symbols will actually be filled with a color gradient representing the range of
colors.
A double value, in user scale unit
Create a fill brush using current properties. This method will construct a brush based on the
settings of ,
and . If
is set to and
is null, then a will be created between the colors of
and .
A rectangle that bounds the object to be filled. This determines
the start and end of the gradient fill.
A class representing the fill brush
Create a fill brush using current properties. This method will construct a brush based on the
settings of ,
and . If
is set to and
is null, then a will be created between the colors of
and .
A rectangle that bounds the object to be filled. This determines
the start and end of the gradient fill.
The data value to be used for a value-based
color gradient. This is only applicable for ,
or .
A class representing the fill brush
Fill the background of the area, using the
fill type from this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The struct specifying the area
to be filled
Fill the background of the area, using the
fill type from this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The struct specifying the area
to be filled
The data value to be used in case it's a
, , or
.
An example of an implementation that stores large datasets, and
selectively filters the output data depending on the displayed range.
This class will refilter the data points each time is called. The
data are filtered down to points, within the data bounds of
a minimum and maximum data range. The data are filtered by simply skipping
points to achieve the desired total number of points. Input arrays are assumed to be
monotonically increasing in X, and evenly spaced in X.
John Champion with mods by Christophe Holmes
$Revision: 1.11 $ $Date: 2007-11-29 02:15:39 $
Instance of an array of x values
Instance of an array of x values
This is the maximum number of points that you want to see in the filtered dataset
The index of the xMinBound above
The index of the xMaxBound above
Indexer to access the specified object by
its ordinal position in the list.
Returns for any value of
that is outside of its corresponding array bounds.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
Returns the number of points according to the current state of the filter.
Gets the desired number of filtered points to output. You can set this value by
calling .
Constructor to initialize the PointPairList from two arrays of
type double.
The Copy Constructor
The FilteredPointList from which to copy
Deep-copy clone routine
A new, independent copy of the FilteredPointList
Set the data bounds to the specified minimum, maximum, and point count. Use values of
min=double.MinValue and max=double.MaxValue to get the full range of data. Use maxPts=-1
to not limit the number of points. Call this method anytime the zoom range is changed.
The lower bound for the X data of interest
The upper bound for the X data of interest
The maximum number of points allowed to be
output by the filter
The class is a generic font class that maintains the font family,
attributes, colors, border and fill modes, font size, and angle information.
This class can render text with a variety of alignment options using the
and parameters in the
method.
John Champion
$Revision: 3.24 $ $Date: 2007-01-25 07:56:08 $
Private field that stores the color of the font characters for this
. Use the public property
to access this value.
A system reference.
Private field that stores the font family name for this .
Use the public property to access this value.
A text string with the font family name, e.g., "Arial"
Private field that determines whether this is
drawn with bold typeface.
Use the public property to access this value.
A boolean value, true for bold, false for normal
Private field that determines whether this is
drawn with italic typeface.
Use the public property to access this value.
A boolean value, true for italic, false for normal
Private field that determines whether this is
drawn with underlined typeface.
Use the public property to access this value.
A boolean value, true for underline, false for normal
Private field that stores the data for this
. Use the public property to
access this value.
Private field that determines the properties of the border around the text.
Use the public property to access this value.
Private field that determines the angle at which this
object is drawn. Use the public property
to access this value.
The angle of the font, measured in anti-clockwise degrees from
horizontal. Negative values are permitted.
Private field that determines the alignment with which this
object is drawn. This alignment really only
affects multi-line strings. Use the public property
to access this value.
A enumeration.
Private field that determines the size of the font for this
object. Use the public property
to access this value.
The size of the font, measured in points (1/72 inch).
Private field that stores a reference to the
object for this . This font object will be at
the actual drawn size according to the current
size of the . Use the public method
to access this font object.
A reference to a object
Private field that determines if the will be
displayed using anti-aliasing logic.
Use the public property to access this value.
Private field that determines if the will be
displayed with a drop shadow.
Use the public property to access this value.
Private field that determines the color of the dropshadow for this
.
Use the public property to access this value.
Private field that determines the offset angle of the dropshadow for this
.
Use the public property to access this value.
Private field that determines the offset distance of the dropshadow for this
.
Use the public property to access this value.
Private field that stores a reference to the
object that will be used for superscripts. This font object will be a
fraction of the ,
based on the value of . This
property is internal, and has no public access.
A reference to a object
Private field that temporarily stores the scaled size of the font for this
object. This represents the actual on-screen
size, rather than the that represents the reference
size for a "full-sized" .
The size of the font, measured in points (1/72 inch).
A simple struct that defines the
default property values for the class.
The default size fraction of the superscript font, expressed as a fraction
of the size of the main font.
The default shift fraction of the superscript, expressed as a
fraction of the superscripted character height. This is the height
above the main font (a zero shift means the main font and the superscript
font have the tops aligned).
The default color for filling in the background of the text block
( property).
The default custom brush for filling in this
( property).
The default fill mode for this
( property).
Default value for the alignment with which this
object is drawn. This alignment really only
affects multi-line strings.
A enumeration.
Default value for , which determines
if the drop shadow is displayed for this .
Default value for , which determines
if anti-aliasing logic is used for this .
Default value for , which determines
the color of the drop shadow for this .
Default value for , which determines
the offset angle of the drop shadow for this .
Default value for , which determines
the offset distance of the drop shadow for this .
The color of the font characters for this .
Note that the border and background
colors are set using the and
properties, respectively.
A system reference.
The font family name for this .
A text string with the font family name, e.g., "Arial"
Determines whether this is
drawn with bold typeface.
A boolean value, true for bold, false for normal
Determines whether this is
drawn with italic typeface.
A boolean value, true for italic, false for normal
Determines whether this is
drawn with underlined typeface.
A boolean value, true for underline, false for normal
The angle at which this object is drawn.
The angle of the font, measured in anti-clockwise degrees from
horizontal. Negative values are permitted.
Determines the alignment with which this
object is drawn. This alignment really only
affects multi-line strings.
A enumeration.
The size of the font for this object.
The size of the font, measured in points (1/72 inch).
Gets or sets the class used to draw the border border
around this text.
Gets or sets the data for this
, which controls how the background
behind the text is filled.
Gets or sets a value that determines if the will be
drawn using anti-aliasing logic within GDI+.
If this property is set to true, it will override the current setting of
by setting the value temporarily to
. If this property is set to false,
the the current setting of will be
left as-is.
Gets or sets a value that determines if the will be
displayed with a drop shadow.
Gets or sets the color of the drop shadow for this .
This value only applies if is true.
Gets or sets the offset angle of the drop shadow for this .
This value only applies if is true.
The angle, measured in anti-clockwise degrees from
horizontal. Negative values are permitted.
Gets or sets the offset distance of the drop shadow for this .
This value only applies if is true.
The offset distance, measured as a fraction of the scaled font height.
Construct a object with default properties.
Construct a object with the given properties. All other properties
are defaulted according to the values specified in the
default class.
A text string representing the font family
(default is "Arial")
A size of the font in points. This size will be scaled
based on the ratio of the dimension to the
of the object.
The color with which to render the font
true for a bold typeface, false otherwise
true for an italic typeface, false otherwise
true for an underlined font, false otherwise
Construct a object with the given properties. All other properties
are defaulted according to the values specified in the
default class.
A text string representing the font family
(default is "Arial")
A size of the font in points. This size will be scaled
based on the ratio of the dimension to the
of the object.
The color with which to render the font
true for a bold typeface, false otherwise
true for an italic typeface, false otherwise
true for an underlined font, false otherwise
The to use for filling in the text background
The to use for filling in the text background
The to use for the
text background
The Copy Constructor
The FontSpec object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Recreate the font based on a new scaled size. The font
will only be recreated if the scaled size has changed by
at least 0.1 points.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The unscaled size of the font, in points
The scaled size of the font, in points
A reference to the object
Get the class for the current scaled font.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Returns a reference to a object
with a size of , and font .
Render the specified to the specifed
device. The text, border, and fill options
will be rendered as required.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Render the specified to the specifed
device. The text, border, and fill options
will be rendered as required.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The limiting area () into which the text
must fit. The actual rectangle may be smaller than this, but the text will be wrapped
to accomodate the area.
Render the specified to the specifed
device. The text, border, and fill options
will be rendered as required. This special case method will show the
specified text as a power of 10, using the
and .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Get the height of the scaled font
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled font height, in pixels
Get the average character width of the scaled font. The average width is
based on the character 'x'
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled font width, in pixels
Get the total width of the specified text string
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled text width, in pixels
Get a struct representing the width and height
of the specified text string, based on the scaled font size
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled text dimensions, in pixels, in the form of
a struct
Get a struct representing the width and height
of the specified text string, based on the scaled font size, and using
the specified as an outer limit.
This method will allow the text to wrap as necessary to fit the
.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The limiting area () into which the text
must fit. The actual rectangle may be smaller than this, but the text will be wrapped
to accomodate the area.
The scaled text dimensions, in pixels, in the form of
a struct
Get a struct representing the width and height
of the bounding box for the specified text string, based on the scaled font size.
This routine differs from in that it takes into
account the rotation angle of the font, and gives the dimensions of the
bounding box that encloses the text at the specified angle.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled text dimensions, in pixels, in the form of
a struct
Get a struct representing the width and height
of the bounding box for the specified text string, based on the scaled font size.
This routine differs from in that it takes into
account the rotation angle of the font, and gives the dimensions of the
bounding box that encloses the text at the specified angle.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The limiting area () into which the text
must fit. The actual rectangle may be smaller than this, but the text will be wrapped
to accomodate the area.
The scaled text dimensions, in pixels, in the form of
a struct
Get a struct representing the width and height
of the bounding box for the specified text string, based on the scaled font size.
This special case method will show the specified string as a power of 10,
superscripted and downsized according to the
and .
This routine differs from in that it takes into
account the rotation angle of the font, and gives the dimensions of the
bounding box that encloses the text at the specified angle.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The text string for which the width is to be calculated
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled text dimensions, in pixels, in the form of
a struct
Determines if the specified screen point lies within the bounding box of
the text, taking into account alignment and rotation parameters.
The screen point, in pixel units
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies within the bounding box, false otherwise
Determines if the specified screen point lies within the bounding box of
the text, taking into account alignment and rotation parameters.
The screen point, in pixel units
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The limiting area () into which the text
must fit. The actual rectangle may be smaller than this, but the text will be wrapped
to accomodate the area.
true if the point lies within the bounding box, false otherwise
Returns a polygon that defines the bounding box of
the text, taking into account alignment and rotation parameters.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A string value containing the text to be
displayed. This can be multiple lines, separated by newline ('\n')
characters
The X location to display the text, in screen
coordinates, relative to the horizontal ()
alignment parameter
The Y location to display the text, in screen
coordinates, relative to the vertical (
alignment parameter
A horizontal alignment parameter specified
using the enum type
A vertical alignment parameter specified
using the enum type
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The limiting area () into which the text
must fit. The actual rectangle may be smaller than this, but the text will be wrapped
to accomodate the area.
A polygon of 4 points defining the area of this text
Class that handles the data associated with a text title and its associated font
properties. Inherits from , and adds the
property for use by the and objects.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Constructor to build a from the text and the
associated font properties.
The representing the text to be
displayed
The font family name
The size of the font in points and scaled according
to the logic.
The instance representing the color
of the font
true for a bold font face
true for an italic font face
true for an underline font face
Copy constructor
the instance to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets the gap factor between this label and the opposing
or .
This value is expressed as a fraction of the character height for the .
Calculate the size of the based on the
height, in pixel units and scaled according to .
The scaling factor to be applied
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default setting.
A class representing a needle on the GasGuage chart
s.
Jay Mistry
$Revision: 1.2 $ $Date: 2007-08-11 14:37:47 $
Value of this needle
Width of the line being drawn
Color of the needle line
Internally calculated angle that places this needle relative to the MinValue and
MaxValue of 180 degree GasGuage
Private field that stores the data for this
. Use the public property to
access this value.
A which will customize the label display of this
Private field that stores the class that defines the
properties of the border around this . Use the public
property to access this value.
The bounding rectangle for this .
Private field to hold the GraphicsPath of this to be
used for 'hit testing'.
Create a new
The value associated with this
instance.
The display color for this
instance.
The value of this .
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or Sets the NeedleWidth of this
Gets or Sets the Border of this
Gets or Sets the SlicePath of this
Gets or Sets the LableDetail of this
Gets or Sets the NeedelColor of this
Gets or Sets the Fill of this
Private property that Gets or Sets the SweepAngle of this
Gets or Sets the NeedleValue of this
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Specify the default property values for the class.
The default width of the gas gauge needle. Units are points, scaled according
to
The default pen width to be used for drawing the border around the GasGaugeNeedle
( property). Units are points.
The default border mode for GasGaugeNeedle (
property).
true to display frame around GasGaugeNeedle, false otherwise
The default color for drawing frames around GasGaugeNeedle
( property).
The default fill type for filling the GasGaugeNeedle.
The default color for filling in the GasGaugeNeedle
( property).
The default custom brush for filling in the GasGaugeNeedle.
( property).
Default value for controlling display.
The default font size for entries
( property). Units are
in points (1/72 inch).
Do all rendering associated with this item to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
Not used for rendering GasGaugeNeedle
Not used for rendering GasGaugeNeedle
Render the label for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Bounding rectangle for this .
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Calculate the values needed to properly display this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Calculate the that will be used to define the bounding rectangle of
the GasGaugeNeedle.
This rectangle always lies inside of the , and it is
normally a square so that the pie itself is not oval-shaped.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The (normally the )
that bounds this pie.
A class representing a region on the GasGuage chart
s.
Jay Mistry
$Revision: 1.2 $ $Date: 2007-07-30 05:26:23 $
Defines the minimum value of this
Defines the maximum value of this
Defines the Color of this
Internally calculated; Start angle of this pie that defines this
Internally calculated; Sweep angle of this pie that defines this
Private field that stores the data for this
. Use the public property to
access this value.
A which will customize the label display of this
Private field that stores the class that defines the
properties of the border around this . Use the public
property to access this value.
The bounding rectangle for this .
Private field to hold the GraphicsPath of this to be
used for 'hit testing'.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Create a new
The value associated with this instance.
The display color for this instance.
The minimum value of this .
The maximum value of this .
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets the SlicePath of this
Gets or sets the LabelDetail of this
Gets or sets the Border of this
Gets or sets the RegionColor of this
Gets or sets the Fill of this
Gets or sets the SweepAngle of this
Gets or sets the StartAngle of this
Gets or sets the MinValue of this
Gets or sets the MaxValue of this
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Specify the default property values for the class.
The default border pen width for the
The default fill type for the
The default value for the visibility of the border.
The default value for the color of the border
The default value for the color of the fill
The default value for the fill brush of the
The default value for the visibility of the fill.
The default value for the font size of the labels.
Do all rendering associated with this item to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
Not used for rendering GasGaugeNeedle
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Render the label for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Bounding rectangle for this .
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Calculate the values needed to properly display this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Calculate the that will be used to define the bounding rectangle of
the GasGaugeNeedle.
This rectangle always lies inside of the , and it is
normally a square so that the pie itself is not oval-shaped.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The (normally the )
that bounds this pie.
An abstract base class that represents a text object on the graph. A list of
objects is maintained by the
collection class.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Protected field that stores the location of this .
Use the public property to access this value.
Protected field that determines whether or not this
is visible in the graph. Use the public property to
access this value.
Protected field that determines whether or not the rendering of this
will be clipped to the ChartRect. Use the public property to
access this value.
A tag object for use by the user. This can be used to store additional
information associated with the . ZedGraph does
not use this value for any purpose.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Internal field that determines the z-order "depth" of this
item relative to other graphic objects. Use the public property
to access this value.
Internal field that stores the hyperlink information for this object.
A simple struct that defines the
default property values for the class.
Default value for the vertical
text alignment ( property).
This is specified
using the enum type.
Default value for the horizontal
text alignment ( property).
This is specified
using the enum type.
The default coordinate system to be used for defining the
location coordinates
( property).
The coordinate system is defined with the
enum
The default value for .
The struct that describes the location
for this .
Gets or sets a value that determines the z-order "depth" of this
item relative to other graphic objects.
Note that this controls the z-order with respect to
other elements such as 's,
objects, etc. The order of objects having
the same value is controlled by their order in
the . The first
in the list is drawn in front of other
objects having the same value.
Gets or sets a value that determines if this will be
visible in the graph. true displays the item, false hides it.
Gets or sets a value that determines whether or not the rendering of this
will be clipped to the .
true to clip the to the bounds,
false to leave it unclipped.
Gets or sets the hyperlink information for this .
true if the of this object is set to put it in front
of the data points.
Constructors for the class.
Default constructor that sets all properties to default
values as defined in the class.
Constructor that sets all properties to default
values as defined in the class.
The x position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The y position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
Constructor that creates a with the specified
coordinates and all other properties to defaults as specified
in the class..
The four coordinates define the starting point and ending point for
's, or the topleft and bottomright points for
's. For 's that only require
one point, the and values
will be ignored. The units of the coordinates are specified by the
property.
The x position of the item.
The y position of the item.
The x2 position of the item.
The x2 position of the item.
Constructor that creates a with the specified
position and . Other properties are set to default
values as defined in the class.
The two coordinates define the location point for the object.
The units of the coordinates are specified by the
property.
The x position of the item. The item will be
aligned to this position based on the
property.
The y position of the item. The item will be
aligned to this position based on the
property.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
Constructor that creates a with the specified
position, , , and .
Other properties are set to default values as defined in the class.
The two coordinates define the location point for the object.
The units of the coordinates are specified by the
property.
The x position of the item. The item will be
aligned to this position based on the
property.
The y position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
Constructor that creates a with the specified
position, , , and .
Other properties are set to default values as defined in the class.
The four coordinates define the starting point and ending point for
's, or the topleft and bottomright points for
's. For 's that only require
one point, the and values
will be ignored. The units of the coordinates are specified by the
property.
The x position of the item.
The y position of the item.
The x2 position of the item.
The x2 position of the item.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of Clone.
Note that this method must be called with an explicit cast to ICloneable, and
that it is inherently virtual. For example:
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with
ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation
of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.
A deep copy of this object
Current schema value that defines the version of the serialized file
schema changed to 2 when isClippedToChartRect was added.
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
Determines the shape type and Coords values for this GraphObj
A collection class containing a list of objects
to be displayed on the graph.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default constructor for the collection class
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Indexer to access the specified object by its .
Note that the must be a type for this method
to work.
The type tag to search for.
A object reference.
Return the zero-based position index of the
with the specified .
In order for this method to work, the
property must be of type .
The tag that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the is not in the list
Move the position of the object at the specified index
to the new relative position in the list.
For Graphic type objects, this method controls the
Z-Order of the items. Objects at the beginning of the list
appear in front of objects at the end of the list.
The zero-based index of the object
to be moved.
The relative number of positions to move
the object. A value of -1 will move the
object one position earlier in the list, a value
of 1 will move it one position later. To move an item to the
beginning of the list, use a large negative value (such as -999).
To move it to the end of the list, use a large positive value.
The new position for the object, or -1 if the object
was not found.
Render text to the specified device
by calling the Draw method of each object in
the collection.
This method is normally only called by the Draw method
of the parent object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A enumeration that controls
the placement of this relative to other
graphic objects. The order of 's with the
same value is control by their order in
this .
Determine if a mouse point is within any , and if so,
return the index number of the the .
The screen point, in pixel coordinates.
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The index number of the
that is under the mouse point. The object is
accessible via the indexer property.
true if the mouse point is within a bounding
box, false otherwise.
Class encapsulates the graph pane, which is all display elements
associated with an individual graph.
This class is the outside "wrapper"
for the ZedGraph classes, and provides the interface to access the attributes
of the graph. You can have multiple graphs in the same document or form,
just instantiate multiple GraphPane's.
John Champion modified by Jerry Vos
$Revision: 3.81 $ $Date: 2007-09-30 07:44:11 $
A delegate to provide notification through the
when is called.
The for which AxisChange() has
been called.
Subscribe to this event to be notified when is called.
Private field instance of the class. Use the
public property to access this class.
Private field instance of the class. Use the
public property to access this class.
Private field instance of the class. Use the
public property to access this class.
Private field instance of the class. Use the
public property to access this class.
Private field instance of the class. Use the
public property to access this class.
private value that contains a , which stores prior
objects containing scale range information. This enables
zooming and panning functionality for the .
Private field that determines whether or not initial zero values will
be included or excluded when determining the Y or Y2 axis scale range.
Use the public property to access
this value.
Private field that determines whether or not initial
values will cause the line segments of
a curve to be discontinuous. If this field is true, then the curves
will be plotted as continuous lines as if the Missing values did not
exist.
Use the public property to access
this value.
private field that determines if the auto-scaled axis ranges will subset the
data points based on any manually set scale range values. Use the public property
to access this value.
The bounds provide a means to subset the data. For example, if all the axes are set to
autoscale, then the full range of data are used. But, if the XAxis.Min and XAxis.Max values
are manually set, then the Y data range will reflect the Y values within the bounds of
XAxis.Min and XAxis.Max.
private field that determines if ZedGraph should modify the scale ranges for the Y and Y2
axes such that the number of steps, and therefore the grid lines, line up. Use the
public property to acccess this value.
Private field that determines how the
graphs will be displayed. See the enum
for the individual types available.
To access this value, use the public property .
A simple struct that defines the
default property values for the class.
The default settings for the scale ignore initial
zero values option ( property).
true to have the auto-scale-range code ignore the initial data points
until the first non-zero Y value, false otherwise.
The default settings for the scale bounded ranges option
( property).
true to have the auto-scale-range code subset the data according to any
manually set scale values, false otherwise.
The default value for the property, which
determines if the lines are drawn in normal or "stacked" mode. See the
for more information.
The default width of a bar cluster
on a graph. This value only applies to
graphs, and only when the
is ,
or .
This dimension is expressed in terms of X scale user units.
The tolerance that is applied to the
routine.
If a given curve point is within this many pixels of the mousePt, the curve
point is considered to be close enough for selection as a nearest point
candidate.
Gets or sets the list of items for this
A reference to a collection object
Accesses the for this graph
A reference to a object
Accesses the for this graph
A reference to a object
Accesses the primary for this graph
A reference to a object
Accesses the primary for this graph
A reference to a object
Gets the collection of Y axes that belong to this .
Gets the collection of Y2 axes that belong to this .
Gets the instance for this .
Gets the instance for this ,
which stores the global properties for bar type charts.
Gets or sets a boolean value that affects the data range that is considered
for the automatic scale ranging.
If true, then initial data points where the Y value
is zero are not included when automatically determining the scale ,
, and size.
All data after the first non-zero Y value are included.
Gets or sets a boolean value that determines if the auto-scaled axis ranges will
subset the data points based on any manually set scale range values.
The bounds provide a means to subset the data. For example, if all the axes are set to
autoscale, then the full range of data are used. But, if the XAxis.Min and XAxis.Max values
are manually set, then the Y data range will reflect the Y values within the bounds of
XAxis.Min and XAxis.Max. Set to true to subset the data, or false to always include
all data points when calculating scale ranges.
Gets or sets a value that determines whether or not initial
values will cause the line segments of
a curve to be discontinuous.
If this field is true, then the curves
will be plotted as continuous lines as if the Missing values did not exist.
Use the public property to access
this value.
Gets or sets a value that determines if ZedGraph should modify the scale ranges
for the Y and Y2 axes such that the number of major steps, and therefore the
major grid lines, line up.
This property affects the way that selects the scale
ranges for the Y and Y2 axes. It applies to the scale ranges of all Y and Y2 axes,
but only if the is set to true.
Determines how the
graphs will be displayed. See the enum
for the individual types available.
Gets a value that indicates whether or not the for
this is empty. Note that this value is only used for
the .
Gets a reference to the for this .
Default Constructor. Sets the to (0, 0, 500, 375), and
sets the and values to empty
strings.
Constructor for the object. This routine will
initialize all member variables and classes, setting appropriate default
values as defined in the class.
A rectangular screen area where the graph is to be displayed.
This area can be any size, and can be resize at any time using the
property.
The for this
The for the
The for the
The Copy Constructor
The GraphPane object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
AxisChange causes the axes scale ranges to be recalculated based on the current data range.
There is no obligation to call AxisChange() for manually scaled axes. AxisChange() is only
intended to handle auto scaling operations. Call this function anytime you change, add, or
remove curve data to insure that the scale range of the axes are appropriate for the data range.
This method calculates
a scale minimum, maximum, and step size for each axis based on the current curve data.
Only the axis attributes (min, max, step) that are set to auto-range
(, , )
will be modified. You must call after calling
AxisChange to make sure the display gets updated.
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 overload instead.
AxisChange causes the axes scale ranges to be recalculated based on the current data range.
There is no obligation to call AxisChange() for manually scaled axes. AxisChange() is only
intended to handle auto scaling operations. Call this function anytime you change, add, or
remove curve data to insure that the scale range of the axes are appropriate for the data range.
This method calculates
a scale minimum, maximum, and step size for each axis based on the current curve data.
Only the axis attributes (min, max, step) that are set to auto-range
(, , )
will be modified. You must call
after calling AxisChange to make sure the display gets updated.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Draw all elements in the to the specified graphics device.
This method
should be part of the Paint() update process. Calling this routine will redraw all
features of the graph. No preparation is required other than an instantiated
object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Calculate the based on the .
The ChartRect
is the plot area bounded by the axes, and the rect is the total area as
specified by the client application.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The calculated chart rect, in pixel coordinates.
Calculate the based on the .
The ChartRect
is the plot area bounded by the axes, and the rect is the total area as
specified by the client application.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
The calculated chart rect, in pixel coordinates.
This method will set the property for all three axes;
, , and .
The
is calculated using the currently required space multiplied by a fraction
(bufferFraction).
The currently required space is calculated using , and is
based on current data ranges, font sizes, etc. The "space" is actually the amount of space
required to fit the tic marks, scale labels, and axis title.
The calculation is done by calling the method for
each .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The amount of space to allocate for the axis, expressed
as a fraction of the currently required space. For example, a value of 1.2 would
allow for 20% extra above the currently required space.
If true, then this method will only modify the
property if the calculated result is more than the current value.
Add a curve ( object) to the plot with
the given data points (double arrays) and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
The color to used for the curve line,
symbols, etc.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a curve ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used for the curve line,
symbols, etc.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a curve ( object) to the plot with
the given data points (double arrays) and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
The color to used for the curve line,
symbols, etc.
A symbol type ()
that will be used for this curve.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a curve ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used for the curve line,
symbols, etc.
A symbol type ()
that will be used for this curve.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a stick graph ( object) to the plot with
the given data points (double arrays) and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
The color to used for the curve line,
symbols, etc.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a stick graph ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used for the curve line,
symbols, etc.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a candlestick graph ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
Note that the
should contain objects instead of
objects in order to contain all the data values required for this curve type.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used for the curve line,
symbols, etc.
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a japanesecandlestick graph ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
Note that the
should contain objects instead of
objects in order to contain all the data values required for this curve type.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
A class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add an error bar set ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
An array of double precision values that define the
base value (the bottom) of the bars for this curve.
The color to used for the curve line,
symbols, etc.
An class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add an error bar set ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used for the curve line,
symbols, etc.
An class for the newly created curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a bar type curve ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value pairs that define
the X and Y values for this curve
The color to used to fill the bars
A class for the newly created bar curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a bar type curve ( object) to the plot with
the given data points (double arrays) and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
The color to used for the bars
A class for the newly created bar curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a "High-Low" bar type curve ( object) to the plot with
the given data points (double arrays) and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
An array of double precision X values (the
independent values) that define the curve.
An array of double precision Y values (the
dependent values) that define the curve.
An array of double precision values that define the
base value (the bottom) of the bars for this curve.
The color to used for the bars
A class for the newly created bar curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a hi-low bar type curve ( object) to the plot with
the given data points () and properties.
This is simplified way to add curves without knowledge of the
class. An alternative is to use
the Add() method.
The text label (string) for the curve that will be
used as a entry.
A of double precision value Trio's that define
the X, Y, and lower dependent values for this curve
The color to used to fill the bars
A class for the newly created bar curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
method.
Add a to the display.
The value associated with this item.
The display color for this item.
The amount this item will be
displaced from the center of the .
Text label for this
a reference to the constructed
Add a to the display, providing a gradient fill for the pie color.
The value associated with this instance.
The starting display color for the gradient for this
instance.
The ending display color for the gradient for this
instance.
The angle for the gradient .
The amount this instance will be
displaced from the center point.
Text label for this instance.
Creates all the s for a single Pie Chart.
double array containing all s
for a single PieChart.
string array containing all s
for a single PieChart.
an array containing references to all s comprising
the Pie Chart.
Transform a data point from the specified coordinate type
() to screen coordinates (pixels).
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
The X,Y pair that defines the point in user
coordinates.
A type that defines the
coordinate system in which the X,Y pair is defined.
A point in screen coordinates that corresponds to the
specified user point.
Transform a data point from the specified coordinate type
() to screen coordinates (pixels).
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
Note that this method is more accurate than the
overload, since it uses double types. This would typically only be significant for
coordinates.
The x coordinate that defines the location in user space
The y coordinate that defines the location in user space
A type that defines the
coordinate system in which the X,Y pair is defined.
A point in screen coordinates that corresponds to the
specified user point.
Return the user scale values that correspond to the specified screen
coordinate position (pixels). This overload assumes the default
and .
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
The X,Y pair that defines the screen coordinate
point of interest
The resultant value in user coordinates from the
The resultant value in user coordinates from the
primary
Return the user scale values that correspond to the specified screen
coordinate position (pixels).
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
The X,Y pair that defines the screen coordinate
point of interest
The resultant value in user coordinates from the
The resultant value in user coordinates from the
The resultant value in user coordinates from the
primary
The resultant value in user coordinates from the
primary
Return the user scale values that correspond to the specified screen
coordinate position (pixels).
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
The X,Y pair that defines the screen coordinate
point of interest
true to return data that corresponds to an
, false for an .
true to return data that corresponds to a
, false for a .
The ordinal index of the Y or Y2 axis from which
to return data (see , )
The resultant value in user coordinates from the
The resultant value in user coordinates from the
primary
Return the user scale values that correspond to the specified screen
coordinate position (pixels) for all y axes.
This method implicitly assumes that
has already been calculated via or
methods, or the is
set manually (see ).
The X,Y pair that defines the screen coordinate
point of interest
The resultant value in user coordinates from the
The resultant value in user coordinates from the
An array of resultant values in user coordinates from the
list of instances. This method allocates the
array for you, according to the number of objects
in the list.
An array of resultant values in user coordinates from the
list of instances. This method allocates the
array for you, according to the number of objects
in the list.
Add a secondary (left side) to the list of axes
in the Graph.
Note that the primary is always included by default.
This method turns off the and
and
properties by default.
The title for the .
the ordinal position (index) in the .
Add a secondary (right side) to the list of axes
in the Graph.
Note that the primary is always included by default.
This method turns off the and
and
properties by default.
The title for the .
the ordinal position (index) in the .
Find the object that lies closest to the specified mouse (screen) point.
This method will search through all of the graph objects, such as
, , ,
, and .
If the mouse point is within the bounding box of the items (or in the case
of and , within
pixels), then the object will be returned.
You must check the type of the object to determine what object was
selected (for example, "if ( object is Legend ) ..."). The
parameter returns the index number of the item
within the selected object (such as the point number within a
object.
The screen point, in pixel coordinates.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the nearest object to the
specified screen point. This can be any of ,
, ,
, , or .
Note: If the pane title is selected, then the object
will be returned.
The index number of the item within the selected object
(where applicable). For example, for a object,
will be the index number of the nearest data point,
accessible via CurveItem.Points[index].
index will be -1 if no data points are available.
true if an object was found, false otherwise.
Find the data point that lies closest to the specified mouse (screen)
point for the specified curve.
This method will search only through the points for the specified
curve to determine which point is
nearest the mouse point. It will only consider points that are within
pixels of the screen point.
The screen point, in pixel coordinates.
A reference to the
instance that contains the closest point. nearestCurve will be null if
no data points are available.
A object containing
the data points to be searched.
The index number of the closest point. The
actual data vpoint will then be CurveItem.Points[iNearest]
. iNearest will
be -1 if no data points are available.
true if a point was found and that point lies within
pixels
of the screen point, false otherwise.
Find the data point that lies closest to the specified mouse (screen)
point.
This method will search through all curves in
to find which point is
nearest. It will only consider points that are within
pixels of the screen point.
The screen point, in pixel coordinates.
A reference to the
instance that contains the closest point. nearestCurve will be null if
no data points are available.
The index number of the closest point. The
actual data vpoint will then be CurveItem.Points[iNearest]
. iNearest will
be -1 if no data points are available.
true if a point was found and that point lies within
pixels
of the screen point, false otherwise.
Find the data point that lies closest to the specified mouse (screen)
point.
This method will search through the specified list of curves to find which point is
nearest. It will only consider points that are within
pixels of the screen point, and it will
only consider 's that are in
.
The screen point, in pixel coordinates.
A object containing
a subset of 's to be searched.
A reference to the
instance that contains the closest point. nearestCurve will be null if
no data points are available.
The index number of the closest point. The
actual data vpoint will then be CurveItem.Points[iNearest]
. iNearest will
be -1 if no data points are available.
true if a point was found and that point lies within
pixels
of the screen point, false otherwise.
Search through the and for
items that contain active objects.
The mouse location where the click occurred
An appropriate instance
The current scaling factor for drawing operations.
The clickable object that was found. Typically a type of
or a type of .
The instance that is contained within
the object.
An index value, indicating which point was clicked for
type objects.
returns true if a clickable link was found under the
, or false otherwise.
Find any objects that exist within the specified (screen) rectangle.
This method will search through all of the graph objects, such as
, , ,
, and .
and see if the objects' bounding boxes are within the specified (screen) rectangle
This method returns true if any are found.
Hue-Saturation-Brightness Color class to store a color value, and to manage conversions
to and from RGB colors in the struct.
This class is based on code from http://www.cs.rit.edu/~ncs/color/ by Eugene Vishnevsky.
This struct stores the hue, saturation, brightness, and alpha values internally as
values from 0 to 255. The hue represents a fraction of the 360 degrees
of color space available. The saturation is the color intensity, where 0 represents gray scale
and 255 is the most colored. For the brightness, 0 represents black and 255
represents white.
The color hue value, ranging from 0 to 255.
This property is actually a rescaling of the 360 degrees on the color wheel to 255
possible values. Therefore, every 42.5 units is a new sector, with the following
convention: red=0, yellow=42.5, green=85, cyan=127.5, blue=170, magenta=212.5
The color saturation (intensity) value, ranging from 0 (gray scale) to 255 (most colored).
The brightness value, ranging from 0 (black) to 255 (white).
The alpha value (opacity), ranging from 0 (transparent) to 255 (opaque).
Constructor to load an struct from hue, saturation and
brightness values
The color hue value, ranging from 0 to 255
The color saturation (intensity) value, ranging from 0 (gray scale)
to 255 (most colored)
The brightness value, ranging from 0 (black) to 255 (white)
Constructor to load an struct from hue, saturation,
brightness, and alpha values
The color hue value, ranging from 0 to 255
The color saturation (intensity) value, ranging from 0 (gray scale)
to 255 (most colored)
The brightness value, ranging from 0 (black) to 255 (white)
The alpha value (opacity), ranging from 0 (transparent) to
255 (opaque)
Constructor to load an struct from a system
struct.
An rgb struct containing the equivalent
color you want to generate
Implicit conversion operator to convert directly from an to
a struct.
The struct to be converted
An equivalent struct that can be used in the GDI+
graphics library
Convert an value to an equivalent value.
This method is based on code from http://www.cs.rit.edu/~ncs/color/ by Eugene Vishnevsky.
The struct to be converted
An equivalent struct, compatible with the GDI+ library
Convert this value to an equivalent value.
This method is based on code from http://www.cs.rit.edu/~ncs/color/ by Eugene Vishnevsky.
An equivalent struct, compatible with the GDI+ library
Convert a value to an equivalent value.
This method is based on code from http://www.cs.rit.edu/~ncs/color/ by Eugene Vishnevsky.
An equivalent struct
Convert a value to an equivalent value.
This method is based on code from http://www.cs.rit.edu/~ncs/color/ by Eugene Vishnevsky.
The struct to be converted
An equivalent struct
A class that represents an image object on the graph. A list of
objects is maintained by the
collection class.
John Champion
$Revision: 3.2 $ $Date: 2006-09-09 17:32:01 $
Private field that stores the image. Use the public property
to access this value.
Private field that determines if the image will be scaled to the output rectangle.
true to scale the image, false to draw the image unscaled, but clipped
to the destination rectangle
A simple struct that defines the
default property values for the class.
Default value for the
property.
The object.
A class reference.
Gets or sets a property that determines if the image will be scaled to the
output rectangle (see ).
true to scale the image, false to draw the image unscaled, but clipped
to the destination rectangle
Constructors for the object
A default constructor that places a null at a
default of (0,0,1,1)
A constructor that allows the and
location for the
to be pre-specified.
A class that defines
the image
A struct that defines the
image location, specifed in units based on the
property.
Constructors for the object
A constructor that allows the and
location for the
to be pre-specified.
A class that defines
the image
A struct that defines the
image location, specifed in units based on the
property.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
Constructors for the object
A constructor that allows the and
individual coordinate locations for the
to be pre-specified.
A class that defines
the image
The position of the left side of the rectangle that defines the
location. The units of this position are specified by the
property.
The position of the top side of the rectangle that defines the
location. The units of this position are specified by the
property.
The width of the rectangle that defines the
location. The units of this position are specified by the
property.
The height of the rectangle that defines the
location. The units of this position are specified by the
property.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
. The bounding box is calculated assuming a distance
of pixels around the arrow segment.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
Determines the shape type and Coords values for this GraphObj
An interface to a collection class containing data
that define the set of points to be displayed on the curve.
This interface is designed to allow customized data abstraction. The default data
collection class is , however, you can define your own
data collection class using the interface.
John Champion
$Revision: 1.6 $ $Date: 2007-11-11 07:29:43 $
Indexer to access a data point by its ordinal position in the collection.
This is the standard interface that ZedGraph uses to access the data. Although
you must pass a here, your internal data storage format
can be anything.
The ordinal position (zero-based) of the
data point to be accessed.
A object instance.
Gets the number of points available in the list.
An interface to a collection class containing data
that define the set of points to be displayed on the curve.
This interface is designed to allow customized data abstraction. The default data
collection class is , however, you can define your own
data collection class using the interface. This
interface adds the ability to remove and add points
to the list, and so is used by the class for the
, , and
methods.
John Champion
$Revision: 3.6 $ $Date: 2006-10-19 04:40:14 $
Indexer to access a data point by its ordinal position in the collection.
This is the standard interface that ZedGraph uses to access the data. Although
you must pass a here, your internal data storage format
can be anything.
The ordinal position (zero-based) of the
data point to be accessed.
A object instance.
Appends a point to the end of the list. The data are passed in as a
object.
The object containing the data to be added.
Appends a point to the end of the list. The data are passed in as two
types.
The value containing the X data to be added.
The value containing the Y data to be added.
The ordinal position (zero-based), at which the new point was added.
Removes a single data point from the list at the specified ordinal location
(zero based).
Clears all data points from the list. After calling this method,
will be zero.
This class handles the drawing of the curve objects.
John Champion
$Revision: 3.10 $ $Date: 2007-04-16 00:03:02 $
Private field to store the class to be used for filling the
candlestick "bars" when the value is greater than
the value. See the public property
to access this value.
Private field to store the class to be used for filling the
candlestick "bars" when the value is less than
the value. See the public property
to access this value.
Private field to store the class to be used for drawing the
candlestick "bars" when the value is greater than
the value. See the public property
to access this value.
Private field to store the class to be used for drawing the
candlestick "bars" when the value is less than
the value. See the public property
to access this value.
Private field that stores the CandleStick color when the
value is less than the value. Use the public
property to access this value.
A simple struct that defines the
default property values for the class.
The default fillcolor for drawing the rising case CandleSticks
( property).
The default fillcolor for drawing the falling case CandleSticks
( property).
The default color for the border of the rising CandleSticks
( property).
The default color for the border of the falling CandleSticks
( property).
Gets or sets the class that is used to fill the candlestick
"bars" when the value is greater than the
value.
Gets or sets the class that is used to fill the candlestick
"bars" when the value is less than the
value.
The instance to be used for drawing the border frame of
the candlestick "bars" when the value is greater than the
value.
The instance to be used for drawing the border frame of
the candlestick "bars" when the value is less than the
value.
Gets or sets the data for this
when the value of the candlestick is
falling.
This property only controls the color of
the vertical line when the value is falling. The rising color is controlled
by the property.
Default constructor that sets all properties to
default values as defined in the class.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Draw the to the specified
device at the specified location.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
boolean value that indicates if the "base" axis for this
is the X axis. True for an base,
false for a or base.
The independent axis position of the center of the candlestick in
pixel units
The high value position of the candlestick in
pixel units
The low value position of the candlestick in
pixel units
The opening value position of the candlestick in
pixel units
The closing value position of the candlestick in
pixel units
The scaled width of one-half of a bar, in pixels
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
A pen with the attribute for this
The instance to be used for filling this
The instance to be used for drawing the
border around the filled box
The to be used for determining the
, just in case it's a ,
, or
Draw all the 's to the specified
device as a candlestick at each defined point.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A object representing the
's to be drawn.
The class instance that defines the base (independent)
axis for the
The class instance that defines the value (dependent)
axis for the
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Encapsulates a Japanese CandleStick curve type that displays a vertical (or horizontal)
line displaying the range of data values at each sample point, plus a filled bar
signifying the opening and closing value for the sample.
For this type to work properly, your must contain
objects, rather than ordinary types.
This is because the type actually displays 5 data values
but the only stores 3 data values. The
stores , ,
, , and
members.
For a JapaneseCandleStick chart, the range between opening and closing values
is drawn as a filled bar, with the filled color different
() for the case of
higher than , and
for the reverse. The width of the bar is controlled
by the property, which is specified in
points (1/72nd inch), and scaled according to .
The candlesticks are drawn horizontally or vertically depending on the
value of , which is a
enum type.
John Champion
$Revision: 3.6 $ $Date: 2007-12-31 00:23:05 $
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Gets a reference to the class defined
for this .
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
IsZIncluded is true for objects, since the Y and Z
values are defined as the High and Low values for the day.
The parent of this .
true if the Z data are included, false otherwise
Create a new , specifying only the legend label.
The label that will appear in the legend.
Create a new using the specified properties.
The label that will appear in the legend.
An of double precision values that define
the Date, Close, Open, High, and Low values for the curve. Note that this
should contain items rather
than items.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Class that handles the data associated with text title and its associated font
properties
John Champion
$Revision: 3.2 $ $Date: 2007-03-11 02:08:16 $
private field that stores the text for this label
private field that stores the font properties for this label
private field that determines if this label will be displayed.
Constructor to build an from the text and the
associated font properties.
The representing the text to be
displayed
The font family name
The size of the font in points and scaled according
to the logic.
The instance representing the color
of the font
true for a bold font face
true for an italic font face
true for an underline font face
Constructor that builds a from a text
and a instance.
Copy constructor
the instance to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
The text to be displayed
A instance representing the font properties
for the displayed text.
Gets or sets a boolean value that determines whether or not this label will be displayed.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
This class encapsulates the chart that is displayed
in the
John Champion
$Revision: 3.41 $ $Date: 2007-08-11 19:24:55 $
Private field to hold the bounding rectangle around the legend.
This bounding rectangle varies with the number of legend entries, font sizes,
etc., and is re-calculated by at each redraw.
Use the public readonly property to access this
rectangle.
Private field to hold the legend location setting. This field
contains the enum type to specify the area of
the graph where the legend will be positioned. Use the public property
to access this value.
Private field to enable/disable horizontal stacking of the legend entries.
If this value is false, then the legend entries will always be a single column.
Use the public property to access this value.
Private field to enable/disable drawing of the entire legend.
If this value is false, then the legend will not be drawn.
Use the public property to access this value.
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the data for this
. Use the public property to
access this value.
Private field to maintain the class that
maintains font attributes for the entries in this legend. Use
the property to access this class.
Private field to maintain the location. This object
is only applicable if the property is set to
.
Private temporary field to maintain the number of columns (horizontal stacking) to be used
for drawing the . This value is only valid during a draw operation.
Private temporary field to maintain the width of each column in the
. This value is only valid during a draw operation.
Private temporary field to maintain the height of each row in the
. This value is only valid during a draw operation.
Private field to store the gap between the legend and the chart rectangle.
Private field to select output order of legend entries.
Private temporary field to maintain the characteristic "gap" for the legend.
This is normal the height of the largest font in the legend.
This value is only valid during a draw operation.
Private field to enable/diable drawing the line and symbol samples in the
legend.
A simple struct that defines the
default property values for the class.
The default pen width for the border border.
( property). Units are in pixels.
The default color for the border border.
( property).
The default color for the background.
( property). Use of this
color depends on the status of the
property.
The default custom brush for filling in this .
The default fill mode for the background.
The default location for the on the graph
( property). This property is
defined as a enumeration.
The default border mode for the .
( property). true
to draw a border around the ,
false otherwise.
The default display mode for the .
( property). true
to show the legend,
false to hide it.
The default fill mode for the background
( property).
true to fill-in the background with color,
false to leave the background transparent.
The default horizontal stacking mode for the
( property).
true to allow horizontal legend item stacking, false to allow
only vertical legend orientation.
The default font family for the entries
( property).
The default font size for the entries
( property). Units are
in points (1/72 inch).
The default font color for the entries
( property).
The default font bold mode for the entries
( property). true
for a bold typeface, false otherwise.
The default font italic mode for the entries
( property). true
for an italic typeface, false otherwise.
The default font underline mode for the entries
( property). true
for an underlined typeface, false otherwise.
The default color for filling in the scale text background
(see property).
The default custom brush for filling in the scale text background
(see property).
The default fill mode for filling in the scale text background
(see property).
The default gap size between the legend and the .
This is the default value of .
Default value for the property.
Default value for the property.
Get the bounding rectangle for the in screen coordinates
A screen rectangle in pixel units
Access to the class used to render
the entries
A reference to a object
Gets or sets a property that shows or hides the entirely
true to show the , false to hide it
The class used to draw the border border around this .
Gets or sets the data for this
background.
Sets or gets a property that allows the items to
stack horizontally in addition to the vertical stacking
true to allow horizontal stacking, false otherwise
Sets or gets the location of the on the
using the enum type
Gets or sets the data for the .
This property is only applicable if is set
to .
Gets or sets the gap size between the legend and the .
This is expressed as a fraction of the largest scaled character height for any
of the fonts used in the legend. Each in the legend can
optionally have its own specification.
Gets or sets a value that determines if the legend entries are displayed in normal order
(matching the order in the , or in reverse order.
Gets or sets a value that determines whether the line and symbol keys will be displayed
in the legend.
Note: If this value is set to false (so that only the curve label text is displayed
with no legend keys), then the color of the font for the legend entry of each curve
will automatically be set to match the setting for that curve.
You can override this behavior by specifying a specific font to be used for each
individual curve with the CurveItem.Label.FontSpec
property.
Default constructor that sets all properties to default
values as defined in the class.
The Copy Constructor
The XAxis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render the to the specified device.
This method is normally only called by the Draw method
of the parent object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if a mouse point is within the legend, and if so, which legend
entry () is nearest.
The screen point, in pixel coordinates.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The index number of the legend
entry that is under the mouse point. The object is
accessible via CurveList[index].
true if the mouse point is within the bounding
box, false otherwise.
Calculate the rectangle (),
taking into account the number of required legend
entries, and the legend drawing preferences.
Adjust the size of the
for the parent to accomodate the
space required by the legend.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The rectangle that contains the area bounded by the axes, in pixel units.
A class representing all the characteristics of the Line
segments that make up a curve on the graph.
John Champion
$Revision: 3.50 $ $Date: 2007-12-30 23:27:39 $
Private field that stores the smoothing flag for this
. Use the public
property to access this value.
Private field that stores the smoothing tension
for this . Use the public property
to access this value.
A floating point value indicating the level of smoothing.
0.0F for no smoothing, 1.0F for lots of smoothing, >1.0 for odd
smoothing.
Private field that stores the for this
. Use the public
property to access this value.
Private field that stores the data for this
. Use the public property to
access this value.
Private field that determines if this will be drawn with
optimizations enabled. Use the public
property to access this value.
A simple struct that defines the
default property values for the class.
The default color for curves (line segments connecting the points).
This is the default value for the property.
The default color for filling in the area under the curve
( property).
The default custom brush for filling in the area under the curve
( property).
The default fill mode for the curve ( property).
The default value for the
property.
The default value for the property.
The default value for the property.
Default value for the curve type property
(). This determines if the curve
will be drawn by directly connecting the points from the
data collection,
or if the curve will be a "stair-step" in which the points are
connected by a series of horizontal and vertical lines that
represent discrete, staticant values. Note that the values can
be forward oriented ForwardStep
() or
rearward oriented RearwardStep
.
That is, the points are defined at the beginning or end
of the staticant value for which they apply, respectively.
enum value
Gets or sets a property that determines if this
will be drawn smooth. The "smoothness" is controlled by
the property.
true to smooth the line, false to just connect the dots
with linear segments
Gets or sets a property that determines the smoothing tension
for this . This property is only used if
is true. A tension value 0.0 will just
draw ordinary line segments like an unsmoothed line. A tension
value of 1.0 will be smooth. Values greater than 1.0 will generally
give odd results.
A floating point value indicating the level of smoothing.
0.0F for no smoothing, 1.0F for lots of smoothing, >1.0 for odd
smoothing.
Determines if the will be drawn by directly connecting the
points from the data collection,
or if the curve will be a "stair-step" in which the points are
connected by a series of horizontal and vertical lines that
represent discrete, constant values. Note that the values can
be forward oriented ForwardStep () or
rearward oriented RearwardStep.
That is, the points are defined at the beginning or end
of the constant value for which they apply, respectively.
The property is ignored for lines
that have set to true.
enum value
Gets or sets the data for this
.
Gets or sets a boolean value that determines if this will be drawn with
optimizations enabled.
Normally, the optimizations can be used without a problem, especially if the data
are sorted. The optimizations are particularly helpful with very large datasets.
However, if the data are very discontinuous (for example, a curve that doubles back
on itself), then the optimizations can cause drawing artifacts in the form of
missing line segments. The default option for this mode is false, so you must
explicitly enable it for each LineItem.Line.
Also note that, even if the optimizations are enabled explicitly, no actual
optimization will be done for datasets of less than 1000 points.
Default constructor that sets all properties to default
values as defined in the class.
Constructor that sets the color property to the specified value, and sets
the remaining properties to default
values as defined in the class.
The color to assign to this new Line object
The Copy Constructor
The Line object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
Render a single segment to the specified
device.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The x position of the starting point that defines the
line segment in screen pixel units
The y position of the starting point that defines the
line segment in screen pixel units
The x position of the ending point that defines the
line segment in screen pixel units
The y position of the ending point that defines the
line segment in screen pixel units
Render the 's as vertical sticks (from a ) to
the specified device.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw the this to the specified
device using the specified smoothing property ().
The routine draws the line segments and the area fill (if any, see ;
the symbols are drawn by the method. This method
is normally only called by the Draw method of the
object. Note that the property
is ignored for smooth lines (e.g., when is true).
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
Draw the this to the specified
device. The format (stair-step or line) of the curve is
defined by the property. The routine
only draws the line segments; the symbols are drawn by the
method. This method
is normally only called by the Draw method of the
object
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
Draw the this to the specified
device. The format (stair-step or line) of the curve is
defined by the property. The routine
only draws the line segments; the symbols are drawn by the
method. This method
is normally only called by the Draw method of the
object
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
This method just handles the case where one or more of the coordinates are outrageous,
or GDI+ threw an exception. This method attempts to correct the outrageous coordinates by
interpolating them to a point (along the original line) that lies at the edge of the ChartRect
so that GDI+ will handle it properly. GDI+ will throw an exception, or just plot the data
incorrectly if the coordinates are too large (empirically, this appears to be when the
coordinate value is greater than 5,000,000 or less than -5,000,000). Although you typically
would not see coordinates like this, if you repeatedly zoom in on a ZedGraphControl, eventually
all your points will be way outside the bounds of the plot.
Build an array of values (pixel coordinates) that represents
the current curve. Note that this drawing routine ignores
values, but it does not "break" the line to indicate values are missing.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
An array of values in pixel
coordinates representing the current curve.
The number of points contained in the "arrPoints"
parameter.
true for a successful points array build, false for data problems
Build an array of values (pixel coordinates) that represents
the low values for the current curve.
Note that this drawing routine ignores
values, but it does not "break" the line to indicate values are missing.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
An array of values in pixel
coordinates representing the current curve.
The number of points contained in the "arrPoints"
parameter.
true for a successful points array build, false for data problems
Close off a that defines a curve
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
An array of values in screen pixel
coordinates representing the current curve.
The number of points contained in the "arrPoints"
parameter.
The Y axis value location where the X axis crosses.
The class that represents the curve.
The LinearAsOrdinalScale class inherits from the class, and implements
the features specific to .
LinearAsOrdinal is an ordinal axis that will have labels formatted with values from the actual data
values of the first in the .
Although the tics are labeled with real data values, the actual points will be
evenly-spaced in spite of the data values. For example, if the X values of the first curve
are 1, 5, and 100, then the tic labels will show 1, 5, and 100, but they will be equal
distance from each other.
John Champion
$Revision: 1.10 $ $Date: 2007-04-16 00:03:02 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Select a reasonable ordinal axis scale given a range of data values, with the expectation that
linear values will be displayed.
This method only applies to type axes, and it
is called by the general method. For this type,
the first curve is the "master", which contains the dates to be applied.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
The LinearScale class inherits from the class, and implements
the features specific to .
LinearScale is the normal, default cartesian axis.
John Champion
$Revision: 1.10 $ $Date: 2007-04-16 00:03:02 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Select a reasonable linear axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. The scale range is chosen
based on increments of 1, 2, or 5 (because they are even divisors of 10). This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. The basic defaults for
scale selection are defined using ,
, and
from the default class.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A class that handles the basic attributes of a line segment.
This is the base class for and classes.
John Champion
$Revision: 3.2 $ $Date: 2007-03-17 18:43:44 $
Private field that stores the pen width for this line.
Use the public property to access this value.
Private field that stores the for this
line. Use the public
property to access this value.
private field that stores the "Dash On" length for drawing the line. Use the
public property to access this value.
private field that stores the "Dash Off" length for drawing the line. Use the
public property to access this value.
Private field that stores the visibility of this line. Use the public
property to access this value.
private field that determines if the line is drawn using
Anti-Aliasing capabilities from the class.
Use the public property to access
this value.
Private field that stores the color of this line. Use the public
property to access this value. If this value is
false, the line will not be shown (but the may
still be shown).
Internal field that stores a custom class. This
fill is used strictly for ,
, ,
and calculations to determine
the color of the line.
A simple struct that defines the
default property values for the class.
The default mode for displaying line segments (
property). True to show the line segments, false to hide them.
The default width for line segments ( property).
Units are points (1/72 inch).
The default value for the
property.
The default drawing style for line segments ( property).
This is defined with the enumeration.
The default "dash on" size for drawing the line
( property). Units are in points (1/72 inch).
The default "dash off" size for drawing the the line
( property). Units are in points (1/72 inch).
The default color for the line.
This is the default value for the property.
The color of the . Note that this color value can be
overridden if the GradientFill.Type is one of the
,
, ,
and types.
The style of the , defined as a enum.
This allows the line to be solid, dashed, or dotted.
The "Dash On" mode for drawing the line.
This is the distance, in points (1/72 inch), of the dash segments that make up
the dashed grid lines. This setting is only valid if
is set to .
The dash on length is defined in points (1/72 inch)
.
The "Dash Off" mode for drawing the line.
This is the distance, in points (1/72 inch), of the spaces between the dash
segments that make up the dashed grid lines. This setting is only valid if
is set to .
The dash off length is defined in points (1/72 inch)
.
The pen width used to draw the , in points (1/72 inch)
Gets or sets a property that shows or hides the .
true to show the line, false to hide it
Gets or sets a value that determines if the lines are drawn using
Anti-Aliasing capabilities from the class.
If this value is set to true, then the
property will be set to only while
this is drawn. A value of false will leave the value of
unchanged.
Gets or sets a custom class.
This fill is used strictly for ,
, ,
and calculations to determine
the color of the line. It overrides the property if
one of the above values are selected.
Default constructor that sets all properties to default
values as defined in the class.
Constructor that sets the color property to the specified value, and sets
the remaining properties to default
values as defined in the class.
The color to assign to this new Line object
The Copy Constructor
The LineBase object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of Clone.
Note that this method must be called with an explicit cast to ICloneable, and
that it is inherently virtual. For example:
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with
ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation
of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.
A deep copy of this object
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the
serialized data
A instance that contains
the serialized data
Populates a instance with the data needed to serialize
the target object
A instance that defines the
serialized data
A instance that contains the
serialized data
Create a object based on the properties of this
.
The owner of this
.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
A object with the properties of this
Create a object based on the properties of this
.
The owner of this
.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The data value to be used for a value-based
color gradient. This is only applicable if GradientFill.Type
is one of ,
, ,
or .
A object with the properties of this
Encapsulates a curve type that is displayed as a line and/or a set of
symbols at each point.
John Champion
$Revision: 3.22 $ $Date: 2007-08-10 16:22:54 $
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Private field that stores a reference to the
class defined for this . Use the public
property to access this value.
Gets or sets the class instance defined
for this .
Gets or sets the class instance defined
for this .
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Create a new , specifying only the legend .
The _label that will appear in the legend.
Create a new using the specified properties.
The _label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
A value that will be applied to
the and properties.
A enum specifying the
type of symbol to use for this . Use
to hide the symbols.
The width (in points) to be used for the . This
width is scaled based on . Use a value of zero to
hide the line (see ).
Create a new using the specified properties.
The _label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
A value that will be applied to
the and properties.
A enum specifying the
type of symbol to use for this . Use
to hide the symbols.
Create a new using the specified properties.
The _label that will appear in the legend.
A of double precision value pairs that define
the X and Y values for this curve
A value that will be applied to
the and properties.
A enum specifying the
type of symbol to use for this . Use
to hide the symbols.
The width (in points) to be used for the . This
width is scaled based on . Use a value of zero to
hide the line (see ).
Create a new using the specified properties.
The _label that will appear in the legend.
A of double precision value pairs that define
the X and Y values for this curve
A value that will be applied to
the and properties.
A enum specifying the
type of symbol to use for this . Use
to hide the symbols.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The ordinal position of the current
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Loads some pseudo unique colors/symbols into this LineItem. This
is mainly useful for differentiating a set of new LineItems without
having to pick your own colors/symbols.
The that is used to pick the color
and symbol for this method call.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
A class that represents a line segment object on the graph. A list of
GraphObj objects is maintained by the collection class.
This should not be confused with the class, which represents
a set of points plotted together as a "curve". The class is
a single line segment, drawn as a "decoration" on the chart.
John Champion
$Revision: 3.4 $ $Date: 2007-01-25 07:56:09 $
protected field that maintains the attributes of the line using an
instance of the class.
A class that contains the attributes for drawing this
.
Constructors for the object
A constructor that allows the position, color, and size of the
to be pre-specified.
An arbitrary specification
for the arrow
The x position of the starting point that defines the
line. The units of this position are specified by the
property.
The y position of the starting point that defines the
line. The units of this position are specified by the
property.
The x position of the ending point that defines the
line. The units of this position are specified by the
property.
The y position of the ending point that defines the
line. The units of this position are specified by the
property.
A constructor that allows only the position of the
line to be pre-specified. All other properties are set to
default values
The x position of the starting point that defines the
. The units of this position are specified by the
property.
The y position of the starting point that defines the
. The units of this position are specified by the
property.
The x position of the ending point that defines the
. The units of this position are specified by the
property.
The y position of the ending point that defines the
. The units of this position are specified by the
property.
Default constructor -- places the at location
(0,0) to (1,1). All other values are defaulted.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
.
The bounding box is calculated assuming a distance
of pixels around the arrow segment.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
Determines the shape type and Coords values for this GraphObj
A class that maintains hyperlink information for a clickable object on the graph.
John Champion
$Revision: 3.6 $ $Date: 2007-04-16 00:03:02 $
Internal field that stores the title string for this link.
Internal field that stores the url string for this link
Internal field that stores the target string for this link
Internal field that determines if this link is "live".
Gets or sets the title string for this link.
For web controls, this title will be shown as a tooltip when the mouse
hovers over the area of the object that owns this link. Set the value to
to have no title.
Gets or sets the url string for this link.
Set this value to if you don't want to have
a hyperlink associated with the object to which this link belongs.
Gets or sets the target string for this link.
This value should be set to a valid target associated with the "Target"
property of an html hyperlink. Typically, this would be "_blank" to open
a new browser window, or "_self" to open in the current browser.
A tag object for use by the user. This can be used to store additional
information associated with the . ZedGraph does
not use this value for any purpose.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Gets or sets a property that determines if this link is active. True to have
a clickable link, false to ignore the link.
Gets a value that indicates if this is enabled
(see ), and that either the
or the is non-null.
Default constructor. Set all properties to string.Empty, or null.
Construct a Link instance from a specified title, url, and target.
The title for the link (which shows up in the tooltip).
The URL destination for the link.
The target for the link (typically "_blank" or "_self").
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Create a URL for a that includes the index of the
point that was selected.
An "index" parameter is added to the property for this
link to indicate which point was selected. Further, if the
X or Y axes that correspond to this are of
, then an
additional parameter will be added containing the text value that
corresponds to the of the selected point.
The text parameter will be labeled "xtext", and
the text parameter will be labeled "ytext".
The zero-based index of the selected point
The of interest
The for which to
make the url string.
A string containing the url with an index parameter added.
Current schema value that defines the version of the serialized file
schema started with 10 for ZedGraph version 5
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A class than contains information about the position of an object on the graph.
John Champion
$Revision: 3.14 $ $Date: 2006-06-24 20:26:43 $
Private field to store the vertical alignment property for
this object. Use the public property
to access this value. The value of this field is a enum.
Private field to store the horizontal alignment property for
this object. Use the public property
to access this value. The value of this field is a enum.
Private fields to store the X and Y coordinate positions for
this object. Use the public properties and
to access these values. The coordinate type stored here is
dependent upon the setting of .
Private fields to store the X and Y coordinate positions for
this object. Use the public properties and
to access these values. The coordinate type stored here is
dependent upon the setting of .
Private fields to store the X and Y coordinate positions for
this object. Use the public properties and
to access these values. The coordinate type stored here is
dependent upon the setting of .
Private fields to store the X and Y coordinate positions for
this object. Use the public properties and
to access these values. The coordinate type stored here is
dependent upon the setting of .
Private field to store the coordinate system to be used for defining the
object position. Use the public property
to access this value. The coordinate system
is defined with the enum.
A horizontal alignment parameter for this object specified
using the enum type.
A vertical alignment parameter for this object specified
using the enum type.
The coordinate system to be used for defining the object position
The coordinate system is defined with the
enum
The x position of the object.
The units of this position
are specified by the property.
The object will be aligned to this position based on the
property.
The y position of the object.
The units of this position
are specified by the property.
The object will be aligned to this position based on the
property.
The x1 position of the object (an alias for the x position).
The units of this position
are specified by the property.
The object will be aligned to this position based on the
property.
The y1 position of the object (an alias for the y position).
The units of this position
are specified by the property.
The object will be aligned to this position based on the
property.
The width of the object.
The units of this position are specified by the
property.
The height of the object.
The units of this position are specified by the
property.
The x2 position of the object.
The units of this position are specified by the
property.
The object will be aligned to this position based on the
property. This position is only used for
objects such as , where it makes sense
to have a second coordinate. Note that the X2 position is stored
internally as a offset from .
The y2 position of the object.
The units of this position
are specified by the property.
The object will be aligned to this position based on the
property. This position is only used for
objects such as , where it makes sense
to have a second coordinate. Note that the Y2 position is stored
internally as a offset from .
The for this object as defined by the
, , , and
properties.
Note that this method reduces the precision of the location coordinates from double
precision to single precision. In some cases, such as , it
may affect the resolution of the point location.
A in
units.
The top-left for this .
Note that this method reduces the precision of the location coordinates from double
precision to single precision. In some cases, such as , it
may affect the resolution of the point location.
A in units.
The bottom-right for this .
Note that this method reduces the precision of the location coordinates from double
precision to single precision. In some cases, such as , it
may affect the resolution of the point location.
A in units.
Default constructor for the class.
Constructor for the class that specifies the
x, y position and the .
The (x,y) position corresponds to the top-left corner;
The x position, specified in units of .
The y position, specified in units of .
The enum that specifies the
units for and
Constructor for the class that specifies the
x, y position and the .
The (x,y) position corresponds to the top-left corner;
The x position, specified in units of .
The y position, specified in units of .
The enum that specifies the
units for and
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
Constructor for the class that specifies the
(x, y), (width, height), and the .
The (x,y) position
corresponds to the starting position, the (x2, y2) coorresponds to the ending position
(typically used for 's).
The x position, specified in units of .
The y position, specified in units of .
The width, specified in units of .
The height, specified in units of .
The enum that specifies the
units for and
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Transform this object to display device
coordinates using the properties of the specified .
A reference to the object that contains
the classes which will be used for the transform.
A point in display device coordinates that corresponds to the
specified user point.
Transform a data point from the specified coordinate type
() to display device coordinates (pixels).
If is not of type , then
only the transformation is available.
A reference to the object that contains
the classes which will be used for the transform.
The x coordinate that defines the point in user
space.
The y coordinate that defines the point in user
space.
A type that defines the
coordinate system in which the X,Y pair is defined.
A point in display device coordinates that corresponds to the
specified user point.
Transform this from the coordinate system
as specified by to the device coordinates
of the specified object.
The returned
struct represents the top-left corner of the
object that honors the properties.
The and properties are honored in
this transformation.
A reference to the object that contains
the classes which will be used for the transform.
The width of the object in device pixels
The height of the object in device pixels
The top-left corner of the object
The for this object as defined by the
and
properties.
This method transforms the location to output device pixel units.
The and properties are ignored for
this transformation (see ).
A in pixel units.
The for this object as defined by the
and properties.
This method transforms the location to output device pixel units.
The and properties are ignored for
this transformation (see ).
A in pixel units.
Transform the for this object as defined by the
, , , and
properties.
This method transforms the location to output device pixel units.
The and properties are honored in
this transformation.
A in pixel units.
The LogScale class inherits from the class, and implements
the features specific to .
LogScale is a non-linear axis in which the values are scaled using the base 10
function.
John Champion
$Revision: 1.12 $ $Date: 2007-04-16 00:03:02 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Gets or sets the minimum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the setting to values greater than zero.
Gets or sets the maximum value for this scale.
The set property is specifically adapted for scales,
in that it automatically limits the setting to values greater than zero.
struct.
Setup some temporary transform values in preparation for rendering the .
This method is typically called by the parent
object as part of the method. It is also
called by and
methods to setup for coordinate transformations.
A reference to the object that is the parent or
owner of this object.
The parent for this
Convert a value to its linear equivalent for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the log or power equivalent.
The value to be converted
Convert a value from its linear equivalent to its actual scale value
for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the anti-log or inverse-power equivalent.
The value to be converted
Determine the value for any major tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double)
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified major tic value (floating point double).
Determine the value for any minor tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double). This tic value is the base
reference for all tics (including minor ones).
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified minor tic value (floating point double).
Internal routine to determine the ordinals of the first minor tic mark
The value of the first major tic for the axis.
The ordinal position of the first minor tic, relative to the first major tic.
This value can be negative (e.g., -3 means the first minor tic is 3 minor step
increments before the first major tic.
Determine the value for the first major tic.
This is done by finding the first possible value that is an integral multiple of
the step size, taking into account the date/time units if appropriate.
This method properly accounts for , ,
and other axis format settings.
First major tic value (floating point double).
Internal routine to determine the ordinals of the first and last major axis label.
This is the total number of major tics for this axis.
Select a reasonable base 10 logarithmic axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. The scale range is chosen
based always on powers of 10 (full log cycles). This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. For log axes, the MinorStep
value is not used.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Class that handles the data associated with the major grid lines on the chart.
Inherits from .
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default constructor
Copy constructor
The source to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets a boolean value that determines if a line will be drawn at the
zero value for the axis.
The zero line is a line that divides the negative values from the positive values.
The default is set according to
, ,
,
true to show the zero line, false otherwise
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default "dash on" size for drawing the grid
( property). Units are in points (1/72 inch).
The default "dash off" size for drawing the grid
( property). Units are in points (1/72 inch).
The default pen width for drawing the grid
( property). Units are in points (1/72 inch).
The default color for the grid lines
( property). This color only affects the
grid lines.
The default display mode for the grid lines
( property). true
to show the grid lines, false to hide them.
The default boolean value that determines if a line will be drawn at the
zero value for the axis.
The zero line is a line that divides the negative values from the positive values.
The default is set according to
, ,
,
true to show the zero line, false otherwise
Class that holds the specific properties for the major tics. Inherits from
.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default constructor for .
Copy constructor.
The that is to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets a property that determines whether or not the major tics will be drawn
inbetween the labels, rather than right at the labels.
Note that this setting is only
applicable if = .
true to place the text between the labels for text axes, false otherwise
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default size for the tic marks.
( property). Units are in points (1/72 inch).
The default pen width for drawing the tic marks.
( property). Units are in points (1/72 inch).
The display mode for the major outside tic marks
( property).
The major tic spacing is controlled by .
true to show the major tic marks (outside the axis),
false otherwise
The display mode for the major inside tic marks
( property).
The major tic spacing is controlled by .
true to show the major tic marks (inside the axis),
false otherwise
The display mode for the major opposite tic marks
( property).
The major tic spacing is controlled by .
true to show the major tic marks
(inside the axis on the opposite side),
false otherwise
The default display mode for the major outside
"cross" tic marks ( property).
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The major tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
The default display mode for the major inside
"cross" tic marks ( property).
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The major tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
The default color for major tics ( property).
Class that handles that stores the margin properties for the GraphPane
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Private fields that store the size of the margin around the edge of the pane which will be
kept blank. Use the public properties , ,
, to access these values.
Units are points (1/72 inch)
Private fields that store the size of the margin around the edge of the pane which will be
kept blank. Use the public properties , ,
, to access these values.
Units are points (1/72 inch)
Private fields that store the size of the margin around the edge of the pane which will be
kept blank. Use the public properties , ,
, to access these values.
Units are points (1/72 inch)
Private fields that store the size of the margin around the edge of the pane which will be
kept blank. Use the public properties , ,
, to access these values.
Units are points (1/72 inch)
Constructor to build a from the default values.
Copy constructor
the instance to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets a float value that determines the margin area between the left edge of the
rectangle and the features of the graph.
This value is in units of points (1/72 inch), and is scaled
linearly with the graph size.
Gets or sets a float value that determines the margin area between the right edge of the
rectangle and the features of the graph.
This value is in units of points (1/72 inch), and is scaled
linearly with the graph size.
Gets or sets a float value that determines the margin area between the top edge of the
rectangle and the features of the graph.
This value is in units of points (1/72 inch), and is scaled
linearly with the graph size.
Gets or sets a float value that determines the margin area between the bottom edge of the
rectangle and the features of the graph.
This value is in units of points (1/72 inch), and is scaled
linearly with the graph size.
Concurrently sets all outer margin values to a single value.
This value is in units of points (1/72 inch), and is scaled
linearly with the graph size.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the default property values for the class.
The default value for the property, which is
the size of the space on the left side of the .
Units are points (1/72 inch)
The default value for the property, which is
the size of the space on the right side of the .
Units are points (1/72 inch)
The default value for the property, which is
the size of the space on the top side of the .
Units are points (1/72 inch)
The default value for the property, which is
the size of the space on the bottom side of the .
Units are points (1/72 inch)
A collection class containing a list of objects
organized together in some form.
John Champion
$Revision: 3.26 $ $Date: 2007-11-05 18:28:56 $
Private field that holds a collection of objects for inclusion
in this . Use the public property
to access this collection.
Private field that sets the amount of space between the GraphPanes. Use the public property
to access this value;
Private field that stores a boolean value which signifies whether all
s in the chart use the same entries in their
If set to true, only one set of entries will be displayed in
this instance. If set to false, this instance will display all
entries from all s.
private field that determines if the
function will automatically set
the of each in the
such that the scale factors have the same value.
private field that saves the paneLayout format specified when
was called. This value will
default to if
(or an overload) was never called.
Private field that stores the boolean value that determines whether
is specifying rows or columns.
private field that stores the row/column item count that was specified to the
method. This values will be
null if was never called.
private field that stores the row/column size proportional values as specified
to the method. This
value will be null if
was never called.
private field that determines if anti-aliased drawing will be forced on. Use the
public property to access this value.
A simple struct that defines the
default property values for the class.
The default pane layout for
method calls.
The default value for the property.
This is the size of the margin between adjacent
objects, in units of points (1/72 inch).
The default value for the property for
the class.
The default value for the property.
The default value for the property.
Gets or sets the collection instance that holds the list of
objects that are included in this .
Gets or sets the size of the margin between adjacent
objects.
This property is scaled according to ,
based on . The default value comes from
.
The value is in points (1/72nd inch).
Gets or set the value of the
Gets or sets a value that determines if the
method will automatically set the
of each in the such that the
scale factors have the same value.
The scale factors, calculated by , determine
scaled font sizes, tic lengths, etc. This function will insure that for
multiple graphpanes, a certain specified font size will be the same for
all the panes.
Gets or sets a value that determines if all drawing operations for this
will be forced to operate in Anti-alias mode.
Note that if this value is set to "true", it overrides the setting for sub-objects.
Otherwise, the sub-object settings (such as )
will be honored.
Default constructor for the class. Sets the to (0, 0, 500, 375).
Default constructor for the class. Specifies the of
the , and the size of the .
The Copy Constructor - Make a deep-copy clone of this class instance.
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of to make a deep copy.
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Respond to the callback when the MasterPane objects are fully initialized.
Indexer to access the specified object from
by its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
Indexer to access the specified object from
by its string.
The string title of the
object to be accessed.
A object reference.
Add a object to the collection at the end of the list.
A reference to the object to
be added
Call for all objects in the
list.
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 overload instead.
Call for all objects in the
list.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Redo the layout using the current size of the ,
and also handle resizing the
contents by calling .
This method will use the pane layout that was specified by a call to
. If
has not previously been called,
it will default to .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Change the size of the , and also handle resizing the
contents by calling .
This method will use the pane layout that was specified by a call to
. If
has not previously been called,
it will default to .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Method that forces the scale factor calculations
(via ),
to give a common scale factor for all objects in the
.
This will make it such that a given font size will result in the same output font
size for all 's. Note that this does not make the scale
factor for the 's the same as that of the
.
Render all the objects in the to the
specified graphics device.
This method should be part of the Paint() update process. Calling this routine
will redraw all
features of all the items. No preparation is required other than
instantiated objects that have been added to the list with the
method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Find the pane and the object within that pane that lies closest to the specified
mouse (screen) point.
This method first finds the within the list that contains
the specified mouse point. It then calls the
method to determine which object, if any, was clicked. With the exception of the
, all the parameters in this method are identical to those
in the method.
If the mouse point lies within the of any
item, then that pane will be returned (otherwise it will be
null). Further, within the selected pane, if the mouse point is within the
bounding box of any of the items (or in the case
of and , within
pixels), then the object will be returned.
You must check the type of the object to determine what object was
selected (for example, "if ( object is Legend ) ..."). The
parameter returns the index number of the item
within the selected object (such as the point number within a
object.
The screen point, in pixel coordinates.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that was clicked.
A reference to the nearest object to the
specified screen point. This can be any of ,
, ,
, , or .
Note: If the pane title is selected, then the object
will be returned.
The index number of the item within the selected object
(where applicable). For example, for a object,
will be the index number of the nearest data point,
accessible via CurveItem.Points[index].
index will be -1 if no data points are available.
true if a was found, false otherwise.
Find the within the that contains the
within its .
The mouse point location where you want to search
A object that contains the mouse point, or
null if no was found.
Find the within the that contains the
within its .
The mouse point location where you want to search
A object that contains the mouse point, or
null if no was found.
The SetLayout() methods setup the desired layout of the
objects within a . These functions
do not make any changes, they merely set the parameters so that future calls
to or
will use the desired layout.
The layout options include a set of "canned" layouts provided by the
enumeration, options to just set a specific
number of rows and columns of panes (and all pane sizes are the same), and more
customized options of specifying the number or rows in each column or the number of
columns in each row, along with proportional values that determine the size of each
individual column or row.
Automatically set all of the 's in
the list to a pre-defined layout configuration from a
enumeration.
This method uses a enumeration to describe the type of layout
to be used. Overloads are available that provide other layout options
A enumeration that describes how
the panes should be laid out within the .
A graphic device object to be drawn into. This is normally created with a call to
the CreateGraphics() method of the Control or Form.
Automatically set all of the 's in
the list to a reasonable configuration.
This method explicitly specifies the number of rows and columns to use
in the layout, and all objects will have the same size.
Overloads are available that provide other layout options
A graphic device object to be drawn into. This is normally created with a call to
the CreateGraphics() method of the Control or Form.
The number of rows of objects
to include in the layout
The number of columns of objects
to include in the layout
Automatically set all of the 's in
the list to the specified configuration.
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.
A graphic device object to be drawn into. This is normally created with a call to
the CreateGraphics() method of the Control or Form.
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 .
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
.
Automatically set all of the 's in
the list to the specified configuration.
This method specifies the number of panes in each row or column, allowing for
irregular layouts.
This method specifies the number of rows in each column, or the number of
columns in each row, allowing for irregular layouts. Additionally, a
parameter is provided that allows varying column or
row sizes. Overloads for SetLayout() are available that provide other layout options.
A graphic device object to be drawn into. This is normally created with a call to
the CreateGraphics() method of the Control or Form.
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 .
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
.
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 is true, then these proportions apply to the row
heights, and if is false, then these proportions apply
to the column widths. The values in this array are arbitrary floats -- the dimension of
any given row or column is that particular proportional value divided by the sum of all
the values. For example, let be true, and
is an array with values of { 1.0, 2.0, 3.0 }. The sum of
those values is 6.0. Therefore, the first row is 1/6th of the available height, the
second row is 2/6th's of the available height, and the third row is 3/6th's of the
available height.
Modify the sizes of each
such that they fit within the
in a pre-configured layout.
The method (and overloads) is
used for setting the layout configuration.
Internal method that applies a previously set layout with a specific
row and column count. This method is only called by
.
Internal method that applies a previously set layout with a rows per column or
columns per row configuration. This method is only called by
.
Class that holds the specific properties for the minor grid.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default constructor
Copy constructor
The source to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Gets or sets a value that determines if the major gridlines
(at each labeled value) will be visible
true to show the gridlines, false otherwise
Default.IsShowGrid.
The "Dash On" mode for drawing the grid.
This is the distance,
in points (1/72 inch), of the dash segments that make up the dashed grid lines.
The dash on length is defined in points (1/72 inch)
.
The "Dash Off" mode for drawing the grid.
This is the distance,
in points (1/72 inch), of the spaces between the dash segments that make up
the dashed grid lines.
The dash off length is defined in points (1/72 inch)
.
The pen width used for drawing the grid lines.
The grid pen width is defined in points (1/72 inch)
.
The color to use for drawing this grid.
The color is defined using the
class
.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default "dash on" size for drawing the minor grid
( property). Units are in points (1/72 inch).
The default "dash off" size for drawing the minor grid
( property). Units are in points (1/72 inch).
The default pen width for drawing the minor grid
( property). Units are in points (1/72 inch).
The default color for the minor grid lines
( property). This color only affects the
minor grid lines.
The default display mode for the minor grid lines
( property). true
to show the minor grid lines, false to hide them.
Class that holds the specific properties for the minor tics.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default Constructor
Copy constructor.
The that is to be copied.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
The color to use for drawing the tics of this class instance
The color is defined using the
class
.
The length of the major tic marks.
This length will be scaled
according to the for the
The tic size is measured in points (1/72 inch)
.
Calculate the scaled tic size for this
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The scaled tic size, in points (1/72 inch)
This is convenience property sets the status of all the different
tic properties in this instance to the same value. true to activate all tics,
false to clear all tics.
This setting does not persist. That is, you can clear all the tics with
= false, then activate them individually (example:
= true).
Gets or sets a property that determines whether or not the minor outside tic marks
are shown.
These are the tic marks on the outside of the border.
The minor tic spacing is controlled by .
true to show the minor outside tic marks, false otherwise
.
Gets or sets a property that determines whether or not the major inside tic marks
are shown.
These are the tic marks on the inside of the border.
The major tic spacing is controlled by .
true to show the major inside tic marks, false otherwise
.
Gets or sets a property that determines whether or not the major opposite tic marks
are shown.
These are the tic marks on the inside of the border on
the opposite side from the axis.
The major tic spacing is controlled by .
true to show the major opposite tic marks, false otherwise
.
Gets or sets the display mode for the major outside
"cross" tic marks.
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The major tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
Gets or sets the display mode for the major inside
"cross" tic marks.
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The major tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
Gets or sets the pen width to be used when drawing the tic marks for
this
The pen width is defined in points (1/72 inch)
.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A simple struct that defines the
default property values for the class.
The default size for the minor tic marks.
( property). Units are in points (1/72 inch).
The default pen width for drawing the tic marks.
( property). Units are in points (1/72 inch).
The display mode for the minor outside tic marks
( property).
The minor tic spacing is controlled by .
true to show the minor tic marks (outside the axis),
false otherwise
The display mode for the minor inside tic marks
( property).
The minor tic spacing is controlled by .
true to show the minor tic marks (inside the axis),
false otherwise
The display mode for the minor opposite tic marks
( property).
The minor tic spacing is controlled by .
true to show the minor tic marks
(inside the axis on the opposite side),
false otherwise
The default display mode for the minor outside
"cross" tic marks ( property).
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The minor tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
The default display mode for the minor inside
"cross" tic marks ( property).
The "cross" tics are a special, additional set of tic marks that
always appear on the actual axis, even if it has been shifted due
to the setting. The other tic marks are always
fixed to the edges of the . The cross tics
are normally not displayed, since, if is true,
they will exactly overlay the "normal" and "inside" tics. If
is false, then you will most likely want to
enable the cross tics.
The major tic spacing is controlled by .
true to show the major cross tic marks, false otherwise
The default color for minor tics ( property).
Draw a tic mark at the specified single position. This includes the inner, outer,
cross and opposite tic marks as required.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
Graphic with which to draw the tic mark.
The pixel location of the tic mark on this
The pixel value of the top of the axis border
The number of pixels to shift this axis, based on the
value of . A positive value is into the ChartRect relative to
the default axis position.
The scaled size of a minor tic, in pixel units
A simple storage struct to maintain an individual sampling of data. This only
contains two data values in order to reduce to memory load for large datasets.
(e.g., no Tag or Z property)
The X value for the point, stored as a double type.
The Y value for the point, stored as a double type.
A collection class to maintain a set of samples.
This type, intended for very
large datasets, will reduce the number of points displayed by eliminating
individual points that overlay (at the same pixel location) on the graph.
Note that this type probably does not make sense for line plots, but is intended
primarily for scatter plots.
John Champion
$Revision: 3.5 $ $Date: 2007-06-02 06:56:03 $
Protected field that stores a value indicating whether or not the data have been filtered.
If the data have not been filtered, then will be equal to
. Use the public property to
access this value.
Protected field that stores the number of data points after filtering (e.g.,
has been called). The property
returns the total count for an unfiltered dataset, or
for a dataset that has been filtered.
Protected array of indices for all the points that are currently visible. This only
applies if is true.
Protected field that stores a value that determines how close a point must be to a prior
neighbor in order to be filtered out. Use the public property
to access this value.
Gets or sets a value that determines how close a point must be to a prior
neighbor in order to be filtered out.
A value of 0 indicates that subsequent
points must coincide exactly at the same pixel location. A value of 1 or more
indicates that number of pixels distance from a prior point that will cause
a new point to be filtered out. For example, a value of 2 means that, once
a particular pixel location is taken, any subsequent point that lies within 2
pixels of that location will be filtered out.
Gets a value indicating whether or not the data have been filtered. If the data
have not been filtered, then will be equal to
.
Indexer: get the DataPoint instance at the specified ordinal position in the list
This method will throw an exception if the index is out of range. This can happen
if the index is less than the number of filtered values, or if data points are
removed from a filtered dataset with updating the filter (by calling
).
The ordinal position in the list of points
Returns a instance. The
and properties will be defaulted to
and null, respectively.
Gets the number of active samples in the collection. This is the number of
samples that are non-duplicates. See the property
to get the total number of samples in the list.
Gets the total number of samples in the collection. See the
property to get the number of active (non-duplicate) samples in the list.
Append a data point to the collection
The value to append
Append a point to the collection
The x value of the point to append
The y value of the point to append
typesafe clone method
A new cloned NoDupePointList. This returns a copy of the structure,
but it does not duplicate the data (it just keeps a reference to the original)
default constructor
copy constructor -- this returns a copy of the structure,
but it does not duplicate the data (it just keeps a reference to the original)
The NoDupePointList to be copied
Protected method to access the internal DataPoint collection, without any
translation to a PointPair.
The ordinal position of the DataPoint of interest
Clears any filtering previously done by a call to .
After calling this method, all data points will be visible, and
will be equal to .
Go through the collection, and hide (filter out) any points that fall on the
same pixel location as a previously included point.
This method does not delete any points, it just temporarily hides them until
the next call to or .
You should call once your collection of points has
been constructed. You may need to call again if
you add points, or if the chart rect changes size (by resizing, printing,
image save, etc.), or if the scale range changes.
You must call before calling
this method so that the GraphPane.Chart.Rect
and the scale ranges are valid. This method is not valid for
ordinal axes (but ordinal axes don't make sense for very large datasets
anyway).
The into which the data
will be plotted.
The class to be used in the Y direction
for plotting these data. This can be a or a
, and can be a primary or secondary axis (if multiple Y or Y2
axes are being used).
The class to be used in the X direction
for plotting these data. This can be an or a
.
The OrdinalScale class inherits from the class, and implements
the features specific to .
OrdinalScale is an ordinal axis with tic labels generated at integral values. An ordinal axis means that
all data points are evenly spaced at integral values, and the actual coordinate values
for points corresponding to that axis are ignored. That is, if the X axis is an
ordinal type, then all X values associated with the curves are ignored.
John Champion
$Revision: 1.8 $ $Date: 2007-04-16 00:03:02 $
Default constructor that defines the owner
(containing object) for this new object.
The owner, or containing object, of this instance
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Return the for this , which is
.
Select a reasonable ordinal axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. The scale range is chosen
based on increments of 1, 2, or 5 (because they are even divisors of 10).
Being an ordinal axis type, the value will always be integral. This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. The basic defaults for
scale selection are defined using ,
, and
from the default class.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
An abstract base class that defines basic functionality for handling a pane. This class is the
parent class for and .
John Champion
$Revision: 3.32 $ $Date: 2007-11-05 18:28:56 $
The rectangle that defines the full area into which the pane is rendered. Units are pixels.
Use the public property to access this value.
Private field that holds the main title of the pane. Use the
public property to access this value.
Private field instance of the class. Use the
public property to access this class.
Private field that stores the user-defined tag for this . This tag
can be any user-defined value. If it is a type, it can be used as
a parameter to the method. Use the public property
to access this value.
private field to store the margin values for this . Use the
public property to access this property.
Private field that determines whether or not the fonts, tics, gaps, etc.
will be scaled according to the actual graph size. true for font and feature scaling
with graph size, false for fixed font sizes (scaleFactor = 1.0 constant).
Use the public property to access this value.
Private field that controls whether or not pen widths are scaled according to the
size of the graph. This value is only applicable if
is true. If is false, then no scaling will be done,
regardless of the value of .
true to scale the pen widths according to the size of the graph,
false otherwise.
Private field that stores the data for the
background. Use the public property to
access this value.
Private field that stores the data for the
border. Use the public property to
access this value.
Private field instance of the class. Use the
public property to access this class.
Private field that determines the base size of the pane, in inches.
Fonts, tics, gaps, etc. are scaled according to this base size.
Use the public property to access this value.
private field that stores the gap between the bottom of the pane title and the
client area of the pane. This is expressed as a fraction of the title character height.
A simple struct that defines the default property values for the class.
The default display mode for the title at the top of the pane
( property). true to
display a title, false otherwise.
The default font family for the title
( property).
The default font size (points) for the
( property).
The default font color for the
( property).
The default font bold mode for the
( property). true
for a bold typeface, false otherwise.
The default font italic mode for the
( property). true
for an italic typeface, false otherwise.
The default font underline mode for the
( property). true
for an underlined typeface, false otherwise.
The default border mode for the .
( property). true
to draw a border around the ,
false otherwise.
The default color for the border.
( property).
The default color for the background.
( property).
The default pen width for the border.
( property). Units are in points (1/72 inch).
The default dimension of the , which
defines a normal sized plot. This dimension is used to scale the
fonts, symbols, etc. according to the actual size of the
.
The default setting for the option.
true to have all pen widths scaled according to ,
false otherwise.
The default setting for the option.
true to have all fonts scaled according to ,
false otherwise.
The default value for the property, expressed as
a fraction of the scaled character height.
The rectangle that defines the full area into which all graphics
will be rendered.
Note that this rectangle has x, y, width, and height. Most of the
GDI+ graphic primitive actually draw one pixel beyond those dimensions. For
example, for a rectangle of ( X=0, Y=0, Width=100, Height=100 ), GDI+ would
draw into pixels 0 through 100, which is actually 101 pixels. For the
ZedGraph Rect, a Width of 100 pixels means that pixels 0 through 99 are used
Units are pixels.
Accesses the for this
A reference to a object
Gets the instance that contains the text and attributes of the title.
This text can be multiple lines separated by newline characters ('\n').
Gets or sets the user-defined tag for this . This tag
can be any user-defined value. If it is a type, it can be used as
a parameter to the method.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Gets or sets the class for drawing the border
border around the
Gets or sets the data for the
filling the background of the .
Gets or sets the list of items for this
A reference to a collection object
Gets or sets the instance that controls the space between
the edge of the and the rendered content of the graph.
BaseDimension is a double precision value that sets "normal" pane size on
which all the settings are based. The BaseDimension is in inches. For
example, if the BaseDimension is 8.0 inches and the
size is 14 points. Then the pane title font
will be 14 points high when the is approximately 8.0
inches wide. If the Rect is 4.0 inches wide, the pane title font will be
7 points high. Most features of the graph are scaled in this manner.
The base dimension reference for the , in inches
Gets or sets the gap between the bottom of the pane title and the
client area of the pane. This is expressed as a fraction of the scaled
character height.
Determines if the font sizes, tic sizes, gap sizes, etc. will be scaled according to
the size of the and the . If this
value is set to false, then the font sizes and tic sizes will always be exactly as
specified, without any scaling.
True to have the fonts and tics scaled, false to have them constant
Gets or sets the property that controls whether or not pen widths are scaled for this
.
This value is only applicable if
is true. If is false, then no scaling will be done,
regardless of the value of . Note that scaling the pen
widths can cause "artifacts" to appear at typical screen resolutions. This occurs
because of roundoff differences; in some cases the pen width may round to 1 pixel wide
and in another it may round to 2 pixels wide. The result is typically undesirable.
Therefore, this option defaults to false. This option is primarily useful for high
resolution output, such as printer output or high resolution bitmaps (from
) where it is desirable to have the pen width
be consistent with the screen image.
true to scale the pen widths according to the size of the graph,
false otherwise.
Default constructor for the class. Leaves the empty.
Default constructor for the class. Specifies the of
the , and the size of the .
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of Clone
Note that this method must be called with an explicit cast to ICloneable, and
that it is inherently virtual. For example:
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with
ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation
of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.
A deep copy of this object
Create a shallow, memberwise copy of this class.
Note that this method uses MemberWiseClone, which will copy all
members (shallow) including those of classes derived from this class.
a new copy of the class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this to the specified
device. This abstract method is implemented by the child
classes.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Calculate the client area rectangle based on the .
The client rectangle is the actual area available for
or items after taking out space for the margins and the title.
This method does not take out the area required for the .
To do so, you must separately call .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
The calculated chart rect, in pixel coordinates.
Draw the border _border around the area.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
Draw the on the graph, centered at the top of the pane.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
Change the size of the . Override this method to handle resizing the contents
as required.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The new size for the .
Calculate the scaling factor based on the ratio of the current dimensions and
the .
This scaling factor is used to proportionally scale the
features of the so that small graphs don't have huge fonts, and vice versa.
The scale factor represents a linear multiple to be applied to font sizes, symbol sizes, tic sizes,
gap sizes, pen widths, etc. The units of the scale factor are "World Pixels" per "Standard Point".
If any object size, in points, is multiplied by this scale factor, the result is the size, in pixels,
that the object should be drawn using the standard GDI+ drawing instructions. A "Standard Point"
is a dimension based on points (1/72nd inch) assuming that the size
matches the .
Note that "World Pixels" will still be transformed by the GDI+ transform matrices to result
in "Output Device Pixels", but "World Pixels" are the reference basis for the drawing commands.
A value representing the scaling factor to use for the rendering calculations.
Calculate the scaled pen width, taking into account the scaleFactor and the
setting of the property of the pane.
The pen width, in points (1/72 inch)
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
The scaled pen width, in world pixels
Build a object containing the graphical rendering of
all the objects in this list.
A object rendered with the current graph.
Build a object containing the graphical rendering of
all the objects in this list.
A object rendered with the current graph.
Gets an image for the current GraphPane, scaled to the specified size and resolution.
The scaled width of the bitmap in pixels
The scaled height of the bitmap in pixels
The resolution of the bitmap, in dots per inch
true for anti-aliased rendering, false otherwise
Gets an image for the current GraphPane, scaled to the specified size and resolution.
The scaled width of the bitmap in pixels
The scaled height of the bitmap in pixels
The resolution of the bitmap, in dots per inch
Setup a instance with appropriate antialias settings.
No settings are modified if is set to false. This method
does not restore original settings, it presumes that the Graphics instance will be
disposed.
An existing instance
true to render in anti-alias mode, false otherwise
Gets an enhanced metafile image for the current GraphPane, scaled to the specified size.
By definition, a Metafile is a vector drawing, and therefore scaling should not matter.
However, this method is provided because certain options in Zedgraph, such as
are affected by the size of the expected image.
The "effective" scaled width of the bitmap in pixels
The "effective" scaled height of the bitmap in pixels
true to use anti-aliased drawing mode, false otherwise
Gets an enhanced metafile image for the current GraphPane, scaled to the specified size.
By definition, a Metafile is a vector drawing, and therefore scaling should not matter.
However, this method is provided because certain options in Zedgraph, such as
are affected by the size of the expected image.
The "effective" scaled width of the bitmap in pixels
The "effective" scaled height of the bitmap in pixels
Gets an enhanced metafile image for the current GraphPane.
A collection class containing a list of objects.
John Champion
$Revision: 3.6 $ $Date: 2006-06-24 20:26:43 $
Default constructor for the collection class.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Indexer to access the specified object by
its string.
The string title of the
object to be accessed.
A object reference.
Return the zero-based position index of the
with the specified .
The comparison of titles is not case sensitive, but it must include
all characters including punctuation, spaces, etc.
The label that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the was not found in the list
Return the zero-based position index of the
with the specified .
In order for this method to work, the
property must be of type .
The tag that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the string is not in the list
A class representing a pie chart object comprised of one or more
s.
Bob Kaye
$Revision: 1.32 $ $Date: 2007-07-30 05:26:23 $
Percentage (expressed as #.##) of radius to
which this is to be displaced from the center.
Displacement is done outward along the radius
bisecting the chord of this . Maximum allowable value
is 0.5.
A which will customize the label display of this
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the class that defines the
properties of the border around this . Use the public
property to access this value.
Private field that stores the absolute value of this instance.
Value will be set to zero if submitted value is less than zero.
An enum that specifies how each for this object
will be displayed. Use the public property to access this data.
Use enum .
The point on the arc of this representing the intersection of
the arc and the explosion radius.
The bounding rectangle for this .
The formatted string for this 's label. Formatting is
done based on the .
The point at which the line between this and its
label bends to the horizontal.
The point at the end of the line between this and
it's label (i.e. the beginning of the label display)
Private field to hold the GraphicsPath of this to be
used for 'hit testing'.
Private field which holds the angle (in degrees) at which the display of this
object will begin.
Private field which holds the length (in degrees) of the arc representing this
object.
Private field which represents the angle (in degrees) of the radius along which this
object will be displaced, if desired.
Private field which determines the number of decimal digits displayed to
in a label containing a value.
Private field which determines the number of decimal digits displayed
in a label containing a percent.
Specify the default property values for the class.
Default displacement.
The default pen width to be used for drawing the border around the PieItem
( property). Units are points.
The default fill mode for this PieItem ( property).
The default border mode for PieItem ( property).
true to display frame around PieItem, false otherwise
The default color for drawing frames around PieItem
( property).
The default color for filling in the PieItem
( property).
The default custom brush for filling in the PieItem.
( property).
Default value for controlling display.
Default value for .
The default font size for entries
( property). Units are
in points (1/72 inch).
Default value for the number of decimal digits
to be displayed when contains a value.
Default value for the number of decimal digits
to be displayed where contains a percent.
Gets or sets the a value which determines the amount, if any, of this
displacement.
Gets a path representing this
Gets or sets the to be used
for displaying this 's label.
Gets or sets the object so as to be able to modify
its properties.
Gets or sets the object which is used to fill the
pie slice with color.
Gets or sets the arc length (in degrees) of this .
Gets or sets the starting angle (in degrees) of this .
Gets or sets the angle (in degrees) of the radius along which
this will be displaced.
Gets or sets the value of this .
Minimum value is 0.
Gets or sets the to be used in displaying
labels.
Gets or sets the number of decimal digits to be displayed in a
value label.
Gets or sets the number of decimal digits to be displayed in a
percent label.
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Create a new , providing a gradient fill for the pie color.
The value associated with this instance.
The starting display color for the gradient for this
instance.
The ending display color for the gradient for this
instance.
The angle for the gradient .
The amount this instance will be
displaced from the center point.
Text label for this instance.
Create a new .
The value associated with this instance.
The display color for this instance.
The amount this instance will be
displaced from the center point.
Text label for this instance.
Create a new .
The value associated with this instance.
Text label for this instance
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Do all rendering associated with this item to the specified
device. This method is normally only
called by the Draw method of the parent
collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
Not used for rendering Piesparam>
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Calculate the that will be used to define the bounding rectangle of
the Pie.
This rectangle always lies inside of the , and it is
normally a square so that the pie itself is not oval-shaped.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The (normally the )
that bounds this pie.
Recalculate the bounding rectangle when a piee slice is displaced.
rectangle to be used for drawing exploded pie
Calculate the values needed to properly display this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
maximum slice displacement
Render the label for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
Bounding rectangle for this .
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
This method collects all the data relative to rendering this 's label.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The rectangle used for rendering this
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Build the string that will be displayed as the slice label as determined by
.
reference to the
A method which calculates a new size for the bounding rectangle for the non-displaced
's in the pie chart. This method is called after it is found
that at least one slice is displaced.
The biggest displacement among the s
making up the pie chart.
The current bounding rectangle
Draw a legend key entry for this at the specified location
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The struct that specifies the
location for the legend key
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine the coords for the rectangle associated with a specified point for
this
The to which this curve belongs
The index of the point of interest
A list of coordinates that represents the "rect" for
this point (used in an html AREA tag)
true if it's a valid point, false otherwise
Simple struct that stores X and Y coordinates as doubles.
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
The X coordinate
The Y coordinate
Construct a object from two double values.
The X coordinate
The Y coordinate
A simple point represented by an (X,Y,Z) group of double values.
Jerry Vos modified by John Champion
$Revision: 3.26 $ $Date: 2007-11-28 02:38:22 $
This PointPair's Z coordinate. Also used for the lower value (dependent axis)
for and charts.
A tag object for use by the user. This can be used to store additional
information associated with the . ZedGraph never
modifies this value, but if it is a type, it
may be displayed in a
within the object.
Note that, if you are going to Serialize ZedGraph data, then any type
that you store in must be a serializable type (or
it will cause an exception).
Default Constructor
Creates a point pair with the specified X and Y.
This pair's x coordinate.
This pair's y coordinate.
Creates a point pair with the specified X, Y, and
label ().
This pair's x coordinate.
This pair's y coordinate.
This pair's string label ()
Creates a point pair with the specified X, Y, and base value.
This pair's x coordinate.
This pair's y coordinate.
This pair's z or lower dependent coordinate.
Creates a point pair with the specified X, Y, base value, and
string label ().
This pair's x coordinate.
This pair's y coordinate.
This pair's z or lower dependent coordinate.
This pair's string label ()
Creates a point pair with the specified X, Y, base value, and
().
This pair's x coordinate.
This pair's y coordinate.
This pair's z or lower dependent coordinate.
This pair's property
Creates a point pair from the specified struct.
The struct from which to get the
new values.
The PointPair copy constructor.
The basis for the copy.
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Readonly value that determines if either the X, Y, or Z
coordinate in this PointPair is an invalid (not plotable) value.
It is considered invalid if it is missing (equal to System.Double.Max),
Infinity, or NaN.
true if any value is invalid
The "low" value for this point (lower dependent-axis value).
This is really just an alias for .
The lower dependent value for this .
The ColorValue property is just an alias for the
property.
For other types, such as the , the
can be mapped to a unique value. This is used with the
option.
Compares points based on their y values. Is setup to be used in an
ascending order sort.
Compares two s.
Point to the left.
Point to the right.
-1, 0, or 1 depending on l.Y's relation to r.Y
Compares points based on their x values. Is setup to be used in an
ascending order sort.
Constructor for PointPairComparer.
The axis type on which to sort.
Compares two s.
Point to the left.
Point to the right.
-1, 0, or 1 depending on l.X's relation to r.X
Compare two objects for equality. To be equal, X, Y, and Z
must be exactly the same between the two objects.
The object to be compared with.
true if the objects are equal, false otherwise
Return the HashCode from the base class.
Format this PointPair value using the default format. Example: "( 12.345, -16.876 )".
The two double values are formatted with the "g" format type.
true to show the third "Z" or low dependent value coordinate
A string representation of the PointPair
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
If
is true, then the third "Z" coordinate is also shown.
A format string that will be used to format each of
the two double type values (see ).
A string representation of the PointPair
true to show the third "Z" or low dependent value coordinate
Format this PointPair value using different general format strings for the X, Y, and Z values.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
A format string that will be used to format the X
double type value (see ).
A format string that will be used to format the Y
double type value (see ).
A format string that will be used to format the Z
double type value (see ).
A string representation of the PointPair
The basic class holds three data values (X, Y, Z). This
class extends the basic PointPair to contain four data values (X, Y, Z, T).
John Champion
$Revision: 3.3 $ $Date: 2007-03-17 18:43:44 $
This PointPair4's T coordinate.
Default Constructor
Creates a point pair with the specified X, Y, Z, and T value.
This pair's x coordinate.
This pair's y coordinate.
This pair's z coordinate.
This pair's t coordinate.
Creates a point pair with the specified X, Y, base value, and
label ().
This pair's x coordinate.
This pair's y coordinate.
This pair's z coordinate.
This pair's t coordinate.
This pair's string label ()
The PointPair4 copy constructor.
The basis for the copy.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Readonly value that determines if either the X, Y, Z, or T
coordinate in this PointPair4 is an invalid (not plotable) value.
It is considered invalid if it is missing (equal to System.Double.Max),
Infinity, or NaN.
true if any value is invalid
Format this PointPair4 value using the default format. Example: "( 12.345, -16.876 )".
The two double values are formatted with the "g" format type.
true to show the third "Z" and fourth "T" value coordinates
A string representation of the PointPair4
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
If
is true, then the third "Z" coordinate is also shown.
A format string that will be used to format each of
the two double type values (see ).
A string representation of the PointPair
true to show the third "Z" or low dependent value coordinate
Format this PointPair value using different general format strings for the X, Y, and Z values.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
A format string that will be used to format the X
double type value (see ).
A format string that will be used to format the Y
double type value (see ).
A format string that will be used to format the Z
double type value (see ).
A format string that will be used to format the T
double type value (see ).
A string representation of the PointPair
This is a base class that provides base-level functionality for a data point consisting
of an (X,Y) pair of double values.
This class is typically a base class for actual type implementations.
Jerry Vos modified by John Champion
$Revision: 1.4 $ $Date: 2007-04-16 00:03:02 $
Missing values are represented internally using .
The default format to be used for displaying point values via the
method.
This PointPair's X coordinate
This PointPair's Y coordinate
Default Constructor
Creates a point pair with the specified X and Y.
This pair's x coordinate.
This pair's y coordinate.
Creates a point pair from the specified struct.
The struct from which to get the
new values.
The PointPairBase copy constructor.
The basis for the copy.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Readonly value that determines if either the X or the Y
coordinate in this PointPair is a missing value.
true if either value is missing
Readonly value that determines if either the X or the Y
coordinate in this PointPair is an invalid (not plotable) value.
It is considered invalid if it is missing (equal to System.Double.Max),
Infinity, or NaN.
true if either value is invalid
static method to determine if the specified point value is invalid.
The value is considered invalid if it is ,
,
or .
The value to be checked for validity.
true if the value is invalid, false otherwise
Implicit conversion from PointPair to PointF. Note that this conversion
can result in data loss, since the data are being cast from a type
double (64 bit) to a float (32 bit).
The PointPair struct on which to operate
A PointF struct equivalent to the PointPair
Compare two objects for equality. To be equal, X and Y
must be exactly the same between the two objects.
The object to be compared with.
true if the objects are equal, false otherwise
Return the HashCode from the base class.
Format this PointPair value using the default format. Example: "( 12.345, -16.876 )".
The two double values are formatted with the "g" format type.
A string representation of the PointPair
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
A format string that will be used to format each of
the two double type values (see ).
A string representation of the PointPair
Format this PointPair value using different general format strings for the X and Y values.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
The Z value is not displayed (see ).
A format string that will be used to format the X
double type value (see ).
A format string that will be used to format the Y
double type value (see ).
A string representation of the PointPair
A simple instance that stores a data point (X, Y, Z). This differs from a regular
in that it maps the property
to an independent value. That is, and
are not related (as they are in the
).
This is a user value that can be anything. It is used to provide special
property-based coloration to the graph elements.
Creates a point pair with the specified X, Y, and base value.
This pair's x coordinate.
This pair's y coordinate.
This pair's z or lower dependent coordinate.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
The ColorValue property. This is used with the
option.
A collection class containing a list of objects
that define the set of points to be displayed on the curve.
Jerry Vos based on code by John Champion
modified by John Champion
$Revision: 3.37 $ $Date: 2007-06-29 15:39:07 $
Private field to maintain the sort status of this
. Use the public property
to access this value.
true if the list is currently sorted.
Default constructor for the collection class
Constructor to initialize the PointPairList from two arrays of
type double.
Constructor to initialize the PointPairList from an IPointList
Constructor to initialize the PointPairList from three arrays of
type double.
The Copy Constructor
The PointPairList from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Add a object to the collection at the end of the list.
The object to
be added
The zero-based ordinal index where the point was added in the list.
Add a object to the collection at the end of the list.
A reference to the object to
be added
The zero-based ordinal index where the last point was added in the list,
or -1 if no points were added.
Add a set of points to the PointPairList from two arrays of type double.
If either array is null, then a set of ordinal values is automatically
generated in its place (see .
If the arrays are of different size, then the larger array prevails and the
smaller array is padded with values.
A double[] array of X values
A double[] array of Y values
The zero-based ordinal index where the last point was added in the list,
or -1 if no points were added.
Add a set of points to the from three arrays of type double.
If the X or Y array is null, then a set of ordinal values is automatically
generated in its place (see . If the
is null, then it is set to zero.
If the arrays are of different size, then the larger array prevails and the
smaller array is padded with values.
A double[] array of X values
A double[] array of Y values
A double[] array of Z or lower-dependent axis values
The zero-based ordinal index where the last point was added in the list,
or -1 if no points were added.
Add a single point to the from values of type double.
The X value
The Y value
The zero-based ordinal index where the point was added in the list.
Add a single point to the from values of type double.
The X value
The Y value
The Tag value for the PointPair
The zero-based ordinal index where the point was added in the list.
Add a single point to the from values of type double.
The X value
The Y value
The Z or lower dependent axis value
The zero-based ordinal index where the point was added
in the list.
Add a single point to the from values of type double.
The X value
The Y value
The Z or lower dependent axis value
The Tag value for the PointPair
The zero-based ordinal index where the point was added
in the list.
Add a object to the collection at the specified,
zero-based, index location.
The zero-based ordinal index where the point is to be added in the list.
The object to be added.
Add a single point (from values of type double ) to the at the specified,
zero-based, index location.
The zero-based ordinal index where the point is to be added in the list.
The X value
The Y value
Add a single point (from values of type double ) to the at the specified,
zero-based, index location.
The zero-based ordinal index where the point is to be added in the list.
The X value
The Y value
The Z or lower dependent axis value
Return the zero-based position index of the
with the specified label .
The object must be of type
for this method to find it.
The label that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the is not in the list
Compare two objects to see if they are equal.
Equality is based on equal count of items, and
each individual must be equal (as per the
method.
The to be compared with for equality.
true if the objects are equal, false otherwise.
Return the HashCode from the base class.
Sorts the list according to the point x values. Will not sort the
list if the list is already sorted.
If the list was sorted before sort was called
Sorts the list according to the point values . Will not sort the
list if the list is already sorted.
The
used to determine whether the X or Y values will be used to sort
the list
If the list was sorted before sort was called
Set the X values for this from the specified
array of double values.
If has more values than
this list, then the extra values will be ignored. If
has less values, then the corresponding values
will not be changed. That is, if the has 20 values
and has 15 values, then the first 15 values of the
will be changed, and the last 5 values will not be
changed.
An array of double values that will replace the existing X
values in the .
Set the Y values for this from the specified
array of double values.
If has more values than
this list, then the extra values will be ignored. If
has less values, then the corresponding values
will not be changed. That is, if the has 20 values
and has 15 values, then the first 15 values of the
will be changed, and the last 5 values will not be
changed.
An array of double values that will replace the existing Y
values in the .
Set the Z values for this from the specified
array of double values.
If has more values than
this list, then the extra values will be ignored. If
has less values, then the corresponding values
will not be changed. That is, if the has 20 values
and has 15 values, then the first 15 values of the
will be changed, and the last 5 values will not be
changed.
An array of double values that will replace the existing Z
values in the .
Add the Y values from the specified object to this
. If has more values than
this list, then the extra values will be ignored. If
has less values, the missing values are assumed to be zero.
A reference to the object to
be summed into the this .
Add the X values from the specified object to this
. If has more values than
this list, then the extra values will be ignored. If
has less values, the missing values are assumed to be zero.
A reference to the object to
be summed into the this .
Linearly interpolate the data to find an arbitraty Y value that corresponds to the specified X value.
This method uses linear interpolation with a binary search algorithm. It therefore
requires that the x data be monotonically increasing. Missing values are not allowed. This
method will extrapolate outside the range of the PointPairList if necessary.
The target X value on which to interpolate
The Y value that corresponds to the value.
Use Cardinal Splines to Interpolate the data to find an arbitraty Y value that corresponds to
the specified X value.
This method uses cardinal spline interpolation with a binary search algorithm. It therefore
requires that the x data be monotonically increasing. Missing values are not allowed. This
method will not extrapolate outside the range of the PointPairList (it returns
if extrapolation would be required). WARNING: Cardinal
spline interpolation can generate curves with non-unique X values for higher tension
settings. That is, there may be multiple X values for the same Y value. This routine
follows the path of the spline curve until it reaches the FIRST OCCURRENCE of the
target X value. It does not check to see if other solutions are possible.
The target X value on which to interpolate
The tension setting that controls the curvature of the spline fit.
Typical values are between 0 and 1, where 0 is a linear fit, and 1 is lots of "roundness".
Values greater than 1 may give odd results.
The Y value that corresponds to the value.
Linearly interpolate the data to find an arbitraty X value that corresponds to the specified Y value.
This method uses linear interpolation with a binary search algorithm. It therefore
requires that the Y data be monotonically increasing. Missing values are not allowed. This
method will extrapolate outside the range of the PointPairList if necessary.
The target Y value on which to interpolate
The X value that corresponds to the value.
Use linear regression to form a least squares fit of an existing
instance.
The output will cover the
same X range of data as the original dataset.
An instance containing
the data to be regressed.
The number of desired points to be included
in the resultant .
A new containing the resultant
data fit.
Use linear regression to form a least squares fit of an existing
instance.
An instance containing
the data to be regressed.
The number of desired points to be included
in the resultant .
The minimum X value of the resultant
.
The maximum X value of the resultant
.
A new containing the resultant
data fit.
Brian Chappell - lazarusds
modified by John Champion
A class that represents a bordered and/or filled polygon object on
the graph. A list of objects is maintained by
the collection class.
John Champion
$Revision: 3.4 $ $Date: 2007-01-25 07:56:09 $
private value that determines if the polygon will be automatically closed.
true to close the figure, false to leave it "open." Use the public property
to access this value.
Gets or sets the array that defines
the polygon. This will be in units determined by
.
Gets or sets a value that determines if the polygon will be automatically closed.
true to close the figure, false to leave it "open."
This boolean determines whether or not the CloseFigure() method will be called
to fully close the path of the polygon. This value defaults to true, and for any
closed figure it should fine. If you want to draw a line that does not close into
a shape, then you should set this value to false. For a figure that is naturally
closed (e.g., the first point of the polygon is the same as the last point),
leaving this value set to false may result in minor pixel artifacts due to
rounding.
Constructors for the object
A constructor that allows the position, border color, and solid fill color
of the to be pre-specified.
An arbitrary specification
for the box border
An arbitrary specification
for the box fill (will be a solid color fill)
The array that defines
the polygon. This will be in units determined by
.
A constructor that allows the position
of the to be pre-specified. Other properties are defaulted.
The array that defines
the polygon. This will be in units determined by
.
A default constructor that creates a from an empty
array. Other properties are defaulted.
A constructor that allows the position, border color, and two-color
gradient fill colors
of the to be pre-specified.
An arbitrary specification
for the box border
An arbitrary specification
for the start of the box gradient fill
An arbitrary specification
for the end of the box gradient fill
The array that defines
the polygon. This will be in units determined by
.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device.
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
.
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
A class containing a set of data values to be plotted as a RadarPlot.
This class will effectively convert the data into objects
by converting the polar coordinates to rectangular coordinates
Jerry Vos and John Champion
$Revision: 3.5 $ $Date: 2007-04-16 00:03:02 $
Default to clockwise rotation as this is the standard for radar charts
Default to 90 degree rotation so main axis is in the 12 o'clock position,
which is the standard for radar charts.
Indexer to access the specified object by
its ordinal position in the list. This method does the calculations
to convert the data from polar to rectangular coordinates.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
Indicates if points should be added in clockwise or counter-clockwise order
Sets the angular rotation (starting angle) for the initial axis
Get the raw data
gets the number of points available in the list
Default Constructor
Copy Constructor
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Add a single point to the from two values of type double.
The radial coordinate value
The 'Z' coordinate value, which is not normally used for plotting,
but can be used for type fills
The zero-based ordinal index where the point was added in the list.
A class that provides a rolling list of objects.
This is essentially a
first-in-first-out (FIFO) queue with a fixed capacity which allows 'rolling'
(or oscilloscope like) graphs to be be animated without having the overhead of an
ever-growing ArrayList.
The queue is constructed with a fixed capacity and new points can be enqueued. When the
capacity is reached the oldest (first in) PointPair is overwritten. However, when
accessing via , the objects are
seen in the order in which they were enqeued.
RollingPointPairList supports data editing through the
interface.
Colin Green with mods by John Champion
$Date: 2007-11-05 04:33:26 $
An array of PointPair objects that acts as the underlying buffer.
The index of the previously enqueued item. -1 if buffer is empty.
The index of the next item to be dequeued. -1 if buffer is empty.
Constructs an empty buffer with the specified capacity.
Number of elements in the rolling list. This number
cannot be changed once the RollingPointPairList is constructed.
Constructs an empty buffer with the specified capacity. Pre-allocates space
for all PointPair's in the list if is true.
Number of elements in the rolling list. This number
cannot be changed once the RollingPointPairList is constructed.
true to pre-allocate all PointPair instances in
the list, false otherwise. Note that in order to be memory efficient,
the method should be used to add
data. Avoid the method.
Constructs a buffer with a copy of the items within the provided
.
The is set to the length of the provided list.
The to be copied.
Gets the capacity of the rolling buffer.
Gets the count of items within the rolling buffer. Note that this may be less than
the capacity.
Gets a bolean that indicates if the buffer is empty.
Alternatively you can test Count==0.
Gets or sets the at the specified index in the buffer.
Index must be within the current size of the buffer, e.g., the set
method will not expand the buffer even if is available
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Clear the buffer of all objects.
Note that the remains unchanged.
Calculate that the next index in the buffer that should receive a new data point.
Note that this method actually advances the buffer, so a datapoint should be
added at _mBuffer[_headIdx].
The index position of the new head element
Add a onto the head of the queue,
overwriting old values if the buffer is full.
The to be added.
Add an object to the head of the queue.
A reference to the object to
be added
Remove an old item from the tail of the queue.
The removed item. Throws an
if the buffer was empty.
Check the buffer's length () or the
property to avoid exceptions.
Remove the at the specified index
All items in the queue that lie after will
be shifted back by one, and the queue will be one item shorter.
The ordinal position of the item to be removed.
Throws an if index is less than
zero or greater than or equal to
Remove a range of objects starting at the specified index
All items in the queue that lie after will
be shifted back, and the queue will be items shorter.
The ordinal position of the item to be removed.
Throws an if index is less than
zero or greater than or equal to
The number of items to be removed. Throws an
if is less than zero
or greater than the total available items in the queue
Pop an item off the head of the queue.
The popped item. Throws an exception if the buffer was empty.
Peek at the item at the head of the queue.
The item at the head of the queue.
Throws an if the buffer was empty.
Add a set of values onto the head of the queue,
overwriting old values if the buffer is full.
This method is much more efficient that the Add(PointPair)
method, since it does not require that a new PointPair instance be provided.
If the buffer already contains a at the head position,
then the x, y, z, and tag values will be copied into the existing PointPair.
Otherwise, a new PointPair instance must be created.
In this way, each PointPair position in the rolling list will only be allocated one time.
To truly be memory efficient, the , ,
and methods should be avoided. Also, the property
for this method should be null, since it is a reference type.
The X value
The Y value
The Z value
The Tag value for the PointPair
Add a set of values onto the head of the queue,
overwriting old values if the buffer is full.
This method is much more efficient that the Add(PointPair)
method, since it does not require that a new PointPair instance be provided.
If the buffer already contains a at the head position,
then the x, y, z, and tag values will be copied into the existing PointPair.
Otherwise, a new PointPair instance must be created.
In this way, each PointPair position in the rolling list will only be allocated one time.
To truly be memory efficient, the , ,
and methods should be avoided.
The X value
The Y value
Add a set of values onto the head of the queue,
overwriting old values if the buffer is full.
This method is much more efficient that the Add(PointPair)
method, since it does not require that a new PointPair instance be provided.
If the buffer already contains a at the head position,
then the x, y, z, and tag values will be copied into the existing PointPair.
Otherwise, a new PointPair instance must be created.
In this way, each PointPair position in the rolling list will only be allocated one time.
To truly be memory efficient, the , ,
and methods should be avoided. Also, the property
for this method should be null, since it is a reference type.
The X value
The Y value
The Tag value for the PointPair
Add a set of values onto the head of the queue,
overwriting old values if the buffer is full.
This method is much more efficient that the Add(PointPair)
method, since it does not require that a new PointPair instance be provided.
If the buffer already contains a at the head position,
then the x, y, z, and tag values will be copied into the existing PointPair.
Otherwise, a new PointPair instance must be created.
In this way, each PointPair position in the rolling list will only be allocated one time.
To truly be memory efficient, the , ,
and methods should be avoided.
The X value
The Y value
The Z value
Add a set of points to the
from two arrays of type double.
If either array is null, then a set of ordinal values is automatically
generated in its place (see ).
If the arrays are of different size, then the larger array prevails and the
smaller array is padded with values.
A double[] array of X values
A double[] array of Y values
Add a set of points to the from
three arrays of type double.
If the X or Y array is null, then a set of ordinal values is automatically
generated in its place (see .
If the value
is null, then it is set to zero.
If the arrays are of different size, then the larger array prevails and the
smaller array is padded with values.
A double[] array of X values
A double[] array of Y values
A double[] array of Z values
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
An enum used to specify the X or Y data type of interest -- see
and .
The time (seconds) at which these data are measured
The distance traveled, meters
The instantaneous velocity, meters per second
The instantaneous acceleration, meters per second squared
Sample data structure containing a variety of data values, in this case the values
are related in that they correspond to the same time value.
The time (seconds) at which these data are measured
The distance traveled, meters
The instantaneous velocity, meters per second
The instantaneous acceleration, meters per second squared
Constructor that specifies each data value in the PerformanceData struct
The time (seconds) at which these data are measured
The distance traveled, meters
The instantaneous velocity, meters per second
The instantaneous acceleration, meters per second squared
Gets or sets the data value as specified by the enum
The required data value type
A sample class that holds an internal collection, and implements the
interface so that it can be used by ZedGraph as curve data.
This particular class efficiently implements the data storage so that the class
can be cloned without duplicating the data points. For example, you can create
a , populate it with values, and set
= and
= .
You can then clone this to a new one, and set
= .
Each of these 's can then be used as an
argument,
thereby plotting a distance vs time curve and a velocity vs time curve. There
will still be only one copy of the data in memory.
This is where the data are stored. Duplicating the
copies the reference to this , but does not actually duplicate
the data.
Determines what X data will be returned by the indexer of this list.
Determines what Y data will be returned by the indexer of this list.
Default constructor
The Copy Constructor. This method does NOT duplicate the data, it merely makes
another "Window" into the same collection. You can make multiple copies and
set the and/or properties to different
values to plot different data, while maintaining only one copy of the original values.
The from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Indexer to access the data. This gets the appropriate data and converts to
the struct that is compatible with ZedGraph. The
actual data returned depends on the values of and
.
The ordinal position of the desired point in the list
A corresponding to the specified ordinal data position
Gets the number of data points in the collection
Adds the specified struct to the end of the collection.
A struct to be added
The ordinal position in the collection where the values were added
Remove the struct from the list at the specified
ordinal location.
The ordinal location of the
struct to be removed
Insert the specified struct into the list at
the specified ordinal location.
The ordinal location at which to insert
The struct to be inserted
enumeration used to indicate which type of data will be plotted.
Designates the "Time" property will be used
Designates the "Position" property will be used
Designates the Instantaneous Velocity property will be used
Designates the "Time since start" property will be used
Designates the Average Velocity property will be used
A simple storage class to maintain an individual sampling of data
The time of the sample
The position at sample time
The instantaneous velocity at sample time
A collection class to maintain a set of samples
Determines what data type gets plotted for the X values
Determines what data type gets plotted for the Y values
Indexer: get the Sample instance at the specified ordinal position in the list
The ordinal position in the list of samples
Returns a instance containing the
data specified by and
Gets the number of samples in the collection
Get the specified data type from the specified sample
The sample instance of interest
The data type to be extracted from the sample
A double value representing the requested data
Append a sample to the collection
The sample to append
The ordinal position at which the sample was added
typesafe clone method
A new cloned SamplePointList. This returns a copy of the structure,
but it does not duplicate the data (it just keeps a reference to the original)
default constructor
copy constructor -- this returns a copy of the structure,
but it does not duplicate the data (it just keeps a reference to the original)
The SamplePointList to be copied
The Scale class is an abstract base class that encompasses the properties
and methods associated with a scale of data.
This class is inherited by the
, , ,
, , ,
, and
classes to define specific characteristics for those types.
John Champion
$Revision: 1.33 $ $Date: 2007-09-19 06:41:56 $
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the scale definitions.
Use the public properties , ,
, , and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the automatic scaling modes.
Use the public properties , ,
, ,
and
for access to these values.
Private fields for the "grace" settings.
These values determine how much extra space is left before the first data value
and after the last data value.
Use the public properties and
for access to these values.
Private fields for the "grace" settings.
These values determine how much extra space is left before the first data value
and after the last data value.
Use the public properties and
for access to these values.
Private field for the scale value display.
Use the public property for access to this value.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private fields for the attributes.
Use the public properties and
for access to these values.
Private field for the array of text labels.
This property is only used if is set to
Private field for the format of the tic labels.
Use the public property for access to this value.
Private fields for Unit types to be used for the major and minor tics.
See and for the corresponding
public properties.
These types only apply for date-time scales ().
The value of these types is of enumeration type
Private fields for Unit types to be used for the major and minor tics.
See and for the corresponding
public properties.
These types only apply for date-time scales ().
The value of these types is of enumeration type
Private field for the alignment of the tic labels.
This fields controls whether the inside, center, or outside edges of the text labels are aligned.
Use the public property
for access to this value.
Private field for the alignment of the tic labels.
This fields controls whether the left, center, or right edges of the text labels are aligned.
Use the public property
for access to this value.
Private fields for the font specificatios.
Use the public properties and
for access to these values.
Internal field that stores the amount of space between the scale labels and the
major tics. Use the public property to access this
value.
Data range temporary values, used by GetRange().
Data range temporary values, used by GetRange().
Data range temporary values, used by GetRange().
Data range temporary values, used by GetRange().
Pixel positions at the minimum and maximum value for this scale.
These are temporary values used/valid only during the Draw process.
Pixel positions at the minimum and maximum value for this scale.
These are temporary values used/valid only during the Draw process.
Scale values for calculating transforms. These are temporary values
used ONLY during the Draw process.
These values are just and
for normal linear scales, but for log or exponent scales they will be a
linear representation. For , it is the
of the value, and for ,
it is the
of the value.
Scale values for calculating transforms. These are temporary values
used ONLY during the Draw process.
These values are just and
for normal linear scales, but for log or exponent scales they will be a
linear representation. For , it is the
of the value, and for ,
it is the
of the value.
Gets or sets the linearized version of the scale range.
This value is valid at any time, whereas is an optimization
pre-set that is only valid during draw operations.
Gets or sets the linearized version of the scale range.
This value is valid at any time, whereas is an optimization
pre-set that is only valid during draw operations.
private field that stores the owner Axis that contains this Scale instance.
A simple struct that defines the
default property values for the class.
The default "zero lever" for automatically selecting the axis
scale range (see ). This number is
used to determine when an axis scale range should be extended to
include the zero value. This value is maintained only in the
class, and cannot be changed after compilation.
The default "grace" value applied to the minimum data range.
This value is
expressed as a fraction of the total data range. For example, assume the data
range is from 4.0 to 16.0, leaving a range of 12.0. If MinGrace is set to
0.1, then 10% of the range, or 1.2 will be subtracted from the minimum data value.
The scale will then be ranged to cover at least 2.8 to 16.0.
The default "grace" value applied to the maximum data range.
This value is
expressed as a fraction of the total data range. For example, assume the data
range is from 4.0 to 16.0, leaving a range of 12.0. If MaxGrace is set to
0.1, then 10% of the range, or 1.2 will be added to the maximum data value.
The scale will then be ranged to cover at least 4.0 to 17.2.
The maximum number of text labels (major tics) that will be allowed on the plot by
the automatic scaling logic. This value applies only to
axes. If there are more than MaxTextLabels on the plot, then
will be increased to reduce the number of labels. That is,
the step size might be increased to 2.0 to show only every other label.
The default target number of steps for automatically selecting the X axis
scale step size (see ).
This number is an initial target value for the number of major steps
on an axis. This value is maintained only in the
class, and cannot be changed after compilation.
The default target number of steps for automatically selecting the Y or Y2 axis
scale step size (see ).
This number is an initial target value for the number of major steps
on an axis. This value is maintained only in the
class, and cannot be changed after compilation.
The default target number of minor steps for automatically selecting the X axis
scale minor step size (see ).
This number is an initial target value for the number of minor steps
on an axis. This value is maintained only in the
class, and cannot be changed after compilation.
The default target number of minor steps for automatically selecting the Y or Y2 axis
scale minor step size (see ).
This number is an initial target value for the number of minor steps
on an axis. This value is maintained only in the
class, and cannot be changed after compilation.
The default reverse mode for the scale
( property). true for a reversed scale
(X decreasing to the left, Y/Y2 decreasing upwards), false otherwise.
The default setting for the scale format string
( property). For numeric values, this value is
setting according to the format strings. For date
type values, this value is set as per the function.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 1825 days (5 years).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 730 days (2 years).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 300 days (10 months).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 10 days.
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 3 days.
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 0.4167 days (10 hours).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 0.125 days (3 hours).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 6.94e-3 days (10 minutes).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 2.083e-3 days (3 minutes).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
If the total span of data exceeds this number (in days), then the auto-range
code will select =
and = .
This value normally defaults to 3.472e-5 days (3 seconds).
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
A default setting for the auto-ranging code.
This values applies only to Date-Time type axes.
This is the format used for the scale values when auto-ranging code
selects a of
for and for
for .
This value is used by the method.
The default alignment of the tic labels.
This value controls whether the inside, center, or outside edges of the text labels are aligned.
The default alignment of the tic labels.
This value controls whether the left, center, or right edges of the text labels are aligned.
The default font family for the scale values
font specification
( property).
The default font size for the scale values
font specification
( property). Units are
in points (1/72 inch).
The default font color for the scale values
font specification
( property).
The default font bold mode for the scale values
font specification
( property). true
for a bold typeface, false otherwise.
The default font italic mode for the scale values
font specification
( property). true
for an italic typeface, false otherwise.
The default font underline mode for the scale values
font specification
( property). true
for an underlined typeface, false otherwise.
The default color for filling in the scale text background
(see property).
The default custom brush for filling in the scale text background
(see property).
The default fill mode for filling in the scale text background
(see property).
The default value for , which determines
whether or not the scale values are displayed.
The default value for , which determines
whether or not the scale labels and title for the will appear
on the opposite side of the that it normally appears.
Determines the size of the band at the beginning and end of the axis that will have labels
omitted if the axis is shifted due to a non-default location using the
property.
This parameter applies only when is false. It is scaled according
to the size of the graph based on . When a non-default
axis location is selected, the first and last labels on that axis will overlap the opposing
axis frame. This parameter allows those labels to be omitted to avoid the overlap. Set this
parameter to zero to turn off the effect.
The default setting for the gap between the outside tics (or the axis edge
if there are no outside tics) and the scale labels, expressed as a fraction of
the major tic size.
Basic constructor -- requires that the object be intialized with
a pre-existing owner .
The object that is the owner of this
instance.
Copy Constructor. Create a new object based on the specified
existing one.
The object to be copied.
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
A construction method that creates a new object using the
properties of an existing object, but specifying a new
.
This constructor is used to change the type of an existing .
By specifying the old object, you are giving a set of properties
(which encompasses all fields associated with the scale, since the derived types
have no fields) to be used in creating a new object, only this
time having the newly specified object type.
The existing object from which to
copy the field data.
An representing the type of derived type
of new object to create.
The new object.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to
serialize the target object
You MUST set the _ownerAxis property after deserializing a BarSettings object.
A instance that defines the serialized data
A instance that contains the serialized data
Get an enumeration that indicates the type of this scale.
True if this scale is , false otherwise.
True if this scale is , false otherwise.
True if this scale is , false otherwise.
True if this scale is , false otherwise.
True if this scale is , false otherwise.
Note that this is only true for an actual class.
This property will be false for other ordinal types such as
, ,
or . Use the
as a "catchall" for all ordinal type axes.
Gets a value that indicates if this is of any of the
ordinal types in the enumeration.
Gets or sets the minimum scale value for this .
This value can be set
automatically based on the state of . If
this value is set manually, then will
also be set to false.
The value is defined in user scale units for
and axes. For
and axes,
this value is an ordinal starting with 1.0. For
axes, this value is in XL Date format (see , which is the
number of days since the reference date of January 1, 1900.
Gets or sets the maximum scale value for this .
This value can be set
automatically based on the state of . If
this value is set manually, then will
also be set to false.
The value is defined in user scale units for
and axes. For
and axes,
this value is an ordinal starting with 1.0. For
axes, this value is in XL Date format (see , which is the
number of days since the reference date of January 1, 1900.
Gets or sets the scale step size for this (the increment between
labeled axis values).
This value can be set
automatically based on the state of . If
this value is set manually, then will
also be set to false. This value is ignored for
axes. For axes, this
value is defined in units of .
The value is defined in user scale units
Gets or sets the scale minor step size for this (the spacing between
minor tics).
This value can be set
automatically based on the state of . If
this value is set manually, then will
also be set to false. This value is ignored for and
axes. For axes, this
value is defined in units of .
The value is defined in user scale units
Gets or sets the scale exponent value. This only applies to .
Gets or sets the scale value at which the first major tic label will appear.
This property allows the scale labels to start at an irregular value.
For example, on a scale range with = 0, = 1000,
and = 200, a value of 50 would cause
the scale labels to appear at values 50, 250, 450, 650, and 850. Note that the
default value for this property is , which means the
value is not used. Setting this property to any value other than
will activate the effect. The value specified must
coincide with the first major tic. That is, if were set to
650 in the example above, then the major tics would only occur at 650 and 850. This
setting may affect the minor tics, since the minor tics are always referenced to the
. That is, in the example above, if the
were set to 30 (making it a non-multiple of the major step), then the minor tics would
occur at 20, 50 (so it lines up with the BaseTic), 80, 110, 140, etc.
The value is defined in user scale units
Gets or sets the type of units used for the major step size ().
This unit type only applies to Date-Time axes ( = true).
The axis is set to date type with the property.
The unit types are defined as .
The value is a enum type
Gets or sets the type of units used for the minor step size ().
This unit type only applies to Date-Time axes ( = true).
The axis is set to date type with the property.
The unit types are defined as .
The value is a enum type
Gets the major unit multiplier for this scale type, if any.
The major unit multiplier will correct the units of
to match the units of
and . This reflects the setting of
.
Gets the minor unit multiplier for this scale type, if any.
The minor unit multiplier will correct the units of
to match the units of
and . This reflects the setting of
.
Gets or sets a value that determines whether or not the minimum scale value
is set automatically.
This value will be set to false if
is manually changed.
true for automatic mode, false for manual mode
Gets or sets a value that determines whether or not the maximum scale value
is set automatically.
This value will be set to false if
is manually changed.
true for automatic mode, false for manual mode
Gets or sets a value that determines whether or not the scale step size
is set automatically.
This value will be set to false if
is manually changed.
true for automatic mode, false for manual mode
Gets or sets a value that determines whether or not the minor scale step size
is set automatically.
This value will be set to false if
is manually changed.
true for automatic mode, false for manual mode
Determines whether or not the scale label format
is determined automatically based on the range of data values.
This value will be set to false if
is manually changed.
true if will be set automatically, false
if it is to be set manually by the user
The format of the tic labels.
This property may be a date format or a numeric format, depending on the setting of
Scale.Type.
This property may be set automatically by ZedGraph, depending on the state of
.
The format string conforms to the
for date formats, and
for numeric formats.
The magnitude multiplier for scale values.
This is used to limit
the size of the displayed value labels. For example, if the value
is really 2000000, then the graph will display 2000 with a 10^3
magnitude multiplier. This value can be determined automatically
depending on the state of .
If this value is set manually by the user,
then will also be set to false.
The magnitude multiplier (power of 10) for the scale
value labels
Determines whether the value will be set
automatically based on the data, or manually by the user.
If the user manually sets the value, then this
flag will be set to false.
true to have set automatically,
false otherwise
Gets or sets the "grace" value applied to the minimum data range.
This value is
expressed as a fraction of the total data range. For example, assume the data
range is from 4.0 to 16.0, leaving a range of 12.0. If MinGrace is set to
0.1, then 10% of the range, or 1.2 will be subtracted from the minimum data value.
The scale will then be ranged to cover at least 2.8 to 16.0.
Gets or sets the "grace" value applied to the maximum data range.
This values determines how much extra space is left after the last data value.
This value is
expressed as a fraction of the total data range. For example, assume the data
range is from 4.0 to 16.0, leaving a range of 12.0. If MaxGrace is set to
0.1, then 10% of the range, or 1.2 will be added to the maximum data value.
The scale will then be ranged to cover at least 4.0 to 17.2.
Controls the alignment of the tic labels.
This property controls whether the inside, center, or outside edges of the
text labels are aligned.
Controls the alignment of the tic labels.
This property controls whether the left, center, or right edges of the
text labels are aligned.
Gets a reference to the class used to render
the scale values
The gap between the scale labels and the tics.
Gets or sets a value that causes the axis scale labels and title to appear on the
opposite side of the axis.
For example, setting this flag to true for the will shift the
axis labels and title to the right side of the instead of the
normal left-side location. Set this property to true for the ,
and set the property for the to an arbitrarily
large value (assuming is false for the ) in
order to have the appear at the top of the .
Gets or sets a value that causes the first scale label for this to be
hidden.
Often, for axis that have an active setting (e.g.,
is false), the first and/or last scale label are overlapped by opposing axes. Use this
property to hide the first scale label to avoid the overlap. Note that setting this value
to true will hide any scale label that appears within of the
beginning of the .
Gets or sets a value that causes the last scale label for this to be
hidden.
Often, for axis that have an active setting (e.g.,
is false), the first and/or last scale label are overlapped by opposing axes. Use this
property to hide the last scale label to avoid the overlap. Note that setting this value
to true will hide any scale label that appears within of the
end of the .
Gets or sets a value that causes the scale label that is located at the
value for this to be hidden.
For axes that have an active setting (e.g.,
is false), the scale label at the value is overlapped by opposing axes.
Use this property to hide the scale label to avoid the overlap.
Determines if the scale values are reversed for this
true for the X values to decrease to the right or the Y values to
decrease upwards, false otherwise
.
Determines if powers-of-ten notation will be used for the numeric value labels.
The powers-of-ten notation is just the text "10" followed by a superscripted value
indicating the magnitude. This mode is only valid for log scales (see
and ).
boolean value; true to show the title as a power of ten, false to
show a regular numeric value (e.g., "0.01", "10", "1000")
Gets or sets a value that determines if ZedGraph will check to
see if the scale labels are close enough to overlap. If so,
ZedGraph will adjust the step size to prevent overlap.
The process of checking for overlap is done during the
method call, and affects the selection of the major step size ().
boolean value; true to check for overlap, false otherwise
Gets or sets a property that determines whether or not the scale values will be shown.
true to show the scale values, false otherwise
.
The text labels for this .
This property is only
applicable if is set to .
Setup some temporary transform values in preparation for rendering the
.
This method is typically called by the parent
object as part of the method. It is also
called by and
methods to setup for coordinate transformations.
A reference to the object that is the parent or
owner of this object.
The parent for this
Convert a value to its linear equivalent for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the log or power equivalent.
The value to be converted
Convert a value from its linear equivalent to its actual scale value
for this type of scale.
The default behavior is to just return the value unchanged. However,
for and ,
it returns the anti-log or inverse-power equivalent.
The value to be converted
Make a value label for the axis at the specified ordinal position.
This method properly accounts for , ,
and other axis format settings.
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Get the maximum width of the scale value text that is required to label this
.
The results of this method are used to determine how much space is required for
the axis labels.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true to get the bounding box of the text using the ,
false to just get the bounding box without rotation
the maximum width of the text in pixel units
Determine the value for any major tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double)
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified major tic value (floating point double).
Determine the value for any minor tic.
This method properly accounts for , ,
and other axis format settings.
The value of the first major tic (floating point double). This tic value is the base
reference for all tics (including minor ones).
The major tic number (0 = first major tic). For log scales, this is the actual power of 10.
The specified minor tic value (floating point double).
Internal routine to determine the ordinals of the first minor tic mark
The value of the first major tic for the axis.
The ordinal position of the first minor tic, relative to the first major tic.
This value can be negative (e.g., -3 means the first minor tic is 3 minor step
increments before the first major tic.
Determine the value for the first major tic.
This is done by finding the first possible value that is an integral multiple of
the step size, taking into account the date/time units if appropriate.
This method properly accounts for , ,
and other axis format settings.
First major tic value (floating point double).
Draw the value labels, tic marks, and grid lines as
required for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The first major tic value for the axis
The total number of major tics for the axis
The pixel location of the far side of the ChartRect from this axis.
This value is the ChartRect.Height for the XAxis, or the ChartRect.Width
for the YAxis and Y2Axis.
The number of pixels to shift this axis, based on the
value of . A positive value is into the ChartRect relative to
the default axis position.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Draw the scale, including the tic marks, value labels, and grid lines as
required for this .
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
The number of pixels to shift to account for non-primary axis position (e.g.,
the second, third, fourth, etc. or .
Determine the width, in pixel units, of each bar cluster including
the cluster gaps and bar gaps.
This method uses the for
non-ordinal axes, or a cluster width of 1.0 for ordinal axes.
A reference to the object
associated with this
The width of each bar cluster, in pixel units
Calculates the cluster width, in pixels, by transforming the specified
clusterScaleWidth.
The width in user scale units of each
bar cluster
The equivalent pixel size of the bar cluster
Select a reasonable scale given a range of data values.
The scale range is chosen
based on increments of 1, 2, or 5 (because they are even divisors of 10). This
routine honors the , ,
and autorange settings as well as the
setting. In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values. The basic defaults for
scale selection are defined using ,
, and
from the default class.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Calculate the maximum number of labels that will fit on this axis.
This method works for
both X and Y direction axes, and it works for angled text (assuming that a bounding box
is an appropriate measure). Technically, labels at 45 degree angles could fit better than
the return value of this method since the bounding boxes can overlap without the labels actually
overlapping.
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Sets the Magnitude factor for the scale if the is set to true.
if is set to true then the label formatting will
be adjusted for the requried number of decimal places.
the minimum scale value.
the maximum scale value.
the scale stepping.
Calculate a step size based on a data range.
This utility method
will try to honor the and
number of
steps while using a rational increment (1, 2, or 5 -- which are
even divisors of 10). This method is used by .
The range of data in user scale units. This can
be a full range of the data for the major step size, or just the
value of the major step size to calculate the minor step size
The desired "typical" number of steps
to divide the range into
The calculated step size for the specified data range.
Calculate a step size based on a data range, limited to a maximum number of steps.
This utility method
will calculate a step size, of no more than maxSteps,
using a rational increment (1, 2, or 5 -- which are
even divisors of 10). This method is used by .
The range of data in user scale units. This can
be a full range of the data for the major step size, or just the
value of the major step size to calculate the minor step size
The maximum allowable number of steps
to divide the range into
The calculated step size for the specified data range.
Internal routine to determine the ordinals of the first and last major axis label.
This is the total number of major tics for this axis.
Calculate the modulus (remainder) in a safe manner so that divide
by zero errors are avoided
The divisor
The dividend
the value of the modulus, or zero for the divide-by-zero
case
Define suitable default ranges for an axis in the event that
no data were available
The of interest
The for which to set the range
Transform the coordinate value from user coordinates (scale value)
to graphics device coordinates (pixels).
This method takes into
account the scale range ( and ),
logarithmic state (), scale reverse state
() and axis type (,
, or ).
Note that the must be valid, and
must be called for the
current configuration before using this method (this is called everytime
the graph is drawn (i.e., is called).
The coordinate value, in user scale units, to
be transformed
the coordinate value transformed to screen coordinates
for use in calling the draw routines
Transform the coordinate value from user coordinates (scale value)
to graphics device coordinates (pixels).
This method takes into
account the scale range ( and ),
logarithmic state (), scale reverse state
() and axis type (,
, or ).
Note that the must be valid, and
must be called for the
current configuration before using this method (this is called everytime
the graph is drawn (i.e., is called).
true to force the axis to honor the data
value, rather than replacing it with the ordinal value
The ordinal value of this point, just in case
this is an axis
The coordinate value, in user scale units, to
be transformed
the coordinate value transformed to screen coordinates
for use in calling the draw routines
Reverse transform the user coordinates (scale value)
given a graphics device coordinate (pixels).
This method takes into
account the scale range ( and ),
logarithmic state (), scale reverse state
() and axis type (,
, or ).
Note that the must be valid, and
must be called for the
current configuration before using this method (this is called everytime
the graph is drawn (i.e., is called).
The screen pixel value, in graphics device coordinates to
be transformed
The user scale value that corresponds to the screen pixel location
Transform the coordinate value from user coordinates (scale value)
to graphics device coordinates (pixels).
Assumes that the origin
has been set to the "left" of this axis, facing from the label side.
Note that the left side corresponds to the scale minimum for the X and
Y2 axes, but it is the scale maximum for the Y axis.
This method takes into
account the scale range ( and ),
logarithmic state (), scale reverse state
() and axis type (,
, or ). Note that
the must be valid, and
must be called for the
current configuration before using this method.
The coordinate value, in linearized user scale units, to
be transformed
the coordinate value transformed to screen coordinates
for use in calling the method
Calculate a base 10 logarithm in a safe manner to avoid math exceptions
The value for which the logarithm is to be calculated
The value of the logarithm, or 0 if the
argument was negative or zero
Calculate an exponential in a safe manner to avoid math exceptions
The value for which the exponential is to be calculated
The exponent value to use for calculating the exponential.
A class that captures an scale range.
This structure is used by the class to store
scale range settings in a collection for later retrieval.
The class stores the , ,
, and properties, along with
the corresponding auto-scale settings: ,
, ,
and .
John Champion
$Revision: 3.2 $ $Date: 2007-02-19 08:05:24 $
The axis range data for , ,
, and
The axis range data for , ,
, and
The axis range data for , ,
, and
The axis range data for , ,
, and
The status of ,
, ,
and
The status of ,
, ,
and
The status of ,
, ,
and
The status of ,
, ,
and
The status of ,
, ,
and
The status of ,
, ,
and
The status of and
The status of and
Construct a from the specified
The from which to collect the scale
range settings.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Copy the properties from this out to the specified .
The reference to which the properties should be
copied
Determine if the state contained in this object is different from
the state of the specified .
The object with which to compare states.
true if the states are different, false otherwise
A collection class that maintains a list of
objects, corresponding to the list of objects
from or .
Construct a new automatically from an
existing .
The (a list of Y axes),
from which to retrieve the state and create the
objects.
Construct a new automatically from an
existing .
The (a list of Y axes),
from which to retrieve the state and create the
objects.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Iterate through the list of objects, comparing them
to the state of the specified
objects.
A object specifying a list of
objects to be compared with this .
true if a difference is found, false otherwise
Iterate through the list of objects, comparing them
to the state of the specified
objects.
A object specifying a list of
objects to be compared with this .
true if a difference is found, false otherwise
A simple struct to store minimum and maximum type
values for the scroll range
Construct a object given the specified data values.
The minimum axis value limit for the scroll bar
The maximum axis value limit for the scroll bar
true to make this item scrollable, false otherwise
Sets the scroll range to default values of zero, and sets the
property as specified.
true to make this item scrollable, false otherwise
The Copy Constructor
The object from which to copy
Gets or sets a property that determines if the corresponding to
this object can be scrolled.
The minimum axis value limit for the scroll bar.
The maximum axis value limit for the scroll bar.
A collection class containing a list of objects.
John Champion
$Revision: 3.3 $ $Date: 2006-06-24 20:26:43 $
Default constructor for the collection class.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Indexer to access the specified object by
its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
A object instance
John Champion and JCarpenter
$Revision: 3.5 $ $Date: 2007-03-11 02:08:16 $
Subscribe to this event to receive notice
that the list of selected CurveItems has changed
The type to be used for drawing "selected"
, , ,
, and item types.
The type to be used for drawing "selected"
, , ,
and item types.
The type to be used for drawing "selected"
and types
The type to be used for drawing "selected"
and types.
Place a in the selection list, removing all other
items.
The that is the "owner"
of the 's.
The to be added to the list.
Place a list of 's in the selection list, removing all other
items.
The that is the "owner"
of the 's.
The list of to be added to the list.
Add a to the selection list.
The that is the "owner"
of the 's.
The to be added to the list.
Add a list of 's to the selection list.
The that is the "owner"
of the 's.
The list of 's to be added to the list.
Remove the specified from the selection list.
The that is the "owner"
of the 's.
The to be removed from the list.
Clear the selection list and trigger a .
The that "owns" the selection list.
Clear the selection list and optionally trigger a .
The that "owns" the selection list.
true to trigger a ,
false otherwise.
Mark the 's that are included in the selection list
by setting the property to true.
The that "owns" the selection list.
Encapsulates a curve type that is displayed as a series of vertical "sticks",
one at each defined point.
The sticks run from the zero value of the Y axis, to the Y point defined in each
of the (see ).
The properties of the sticks are defined in the property.
Normally, the is not visible. However, if you manually enable the
using the property, the
symbols will be drawn at the "Z" value from each (see
).
John Champion
$Revision: 1.7 $ $Date: 2007-01-25 07:56:09 $
Gets a flag indicating if the Z data range should be included in the axis scaling calculations.
The parent of this .
true if the Z data are included, false otherwise
Gets a flag indicating if the X axis is the independent axis for this
The parent of this .
true if the X axis is independent, false otherwise
Create a new , specifying only the legend .
The label that will appear in the legend.
Create a new using the specified properties.
The label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
A value that will be applied to
the and properties.
The width (in points) to be used for the . This
width is scaled based on . Use a value of zero to
hide the line (see ).
Create a new using the specified properties.
The label that will appear in the legend.
An array of double precision values that define
the independent (X axis) values for this curve
An array of double precision values that define
the dependent (Y axis) values for this curve
A value that will be applied to
the and properties.
Create a new using the specified properties.
The label that will appear in the legend.
A of double precision value pairs that define
the X and Y values for this curve
A value that will be applied to
the and properties.
Create a new using the specified properties.
The label that will appear in the legend.
A of double precision value pairs that define
the X and Y values for this curve
A value that will be applied to
the and properties.
The width (in points) to be used for the . This
width is scaled based on . Use a value of zero to
hide the line (see ).
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
A collection class containing a list of objects
that define the set of points to be displayed on the curve.
John Champion based on code by Jerry Vos
$Revision: 3.4 $ $Date: 2007-02-18 05:51:54 $
Indexer to access the specified object by
its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
A object reference.
Default constructor for the collection class
The Copy Constructor
The StockPointList from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Add a object to the collection at the end of the list.
The object to
be added
Add a object to the collection at the end of the list.
The object to be added
Add a object to the collection at the end of the list using
the specified values. The unspecified values (low, open, close) are all set to
.
An value
The high value for the day
The zero-based ordinal index where the point was added in the list.
Add a single point to the from values of type double.
An value
The high value for the day
The low value for the day
The opening value for the day
The closing value for the day
The trading volume for the day
The zero-based ordinal index where the point was added in the list.
Access the at the specified ordinal index.
To be compatible with the interface, the
must implement an index that returns a
rather than a . This method
will return the actual at the specified position.
The ordinal position (zero-based) in the list
The specified .
The basic class holds three data values (X, Y, Z). This
class extends the basic PointPair to contain five data values (X, Y, Z, Open, Close).
The values are remapped to , ,
, , and .
John Champion
$Revision: 3.4 $ $Date: 2007-02-07 07:46:46 $
This opening value
This closing value
This daily trading volume
This is a user value that can be anything. It is used to provide special
property-based coloration to the graph elements.
Default Constructor
Construct a new StockPt from the specified data values
The trading date ()
The opening stock price
The closing stock price
The daily high stock price
The daily low stock price
The daily trading volume
Construct a new StockPt from the specified data values including a Tag property
The trading date ()
The opening stock price
The closing stock price
The daily high stock price
The daily low stock price
The daily trading volume
The user-defined property.
The StockPt copy constructor.
The basis for the copy.
The StockPt copy constructor.
The basis for the copy.
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Map the Date property to the X value
Map the high property to the Y value
Map the low property to the Z value
The ColorValue property. This is used with the
option.
Readonly value that determines if either the Date, Close, Open, High, or Low
coordinate in this StockPt is an invalid (not plotable) value.
It is considered invalid if it is missing (equal to System.Double.Max),
Infinity, or NaN.
true if any value is invalid
Format this StockPt value using the default format. Example: "( 12.345, -16.876 )".
The two double values are formatted with the "g" format type.
true to show all the value coordinates
A string representation of the .
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
If
is true, then the third all coordinates are shown.
A format string that will be used to format each of
the two double type values (see ).
A string representation of the PointPair
true to show all the value coordinates
This class handles the drawing of the curve objects.
The symbols are the small shapes that appear over each defined point
along the curve.
John Champion
$Revision: 3.37 $ $Date: 2007-09-19 06:41:56 $
Private field that stores the size of this
in points (1/72 inch). Use the public
property to access this value.
Private field that stores the for this
. Use the public
property to access this value.
private field that determines if the symbols are drawn using
Anti-Aliasing capabilities from the class.
Use the public property to access
this value.
Private field that stores the visibility of this
. Use the public
property to access this value. If this value is
false, the symbols will not be shown (but the may
still be shown).
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the data for this
. Use the public property to
access this value.
Private field that stores the user defined data for this
. Use the public property to
access this value.
A simple struct that defines the
default property values for the class.
The default size for curve symbols ( property),
in units of points.
The default pen width to be used for drawing curve symbols
( property). Units are points.
The default color for filling in this
( property).
The default custom brush for filling in this
( property).
The default fill mode for the curve ( property).
The default symbol type for curves ( property).
This is defined as a enumeration.
The default value for the
property.
The default display mode for symbols ( property).
true to display symbols, false to hide them.
The default for drawing frames around symbols ( property).
true to display symbol frames, false to hide them.
The default color for drawing symbols ( property).
Gets or sets the size of the
Size in points (1/72 inch)
Gets or sets the type (shape) of the
A enum value indicating the shape
Gets or sets a value that determines if the symbols are drawn using
Anti-Aliasing capabilities from the class.
If this value is set to true, then the
property will be set to only while
this is drawn. A value of false will leave the value of
unchanged.
Gets or sets a property that shows or hides the .
true to show the symbol, false to hide it
Gets or sets the data for this
.
Gets or sets the data for this
, which controls the border outline of the symbol.
Gets or sets the data for this
, describing the user-defined symbol type.
This value only applies if Symbol.Type
is SymbolType.UserDefined
Default constructor that sets all properties to default
values as defined in the class.
Default constructor that sets the and
as specified, and the remaining
properties to default
values as defined in the class.
A enum value
indicating the shape of the symbol
A value indicating
the color of the symbol
The Copy Constructor
The Symbol object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Draw the to the specified device
at the specified location. This routine draws a single symbol.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The x position of the center of the symbol in
pixel units
The y position of the center of the symbol in
pixel units
A previously constructed by
for this symbol
A class representing the standard pen for this symbol
A class representing a default solid brush for this symbol
If this symbol uses a , it will be created on the fly for
each point, since it has to be scaled to the individual point coordinates.
Draw the to the specified device
at the specified location. This routine draws a single symbol.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The x position of the center of the symbol in
pixel units
The y position of the center of the symbol in
pixel units
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
The data value to be used for a value-based
color gradient. This is only applicable for ,
or .
Indicates that the should be drawn
with attributes from the class.
Create a struct for the current symbol based on the
specified scaleFactor and assuming the symbol will be centered at position 0,0.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor for the features of the graph based on the . This
scaling factor is calculated by the method. The scale factor
represents a linear multiple to be applied to font sizes, symbol sizes, etc.
Returns the for the current symbol
Draw this to the specified
device as a symbol at each defined point. The routine
only draws the symbols; the lines are draw by the
method. This method
is normally only called by the Draw method of the
object
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
A representing this
curve.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Indicates that the should be drawn
with attributes from the class.
A class that represents a text object on the graph. A list of
objects is maintained by the
collection class.
John Champion
$Revision: 3.4 $ $Date: 2007-01-25 07:56:09 $
Private field to store the actual text string for this
. Use the public property
to access this value.
Private field to store the class used to render
this . Use the public property
to access this class.
Private field holding the SizeF into which this
should be rendered. Use the public property
to access this value.
A simple struct that defines the
default property values for the class.
The default font family for the text
( property).
The default font size for the text
( property). Units are
in points (1/72 inch).
The default font color for the text
( property).
The default font bold mode for the text
( property). true
for a bold typeface, false otherwise.
The default font underline mode for the text
( property). true
for an underlined typeface, false otherwise.
The default font italic mode for the text
( property). true
for an italic typeface, false otherwise.
The to be displayed. This text can be multi-line by
including newline ('\n') characters between the lines.
Gets a reference to the class used to render
this
Constructor that sets all properties to default
values as defined in the class.
The text to be displayed.
The x position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The y position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
Constructor that sets all properties to default
values as defined in the class.
The text to be displayed.
The x position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The y position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
Constructor that sets all properties to default
values as defined in the class.
The text to be displayed.
The x position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The y position of the text. The units
of this position are specified by the
property. The text will be
aligned to this position based on the
property.
The enum value that
indicates what type of coordinate system the x and y parameters are
referenced to.
The enum that specifies
the horizontal alignment of the object with respect to the (x,y) location
The enum that specifies
the vertical alignment of the object with respect to the (x,y) location
Parameterless constructor that initializes a new .
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Render this object to the specified device
This method is normally only called by the Draw method
of the parent collection object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determine if the specified screen point lies inside the bounding box of this
. This method takes into account rotation and alignment
parameters of the text, as specified in the .
The screen point, in pixels
A reference to the object that is the parent or
owner of this object.
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
true if the point lies in the bounding box, false otherwise
Determines the shape type and Coords values for this GraphObj
The TextScale class inherits from the class, and implements
the features specific to .
TextScale is an ordinal axis with user-defined text labels. An ordinal axis means that
all data points are evenly spaced at integral values, and the actual coordinate values
for points corresponding to that axis are ignored. That is, if the X axis is an
ordinal type, then all X values associated with the curves are ignored.
John Champion
$Revision: 1.8 $ $Date: 2006-08-25 05:19:09 $
The Copy Constructor
The object from which to copy
The object that will own the
new instance of
Create a new clone of the current item, with a new owner assignment
The new instance that will be
the owner of the new Scale
A new clone.
Internal routine to determine the ordinals of the first minor tic mark
The value of the first major tic for the axis.
The ordinal position of the first minor tic, relative to the first major tic.
This value can be negative (e.g., -3 means the first minor tic is 3 minor step
increments before the first major tic.
Determine the value for the first major tic.
This is done by finding the first possible value that is an integral multiple of
the step size, taking into account the date/time units if appropriate.
This method properly accounts for , ,
and other axis format settings.
First major tic value (floating point double).
Internal routine to determine the ordinals of the first and last major axis label.
This is the total number of major tics for this axis.
Select a reasonable text axis scale given a range of data values.
This method only applies to type axes, and it
is called by the general method. This is an ordinal
type, such that the labeled values start at 1.0 and increment by 1.0 for
each successive label. The maximum number of labels on the graph is
determined by . If necessary, this method will
set the value to greater than 1.0 in order to keep the total
labels displayed below . For example, a
size of 2.0 would only display every other label on the
axis. The value calculated by this routine is always
an integral value. This
method honors the , ,
and autorange settings.
In the event that any of the autorange settings are false, the
corresponding , , or
setting is explicitly honored, and the remaining autorange settings (if any) will
be calculated to accomodate the non-autoranged values.
On Exit:
is set to scale minimum (if = true)
is set to scale maximum (if = true)
is set to scale step size (if = true)
is set to scale minor step size (if = true)
is set to a magnitude multiplier according to the data
is set to the display format for the values (this controls the
number of decimal places, whether there are thousands separators, currency types, etc.)
A reference to the object
associated with this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Make a value label for an .
A reference to the object that is the parent or
owner of this object.
The zero-based, ordinal index of the label to be generated. For example, a value of 2 would
cause the third value label on the axis to be generated.
The numeric value associated with the label. This value is ignored for log ()
and text () type axes.
The resulting value label as a
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Enumeration type for the various axis types that are available
An ordinary, cartesian axis
A base 10 log axis
A cartesian axis with calendar dates or times
An ordinal axis with user-defined text labels. An ordinal axis means that
all data points are evenly spaced at integral values, and the actual coordinate values
for points corresponding to that axis are ignored. That is, if the X axis is an
ordinal type, then all X values associated with the curves are ignored.
An ordinal axis with regular numeric labels. An ordinal axis means that
all data points are evenly spaced at integral values, and the actual coordinate values
for points corresponding to that axis are ignored. That is, if the X axis is an
ordinal type, then all X values associated with the curves are ignored.
An ordinal axis that will have labels formatted with ordinal values corresponding
to the number of values in each .
The data points will be evenly-spaced at ordinal locations, and the
actual data values are ignored.
An ordinal axis that will have labels formatted with values from the actual data
values of the first in the .
Although the tics are labeled with real data values, the actual points will be
evenly-spaced in spite of the data values. For example, if the X values of the first curve
are 1, 5, and 100, then the tic labels will show 1, 5, and 100, but they will be equal
distance from each other.
An exponential axis
Enumeration type for the various types of fills that can be used with
charts.
No fill
A solid fill using
A custom fill using either or
Fill with a single solid color based on the X value of the data.
The X value is
used to determine the color value based on a gradient brush, and using a data range
of and . You can create a multicolor
range by initializing the class with your own custom
object based on a . In cases where a
data value makes no sense (, ,
etc.), a default value of 50% of the range is assumed. The default range is 0 to 1.
Fill with a single solid color based on the Z value of the data.
The Z value is
used to determine the color value based on a gradient brush, and using a data range
of and . You can create a multicolor
range by initializing the class with your own custom
object based on a . In cases where a
data value makes no sense (, ,
etc.), a default value of 50% of the range is assumed. The default range is 0 to 1.
Fill with a single solid color based on the Z value of the data.
The Z value is
used to determine the color value based on a gradient brush, and using a data range
of and . You can create a multicolor
range by initializing the class with your own custom
object based on a . In cases where a
data value makes no sense (, ,
etc.), a default value of 50% of the range is assumed. The default range is 0 to 1.
Fill with a single solid color based on the "ColorValue" property of the data.
The "ColorValue" property is
used to determine the color value based on a gradient brush, and using a data range
of and . You can create a multicolor
range by initializing the class with your own custom
object based on a . In cases where a
data value makes no sense (, ,
etc.), a default value of 50% of the range is assumed. The default range is 0 to 1.
Enumeration type for the various axis date and time unit types that are available
Yearly units and
Monthly units and
Daily units and
Hourly units and
Minute units and
Second units and
Millisecond units and
Enumeration type for the various symbol shapes that are available
Square-shaped
Rhombus-shaped
Equilateral triangle
Uniform circle
"X" shaped . This symbol cannot
be filled since it has no outline.
"+" shaped . This symbol cannot
be filled since it has no outline.
Asterisk-shaped . This symbol
cannot be filled since it has no outline.
Unilateral triangle , pointing
down.
Horizontal dash . This symbol cannot be
filled since it has no outline.
Vertical dash . This symbol cannot be
filled since it has no outline.
A symbol defined by the propery.
If no symbol is defined, the . symbol will
be used.
A Default symbol type (the symbol type will be obtained
from .
No symbol is shown (this is equivalent to using
= false.
Enumeration type that defines the possible legend locations
Locate the above the
Locate the on the left side of the
Locate the on the right side of the
Locate the below the
Locate the inside the in the
top-left corner.
Locate the inside the in the
top-right corner.
Locate the inside the in the
bottom-left corner.
Locate the inside the in the
bottom-right corner.
Locate the as a floating object above the graph at the
location specified by .
Locate the centered above the
Locate the centered below the
Locate the above the , but flush
against the left margin of the .
Locate the below the , but flush
against the left margin of the .
Enumeration type for the different horizontal text alignment options
Position the text so that its left edge is aligned with the
specified X,Y location. Used by the
method.
Position the text so that its center is aligned (horizontally) with the
specified X,Y location. Used by the
method.
Position the text so that its right edge is aligned with the
specified X,Y location. Used by the
method.
Enumeration type for the different proximal alignment options
Position the text so that its "inside" edge (the edge that is
nearest to the alignment reference point or object) is aligned.
Used by the method to align text
to the axis.
Position the text so that its center is aligned with the
reference object or point.
Used by the method to align text
to the axis.
Position the text so that its right edge (the edge that is
farthest from the alignment reference point or object) is aligned.
Used by the method to align text
to the axis.
Enumeration type for the different vertical text alignment options
specified X,Y location. Used by the
method.
Position the text so that its top edge is aligned with the
specified X,Y location. Used by the
method.
Position the text so that its center is aligned (vertically) with the
specified X,Y location. Used by the
method.
Position the text so that its bottom edge is aligned with the
specified X,Y location. Used by the
method.
Enumeration type for the user-defined coordinate types available.
These coordinate types are used the objects
and objects only.
Coordinates are specified as a fraction of the
. That is, for the X coordinate, 0.0
is at the left edge of the ChartRect and 1.0
is at the right edge of the ChartRect. A value less
than zero is left of the ChartRect and a value
greater than 1.0 is right of the ChartRect. For the Y coordinate, 0.0
is the top and 1.0 is the bottom.
Coordinates are specified as a fraction of the
. That is, for the X coordinate, 0.0
is at the left edge of the Rect and 1.0
is at the right edge of the Rect. A value less
than zero is left of the Rect and a value
greater than 1.0 is right of the Rect. For the Y coordinate, 0.0
is the top and 1.0 is the bottom. Note that
any value less than zero or greater than 1.0 will be outside
the Rect, and therefore clipped.
Coordinates are specified according to the user axis scales
for the and .
Coordinates are specified according to the user axis scales
for the and .
The X coordinate is specified as a fraction of the ,
and the Y coordinate is specified as a fraction of the .
For the X coordinate, 0.0
is at the left edge of the ChartRect and 1.0
is at the right edge of the ChartRect. A value less
than zero is left of the ChartRect and a value
greater than 1.0 is right of the ChartRect. For the Y coordinate, a value of zero is at
the left side of the pane, and a value of 1.0 is at the right side of the pane.
The X coordinate is specified as a fraction of the ,
and the Y coordinate is specified as a fraction of the .
For the X coordinate, a value of zero is at
the left side of the pane, and a value of 1.0 is at the right side of the pane.
For the Y coordinate, 0.0
is at the top edge of the ChartRect and 1.0
is at the bottom edge of the ChartRect. A value less
than zero is above the ChartRect and a value
greater than 1.0 is below the ChartRect.
The X coordinate is specified as an X Scale value, and the Y coordinate
is specified as a fraction of the .
For the X coordinate, the value just corresponds to the values of the X scale.
Values outside the scale range will be
outside the . For the Y coordinate, 0.0
is at the top edge of the ChartRect and 1.0
is at the bottom edge of the ChartRect. A value less
than zero is above the ChartRect and a value
greater than 1.0 is below the ChartRect.
The X coordinate is specified as a fraction of the
and the Y coordinate is specified as
a Y scale value.
For the X coordinate, 0.0
is at the left edge of the ChartRect and 1.0
is at the right edge of the ChartRect. A value less
than zero is left of the ChartRect and a value
greater than 1.0 is right of the ChartRect. For the Y coordinate, the value just
corresponds to the values of the Y scale. Values outside the scale range will be
outside the .
The X coordinate is specified as a fraction of the
and the Y coordinate is specified as
a Y2 scale value.
For the X coordinate, 0.0
is at the left edge of the ChartRect and 1.0
is at the right edge of the ChartRect. A value less
than zero is left of the ChartRect and a value
greater than 1.0 is right of the ChartRect. For the Y coordinate, the value just
corresponds to the values of the Y2 scale. Values outside the scale range will be
outside the .
Enumeration type that defines how a curve is drawn. Curves can be drawn
as ordinary lines by connecting the points directly, or in a stair-step
fashion as a series of discrete, constant values. In a stair step plot,
all lines segments are either horizontal or vertical. In a non-step (line)
plot, the lines can be any angle.
Draw the as a stair-step in which each
point defines the
beginning (left side) of a new stair. This implies the points are
defined at the beginning of an "event."
Draw the as a stair-step in which each
point defines the end (right side) of a new stair. This implies
the points are defined at the end of an "event."
Draw the as an ordinary line, in which the
points are connected directly by line segments.
Draw the as a segment in which each point defines the
beginning (left side) of a new "stair." This implies the points are defined
at the beginning of an "event." Note that ForwardSegment is different
from ForwardStep in that it does not draw the vertical portion of the step.
Draw the as a segment in which each point defines the
end (right side) of a new "stair." This implies the points are defined
at the end of an "event." Note that RearwardSegment is different
from RearwardStep in that it does not draw the vertical portion of the step.
Enumeration type that defines the base axis from which graphs
are displayed. The bars can be drawn on any of the four axes (,
, , and ).
Draw the chart based from the .
Draw the chart based from the .
Draw the chart based from the .
Draw the chart based from the .
Enumeration type that defines the available types of graphs.
Draw the lines as normal. Any fill area goes from each line down to the X Axis.
Draw the lines stacked on top of each other, accumulating values to a total value.
Enumeration type that defines the available types of graphs.
Draw each side by side in clusters.
Draw the bars one on top of the other. The bars will
be drawn such that the last bar in the will be behind
all other bars. Note that the bar values are not summed up for the overlay
mode. The data values must be summed before being passed
to .
For example, if the first bar of
the first has a value of 100, and the first bar of
the second has a value of 120, then that bar will
appear to be 20 units on top of the first bar.
Draw the bars one on top of the other. The bars will
be drawn such that the bars are sorted according to the maximum value, with
the tallest bar at each point at the back and the shortest bar at the front.
This is similar to the mode, but the bars are sorted at
each base value.
The data values must be summed before being passed
to . For example, if the first bar of
the first has a value of 100, and the first bar of
the second has a value of 120, then that bar will
appear to be 20 units on top of the first bar.
Draw the bars in an additive format so that they stack on
top of one another. The value of the last bar drawn will be the sum of the values
of all prior bars.
Draw the bars in a format whereby the height of each
represents the percentage of the total each one represents. Negative values
are displayed below the zero line as percentages of the absolute total of all values.
Enumeration type that defines which set of data points - X or Y - is used
to perform the sort.
Use the Y values to sort the list.
Use the X values to sort the list.
Enumeration that specifies a Z-Order position for
objects.
This enumeration allows you to set the layering of various graph
features. Except for the objects, other feature types
all have a fixed depth as follows (front to back):
objects
The border around
objects
The features
The background fill of the
The pane
The background fill of the
You cannot place anything behind the
background fill, but allows you to
explicitly control the depth of objects
between all other object types. For items of equal ,
such as multiple 's or 's
having the same value, the relative depth is
controlled by the ordinal position in the list (either
or ).
objects
can be placed in the of either a
or a . For a
-based , all
values are applicable. For a -based
, any value can be used, but there
are really only three depths:
will place the item behind the pane title,
will place on top of all other graph features,
any other value places the object above the pane title, but behind the 's.
Specifies that the will be behind all other
objects (including the ).
Specifies that the will be behind the
background
(see ).
Specifies that the will be behind the grid lines.
Specifies that the will be behind the
objects.
Specifies that the will be behind the
objects.
Specifies that the will be behind the
border.
Specifies that the will be behind the
object.
Specifies that the will be in front of
all other objects, except for the other
objects that have the same and are before
this object in the .
Enumeration that determines the type of label that is displayed for each pie slice
(see ).
Displays and for
a slice in a Pie Chart.
Displays and (as % of total) for
a slice in a Pie Chart.
Displays a containing the both
as an absolute number and as percentage of the total.
Displays for
a slice in a Pie Chart.
Displays (as % of total) for
a slice in a Pie Chart.
Displays for a slice in a Pie Chart.
No label displayed.
Define the auto layout options for the
method.
Layout the 's so they are in a square grid (always 2x2, 3x3, 4x4),
leaving blank spaces as required.
For example, a single pane would generate a 1x1 grid, between 2 and 4 panes would generate
a 2x2 grid, 5 to 9 panes would generate a 3x3 grid.
Layout the 's so they are in a general square (2x2, 3x3, etc.), but use extra
columns when necessary (row x column = 1x2, 2x3, 3x4, etc.) depending on the total number
of panes required.
For example, a 2x2 grid has four panes and a 3x3 grid has 9 panes. If there are
6 panes required, then this option will eliminate a row (column preferred) to make a
2 row x 3 column grid. With 7 panes, it will make a 3x3 grid with 2 empty spaces.
Layout the 's so they are in a general square (2x2, 3x3, etc.), but use extra
rows when necessary (2x1, 3x2, 4x3, etc.) depending on the total number of panes required.
For example, a 2x2 grid has four panes and a 3x3 grid has 9 panes. If there are
6 panes required, then this option will eliminate a column (row preferred) to make a
3 row x 2 column grid. With 7 panes, it will make a 3x3 grid with 2 empty spaces.
Layout the 's in a single row
Layout the 's in a single column
Layout the 's with an explicit number of columns: The first row has
1 column and the second row has 2 columns for a total of 3 panes.
Layout the 's with an explicit number of columns: The first row has
2 columns and the second row has 1 column for a total of 3 panes.
Layout the 's with an explicit number of columns: The first row has
2 columns and the second row has 3 columns for a total of 5 panes.
Layout the 's with an explicit number of columns: The first row has
3 columns and the second row has 2 columns for a total of 5 panes.
Layout the 's with an explicit number of rows: The first column has
1 row and the second column has 2 rows for a total of 3 panes.
Layout the 's with an explicit number of rows: The first column has
2 rows and the second column has 1 row for a total of 3 panes.
Layout the 's with an explicit number of rows: The first column has
2 rows and the second column has 3 rows for a total of 5 panes.
Layout the 's with an explicit number of rows: The first column has
3 rows and the second column has 2 rows for a total of 5 panes.
Enum for specifying the type of data to be returned by the ZedGraphWeb Render() method.
Renders as an IMG tag referencing a local generated image. ContentType stays text.
Renders the binary image. ContentType is changed accordingly.
A class designed to simplify the process of getting the actual value for
the various stacked and regular curve types
John Champion
$Revision: 3.21 $ $Date: 2008-12-02 12:55:34 $
Basic constructor that saves a reference to the parent
object.
The parent object.
A flag to indicate whether or
not the drawing variables should be initialized. Initialization is not
required if this is part of a ZedGraph internal draw operation (i.e., its in
the middle of a call to ). Otherwise, you should
initialize to make sure the drawing variables are configured. true to do
an initialization, false otherwise.
Get the user scale values associate with a particular point of a
particular curve.
The main purpose of this method is to handle
stacked bars, in which case the stacked values are returned rather
than the individual data values.
A object of interest.
The zero-based point index for the point of interest.
A value representing the value
for the independent axis.
A value representing the lower
value for the dependent axis.
A value representing the upper
value for the dependent axis.
true if the data point is value, false for
, invalid, etc. data.
Get the user scale values associate with a particular point of a
particular curve.
The main purpose of this method is to handle
stacked bars and lines, in which case the stacked values are returned rather
than the individual data values. However, this method works generically for any
curve type.
The parent object.
A object of interest.
The zero-based point index for the point of interest.
A value representing the value
for the independent axis.
A value representing the lower
value for the dependent axis.
A value representing the upper
value for the dependent axis.
true if the data point is value, false for
, invalid, etc. data.
Calculate the user scale position of the center of the specified bar, using the
as specified by . This method is
used primarily by the
method in order to
determine the bar "location," which is defined as the center of the top of the individual bar.
The representing the
bar of interest.
The width of each individual bar. This can be calculated using
the method.
The cluster number for the bar of interest. This is the ordinal
position of the current point. That is, if a particular has
10 points, then a value of 3 would indicate the 4th point in the data array.
The actual independent axis value for the bar of interest.
The ordinal position of the of interest.
That is, the first bar series is 0, the second is 1, etc. Note that this applies only
to the bars. If a graph includes both bars and lines, then count only the bars.
A user scale value position of the center of the bar of interest.
inherits from , and defines the
special characteristics of a horizontal axis, specifically located at
the top of the of the
object
John Champion
$Revision: 3.1 $ $Date: 2007-04-16 00:03:07 $
A simple struct that defines the
default property values for the class.
The default display mode for the
( property). true to display the scale
values, title, tic marks, false to hide the axis entirely.
Determines if a line will be drawn at the zero value for the
, that is, a line that
divides the negative values from positive values.
.
Default constructor that sets all properties to
default values as defined in the class
Default constructor that sets all properties to
default values as defined in the class, except
for the axis title
The for this axis
The Copy Constructor
The X2Axis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Setup the Transform Matrix to handle drawing of this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determines if this object is a "primary" one.
The primary axes are the (always),
the (always), the first
in the
( = 0), and the first
in the
( = 0). Note that
and
always reference the primary axes.
A reference to the object that is the parent or
owner of this object.
true for a primary (for the ,
this is always true), false otherwise
Calculate the "shift" size, in pixels, in order to shift the axis from its default
location to the value specified by .
A reference to the object that is the parent or
owner of this object.
The shift amount measured in pixels
Gets the "Cross" axis that corresponds to this axis.
The cross axis is the axis which determines the of this Axis when the
Axis.Cross property is used. The
cross axis for any or
is always the primary , and
the cross axis for any or is
always the primary .
A reference to the object that is the parent or
owner of this object.
inherits from , and defines the
special characteristics of a horizontal axis, specifically located at
the bottom of the of the
object
John Champion
$Revision: 3.16 $ $Date: 2007-04-16 00:03:02 $
A simple struct that defines the
default property values for the class.
The default display mode for the
( property). true to display the scale
values, title, tic marks, false to hide the axis entirely.
Determines if a line will be drawn at the zero value for the
, that is, a line that
divides the negative values from positive values.
.
Default constructor that sets all properties to
default values as defined in the class
Default constructor that sets all properties to
default values as defined in the class, except
for the axis title
The for this axis
The Copy Constructor
The XAxis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Setup the Transform Matrix to handle drawing of this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determines if this object is a "primary" one.
The primary axes are the (always), the first
in the
( = 0), and the first
in the
( = 0). Note that
and
always reference the primary axes.
A reference to the object that is the parent or
owner of this object.
true for a primary (for the ,
this is always true), false otherwise
Calculate the "shift" size, in pixels, in order to shift the axis from its default
location to the value specified by .
A reference to the object that is the parent or
owner of this object.
The shift amount measured in pixels
Gets the "Cross" axis that corresponds to this axis.
The cross axis is the axis which determines the of this Axis when the
Axis.Cross property is used. The
cross axis for any or
is always the primary , and
the cross axis for any or is
always the primary .
A reference to the object that is the parent or
owner of this object.
This struct encapsulates a date and time value, and handles associated
calculations and conversions between various formats.
This format stored as a double value representing days since a reference date
(XL date 0.0 is December 30, 1899 at 00:00 hrs).
Negative values are permissible, and the
range of valid dates is from noon on January 1st, 4713 B.C. forward. Internally, the
date calculations are done using Astronomical Julian Day numbers. The Astronomical Julian
Day number is defined as the number of days since noon on January 1st, 4713 B.C.
(also referred to as 12:00 on January 1, -4712).
NOTE: MS Excel actually has an error in the Serial Date calculations because it
errantly assumes 1900 is a leap year. The XDate calculations do not have this same
error. Therefore, XDate and Excel Date Serial values are 1 day different up until
the date value of 60 (in Excel, this is February 29th, 1900, and in XDate, this is
February 28th, 1900). At a value of 61 (March 1st, 1900) or greater, they agree with
eachother.
John Champion
$Revision: 3.23 $ $Date: 2007-11-11 06:56:34 $
The actual date value in MS Excel format. This is the only data field in
the struct.
The Astronomical Julian Day number that corresponds to XL Date 0.0
The minimum valid Julian Day, which corresponds to January 1st, 4713 B.C.
The maximum valid Julian Day, which corresponds to December 31st, 9999 A.D.
The minimum valid Excel Day, which corresponds to January 1st, 4713 B.C.
The maximum valid Excel Day, which corresponds to December 31st, 9999 A.D.
The number of months in a year
The number of hours in a day
The number of minutes in an hour
The number of seconds in a minute
The number of minutes in a day
The number of seconds in a day
The number of milliseconds in a second
The number of milliseconds in a day
The default format string to be used in when
no format is provided
Construct a date class from an XL date value.
An XL Date value in floating point double format
Construct a date class from a struct.
A struct containing the initial date information.
Construct a date class from a calendar date (year, month, day). Assumes the time
of day is 00:00 hrs
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
It is permissible to have day numbers outside of the 1-31 range,
which will rollover to the previous or next month and year.
An integer value for the month of the year, e.g.,
8 for August. It is permissible to have months outside of the 1-12 range,
which will rollover to the previous or next year.
Construct a date class from a calendar date and time (year, month, day, hour, minute,
second).
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
It is permissible to have day numbers outside of the 1-31 range,
which will rollover to the previous or next month and year.
An integer value for the month of the year, e.g.,
8 for August. It is permissible to have months outside of the 1-12 range,
which will rollover to the previous or next year.
An integer value for the hour of the day, e.g. 15.
It is permissible to have hour values outside the 0-23 range, which
will rollover to the previous or next day.
An integer value for the minute, e.g. 45.
It is permissible to have hour values outside the 0-59 range, which
will rollover to the previous or next hour.
An integer value for the second, e.g. 35.
It is permissible to have second values outside the 0-59 range, which
will rollover to the previous or next minute.
Construct a date class from a calendar date and time (year, month, day, hour, minute,
second), where seconds is a value (allowing fractional seconds).
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
It is permissible to have day numbers outside of the 1-31 range,
which will rollover to the previous or next month and year.
An integer value for the month of the year, e.g.,
8 for August. It is permissible to have months outside of the 1-12 range,
which will rollover to the previous or next year.
An integer value for the hour of the day, e.g. 15.
It is permissible to have hour values outside the 0-23 range, which
will rollover to the previous or next day.
An integer value for the minute, e.g. 45.
It is permissible to have hour values outside the 0-59 range, which
will rollover to the previous or next hour.
A double value for the second, e.g. 35.75.
It is permissible to have second values outside the 0-59 range, which
will rollover to the previous or next minute.
Construct a date class from a calendar date and time (year, month, day, hour, minute,
second, millisecond).
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
It is permissible to have day numbers outside of the 1-31 range,
which will rollover to the previous or next month and year.
An integer value for the month of the year, e.g.,
8 for August. It is permissible to have months outside of the 1-12 range,
which will rollover to the previous or next year.
An integer value for the hour of the day, e.g. 15.
It is permissible to have hour values outside the 0-23 range, which
will rollover to the previous or next day.
An integer value for the minute, e.g. 45.
It is permissible to have hour values outside the 0-59 range, which
will rollover to the previous or next hour.
An integer value for the second, e.g. 35.
It is permissible to have second values outside the 0-59 range, which
will rollover to the previous or next minute.
An integer value for the millisecond, e.g. 632.
It is permissible to have millisecond values outside the 0-999 range, which
will rollover to the previous or next second.
The Copy Constructor
The GraphPane object from which to copy
Gets or sets the date value for this item in MS Excel format.
Returns true if this struct is in the valid date range
Gets or sets the date value for this item in .Net DateTime format.
Gets or sets the date value for this item in Julain day format. This is the
Astronomical Julian Day number, so a value of 0.0 corresponds to noon GMT on
January 1st, -4712. Thus, Julian Day number 2,400,000.0 corresponds to
noon GMT on November 16, 1858.
Gets or sets the decimal year number (i.e., 1997.345) corresponding to this item.
Returns true if the specified date value is in the valid range
The XL date value to be verified for validity
true for a valid date, false otherwise
Take the specified date, and bound it to the valid date range for the XDate struct.
The date to be bounded
An XLDate value that lies between the minimum and maximum valid date ranges
(see and )
Get the calendar date (year, month, day) corresponding to this instance.
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
An integer value for the month of the year, e.g.,
8 for August.
Set the calendar date (year, month, day) of this instance.
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
An integer value for the month of the year, e.g.,
8 for August.
Get the calendar date (year, month, day, hour, minute, second) corresponding
to this instance.
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
An integer value for the month of the year, e.g.,
8 for August.
An integer value for the hour of the day, e.g. 15.
An integer value for the minute, e.g. 45.
An integer value for the second, e.g. 35.
Set the calendar date (year, month, day, hour, minute, second) of this instance.
An integer value for the year, e.g., 1995.
An integer value for the day of the month, e.g., 23.
An integer value for the month of the year, e.g.,
8 for August.
An integer value for the hour of the day, e.g. 15.
An integer value for the minute, e.g. 45.
An integer value for the second, e.g. 35.
Get the day of year value (241.345 means the 241st day of the year)
corresponding to this instance.
The day of the year in floating point double format.
Calculate an XL Date from the specified Calendar date (year, month, day, hour, minute, second),
first normalizing all input data values.
The Calendar date is always based on the Gregorian Calendar. Note that the Gregorian calendar is really
only valid from October 15, 1582 forward. The countries that adopted the Gregorian calendar
first did so on October 4, 1582, so that the next day was October 15, 1582. Prior to that time
the Julian Calendar was used. However, Prior to March 1, 4 AD the treatment of leap years was
inconsistent, and prior to 45 BC the Julian Calendar did not exist. The
struct projects only Gregorian dates backwards and does not deal with Julian calendar dates at all. The
method will just append a "(BC)" notation to the end of any dates
prior to 1 AD, since the struct throws an exception when formatting earlier dates.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The integer millisecond value (e.g., 374 for 374 milliseconds past the second).
The corresponding XL date, expressed in double floating point format
Calculate an XL Date from the specified Calendar date (year, month, day, hour, minute, second),
first normalizing all input data values.
The Calendar date is always based on the Gregorian Calendar. Note that the Gregorian calendar is really
only valid from October 15, 1582 forward. The countries that adopted the Gregorian calendar
first did so on October 4, 1582, so that the next day was October 15, 1582. Prior to that time
the Julian Calendar was used. However, Prior to March 1, 4 AD the treatment of leap years was
inconsistent, and prior to 45 BC the Julian Calendar did not exist. The
struct projects only Gregorian dates backwards and does not deal with Julian calendar dates at all. The
method will just append a "(BC)" notation to the end of any dates
prior to 1 AD, since the struct throws an exception when formatting earlier dates.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The corresponding XL date, expressed in double floating point format
Calculate an XL Date from the specified Calendar date (year, month, day, hour, minute, second),
first normalizing all input data values. The seconds value is a double type, allowing fractional
seconds.
The Calendar date is always based on the Gregorian Calendar. Note that the Gregorian calendar is really
only valid from October 15, 1582 forward. The countries that adopted the Gregorian calendar
first did so on October 4, 1582, so that the next day was October 15, 1582. Prior to that time
the Julian Calendar was used. However, Prior to March 1, 4 AD the treatment of leap years was
inconsistent, and prior to 45 BC the Julian Calendar did not exist. The
struct projects only Gregorian dates backwards and does not deal with Julian calendar dates at all. The
method will just append a "(BC)" notation to the end of any dates
prior to 1 AD, since the struct throws an exception when formatting earlier dates.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The double second value (e.g., 42.3 for 42.3 seconds past the minute).
The corresponding XL date, expressed in double floating point format
Calculate an Astronomical Julian Day number from the specified Calendar date
(year, month, day, hour, minute, second), first normalizing all input data values
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The corresponding Astronomical Julian Day number, expressed in double
floating point format
Calculate an Astronomical Julian Day number from the specified Calendar date
(year, month, day, hour, minute, second), first normalizing all input data values
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The integer second value (e.g., 325 for 325 milliseconds past the minute).
The corresponding Astronomical Julian Day number, expressed in double
floating point format
Normalize a set of Calendar date values (year, month, day, hour, minute, second) to make sure
that month is between 1 and 12, hour is between 0 and 23, etc.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The double millisecond value (e.g., 325.3 for 325.3 milliseconds past the second).
Calculate an XL date from the specified Calendar date (year, month, day, hour, minute, second).
This is the internal trusted version, where all values are assumed to be legitimate
( month is between 1 and 12, minute is between 0 and 59, etc. )
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The double millisecond value (e.g., 325.3 for 325.3 milliseconds past the second).
The corresponding XL date, expressed in double floating point format
Calculate an Astronomical Julian Day Number from the specified Calendar date
(year, month, day, hour, minute, second).
This is the internal trusted version, where all values are assumed to be legitimate
( month is between 1 and 12, minute is between 0 and 59, etc. )
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The double millisecond value (e.g., 325.3 for 325.3 milliseconds past the second).
The corresponding Astronomical Julian Day number, expressed in double
floating point format
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the specified XL date
The XL date value in floating point double format.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the specified XL date
The XL date value in floating point double format.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The integer millisecond value (e.g., 325 for 325 milliseconds past the second).
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the specified XL date
The XL date value in floating point double format.
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The double second value (e.g., 42.3 for 42.3 seconds past the minute).
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the Astronomical Julian Day number
The Astronomical Julian Day number to be converted
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the Astronomical Julian Day number
The Astronomical Julian Day number to be converted
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The double second value (e.g., 42.3 for 42.3 seconds past the minute).
Calculate a Calendar date (year, month, day, hour, minute, second) corresponding to
the Astronomical Julian Day number
The Astronomical Julian Day number to be converted
The integer year value (e.g., 1994).
The integer month value (e.g., 7 for July).
The integer day value (e.g., 19 for the 19th day of the month).
The integer hour value (e.g., 14 for 2:00 pm).
The integer minute value (e.g., 35 for 35 minutes past the hour).
The integer second value (e.g., 42 for 42 seconds past the minute).
The millisecond value (e.g., 342.5 for 342.5 milliseconds past
the second).
Calculate an Astronomical Julian Day number corresponding to the specified XL date
The XL date value in floating point double format.
The corresponding Astronomical Julian Day number, expressed in double
floating point format
Calculate an XL Date corresponding to the specified Astronomical Julian Day number
The Astronomical Julian Day number in floating point double format.
The corresponding XL Date, expressed in double
floating point format
Calculate a decimal year value (e.g., 1994.6523) corresponding to the specified XL date
The XL date value in floating point double format.
The corresponding decimal year value, expressed in double
floating point format
Calculate a decimal year value (e.g., 1994.6523) corresponding to the specified XL date
The decimal year value in floating point double format.
The corresponding XL Date, expressed in double
floating point format
Calculate a day-of-year value (e.g., 241.543 corresponds to the 241st day of the year)
corresponding to the specified XL date
The XL date value in floating point double format.
The corresponding day-of-year (DoY) value, expressed in double
floating point format
Calculate a day-of-week value (e.g., Sun=0, Mon=1, Tue=2, etc.)
corresponding to the specified XL date
The XL date value in floating point double format.
The corresponding day-of-week (DoW) value, expressed in integer format
Convert an XL date format to a .Net DateTime struct
The XL date value in floating point double format.
The corresponding XL Date, expressed in double
floating point format
The corresponding date in the form of a .Net DateTime struct
Convert a .Net DateTime struct to an XL Format date
The date value in the form of a .Net DateTime struct
The corresponding XL Date, expressed in double
floating point format
Add the specified number of milliseconds (can be fractional) to the current XDate instance.
The incremental number of milliseconds (negative or positive) in floating point double format.
Add the specified number of seconds (can be fractional) to the current XDate instance.
The incremental number of seconds (negative or positive) in floating point double format.
Add the specified number of minutes (can be fractional) to the current XDate instance.
The incremental number of minutes (negative or positive) in floating point double format.
Add the specified number of hours (can be fractional) to the current XDate instance.
The incremental number of hours (negative or positive) in floating point double format.
Add the specified number of days (can be fractional) to the current XDate instance.
The incremental number of days (negative or positive) in floating point double format.
Add the specified number of Months (can be fractional) to the current XDate instance.
The incremental number of months (negative or positive) in floating point double format.
Add the specified number of years (can be fractional) to the current XDate instance.
The incremental number of years (negative or positive) in floating point double format.
'-' operator overload. When two XDates are subtracted, the number of days between dates
is returned.
The left-hand-side of the '-' operator (an XDate class)
The right-hand-side of the '-' operator (an XDate class)
The days between dates, expressed as a floating point double
'-' operator overload. When a double value is subtracted from an XDate, the result is a
new XDate with the number of days subtracted.
The left-hand-side of the '-' operator (an XDate class)
The right-hand-side of the '-' operator (a double value)
An XDate with the rhs number of days subtracted
'+' operator overload. When a double value is added to an XDate, the result is a
new XDate with the number of days added.
The left-hand-side of the '-' operator (an XDate class)
The right-hand-side of the '+' operator (a double value)
An XDate with the rhs number of days added
'++' operator overload. Increment the date by one day.
The XDate struct on which to operate
An XDate one day later than the specified date
'--' operator overload. Decrement the date by one day.
The XDate struct on which to operate
An XDate one day prior to the specified date
Implicit conversion from XDate to double (an XL Date).
The XDate struct on which to operate
A double floating point value representing the XL Date
Implicit conversion from XDate to float (an XL Date).
The XDate struct on which to operate
A double floating point value representing the XL Date
Implicit conversion from double (an XL Date) to XDate.
The XDate struct on which to operate
An XDate struct representing the specified xlDate value.
Implicit conversion from XDate to .
The XDate struct on which to operate
A struct representing the specified xDate value.
Implicit conversion from to .
The struct on which to operate
An struct representing the specified DateTime value.
Tests whether obj is either an structure or
a double floating point value that is equal to the same date as this XDate
struct instance.
The object to compare for equality with this XDate instance.
This object should be either a type XDate or type double.
Returns true if obj is the same date as this
instance; otherwise, false
Returns the hash code for this structure. In this case, the
hash code is simply the equivalent hash code for the floating point double date value.
An integer representing the hash code for this XDate value
Compares one object to another.
This method will throw an exception if is not an
object.
The second object to be compared.
zero if is equal to the current instance,
-1 if is less than the current instance, and
1 if is greater than the current instance.
Format this XDate value using the default format string ().
The formatting is done using the
method in order to provide full localization capability. The DateTime struct is limited to
dates from 1 AD onward. However, all calendar dates in and
are projected Gregorian calendar dates. Since the Gregorian calendar was not implemented
until October 4, 1582 (or later in some countries), Gregorian dates prior to that time are
really dates that would have been, had the Gregorian calendar existed. In order to avoid
throwing an exception, for dates prior to 1 AD, the year will be converted to a positive
year and the text "(BC)" is appended to the end of the formatted string. Under this mode, the
year sequence is 2BC, 1BC, 1AD, 2AD, etc. There is no year zero.
The XL date value to be formatted in floating point double format.
A string representation of the date
Format this XDate value using the default format string (see cref="DefaultFormatStr"/>).
The formatting is done using the
method in order to provide full localization capability. The DateTime struct is limited to
dates from 1 AD onward. However, all calendar dates in and
are projected Gregorian calendar dates. Since the Gregorian calendar was not implemented
until October 4, 1582 (or later in some countries), Gregorian dates prior to that time are
really dates that would have been, had the Gregorian calendar existed. In order to avoid
throwing an exception, for dates prior to 1 AD, the year will be converted to a positive
year and the text "(BC)" is appended to the end of the formatted string. Under this mode, the
year sequence is 2BC, 1BC, 1AD, 2AD, etc. There is no year zero.
A string representation of the date
Format this XL Date value using the specified format string. The format
string is specified according to the class.
The formatting is done using the
method in order to provide full localization capability. The DateTime struct is limited to
dates from 1 AD onward. However, all calendar dates in and
are projected Gregorian calendar dates. Since the Gregorian calendar was not implemented
until October 4, 1582 (or later in some countries), Gregorian dates prior to that time are
really dates that would have been, had the Gregorian calendar existed. In order to avoid
throwing an exception, for dates prior to 1 AD, the year will be converted to a positive
year and the text "(BC)" is appended to the end of the formatted string. Under this mode, the
year sequence is 2BC, 1BC, 1AD, 2AD, etc. There is no year zero.
The formatting string to be used for the date. See
class for a list of the format types available.
A string representation of the date
Format the specified XL Date value using the specified format string. The format
string is specified according to the class.
The formatting is done using the
method in order to provide full localization capability. The DateTime struct is limited to
dates from 1 AD onward. However, all calendar dates in and
are projected Gregorian calendar dates. Since the Gregorian calendar was not implemented
until October 4, 1582 (or later in some countries), Gregorian dates prior to that time are
really dates that would have been, had the Gregorian calendar existed. In order to avoid
throwing an exception, for dates prior to 1 AD, the year will be converted to a positive
year and the text "(BC)" is appended to the end of the formatted string. Under this mode, the
year sequence is 2BC, 1BC, 1AD, 2AD, etc. There is no year zero.
The XL date value to be formatted in floating point double format.
The formatting string to be used for the date. See
for a list of the format types available.
A string representation of the date
inherits from , and defines the
special characteristics of a vertical axis, specifically located on
the right side of the of the
object
John Champion
$Revision: 3.16 $ $Date: 2007-04-16 00:03:05 $
A simple subclass of the class that defines the
default property values for the class.
The default display mode for the
( property). true to display the scale
values, title, tic marks, false to hide the axis entirely.
Determines if a line will be drawn at the zero value for the
, that is, a line that
divides the negative values from positive values.
.
Default constructor that sets all properties to
default values as defined in the class
Default constructor that sets all properties to
default values as defined in the class, except
for the axis title
The for this axis
The Copy Constructor
The Y2Axis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Setup the Transform Matrix to handle drawing of this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determines if this object is a "primary" one.
The primary axes are the (always), the first
in the
( = 0), and the first
in the
( = 0). Note that
and
always reference the primary axes.
A reference to the object that is the parent or
owner of this object.
true for a primary , false otherwise
Calculate the "shift" size, in pixels, in order to shift the axis from its default
location to the value specified by .
A reference to the object that is the parent or
owner of this object.
The shift amount measured in pixels
Gets the "Cross" axis that corresponds to this axis.
The cross axis is the axis which determines the of this Axis when the
Axis.Cross property is used. The
cross axis for any or
is always the primary , and
the cross axis for any or is
always the primary .
A reference to the object that is the parent or
owner of this object.
A collection class containing a list of objects.
John Champion
$Revision: 3.3 $ $Date: 2006-06-24 20:26:43 $
Default constructor for the collection class.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Indexer to access the specified object by
its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
An object reference.
Indexer to access the specified object by
its string.
The string title of the
object to be accessed.
A object reference.
Return the zero-based position index of the
with the specified .
The comparison of titles is not case sensitive, but it must include
all characters including punctuation, spaces, etc.
The label that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the was not found in the list
Return the zero-based position index of the
with the specified .
In order for this method to work, the
property must be of type .
The tag that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the string is not in the list
Create a new and add it to this list.
The title string for the new axis
An integer representing the ordinal position of the new in
this . This is the value that you would set the
property of a given to
assign it to this new . Note that, for a ,
you would also need to set the property to true.
inherits from , and defines the
special characteristics of a vertical axis, specifically located on
the right side of the of the
object
John Champion
$Revision: 3.16 $ $Date: 2007-04-16 00:03:06 $
A simple struct that defines the
default property values for the class.
The default display mode for the
( property). true to display the scale
values, title, tic marks, false to hide the axis entirely.
Determines if a line will be drawn at the zero value for the
, that is, a line that
divides the negative values from positive values.
.
Default constructor that sets all properties to
default values as defined in the class
Default constructor that sets all properties to
default values as defined in the class, except
for the axis title
The for this axis
The Copy Constructor
The YAxis object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Current schema value that defines the version of the serialized file
Constructor for deserializing objects
A instance that defines the serialized data
A instance that contains the serialized data
Populates a instance with the data needed to serialize the target object
A instance that defines the serialized data
A instance that contains the serialized data
Setup the Transform Matrix to handle drawing of this
A graphic device object to be drawn into. This is normally e.Graphics from the
PaintEventArgs argument to the Paint() method.
A reference to the object that is the parent or
owner of this object.
The scaling factor to be used for rendering objects. This is calculated and
passed down by the parent object using the
method, and is used to proportionally adjust
font sizes, etc. according to the actual size of the graph.
Determines if this object is a "primary" one.
The primary axes are the (always), the first
in the
( = 0), and the first
in the
( = 0). Note that
and
always reference the primary axes.
A reference to the object that is the parent or
owner of this object.
true for a primary , false otherwise
Calculate the "shift" size, in pixels, in order to shift the axis from its default
location to the value specified by .
A reference to the object that is the parent or
owner of this object.
The shift amount measured in pixels
Gets the "Cross" axis that corresponds to this axis.
The cross axis is the axis which determines the of this Axis when the
Axis.Cross property is used. The
cross axis for any or
is always the primary , and
the cross axis for any or is
always the primary .
A reference to the object that is the parent or
owner of this object.
A collection class containing a list of objects.
John Champion
$Revision: 3.3 $ $Date: 2006-06-24 20:26:43 $
Default constructor for the collection class.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Indexer to access the specified object by
its ordinal position in the list.
The ordinal position (zero-based) of the
object to be accessed.
An object reference.
Indexer to access the specified object by
its string.
The string title of the
object to be accessed.
A object reference.
Return the zero-based position index of the
with the specified .
The comparison of titles is not case sensitive, but it must include
all characters including punctuation, spaces, etc.
The label that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the was not found in the list
Return the zero-based position index of the
with the specified .
In order for this method to work, the
property must be of type .
The tag that is in the
attribute of the item to be found.
The zero-based index of the specified ,
or -1 if the string is not in the list
Create a new and add it to this list.
The title string for the new axis
An integer representing the ordinal position of the new in
this . This is the value that you would set the
property of a given to
assign it to this new .
An exception thrown by ZedGraph. A child class of .
Jerry Vos modified by John Champion
$Revision: 3.2 $ $Date: 2006-06-24 20:26:44 $
Initializes a new instance of the
class with serialized data.
The
instance that holds the serialized object data about the exception being thrown.
The
instance that contains contextual information about the source or destination.
Initializes a new instance of the class with a specified
error message and a reference to the inner exception that is the cause of this exception.
The error message that explains the reason for the exception.
The exception that is the cause of the current exception.
If the innerException parameter is not a null reference, the current exception is raised
in a catch block that handles the inner exception.
Initializes a new instance of the class with a specified error message.
The error message that explains the reason for the exception.
Initializes a new instance of the class.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to Image copied to clipboard.
Looks up a localized string similar to Copy.
Looks up a localized string similar to Page Setup....
Looks up a localized string similar to Print....
Looks up a localized string similar to Save Image As....
Looks up a localized string similar to Set Scale to Default.
Looks up a localized string similar to Show Point Values.
Looks up a localized string similar to Title.
Looks up a localized string similar to Undo All Zoom/Pan.
Looks up a localized string similar to Un-Pan.
Looks up a localized string similar to Undo Scroll.
Looks up a localized string similar to Un-Zoom.
Looks up a localized string similar to X Axis.
Looks up a localized string similar to Y Axis.
A class that captures all the scale range settings for a .
This class is used to store scale ranges in order to allow zooming out to
prior scale range states. objects are maintained in the
collection. The object holds
a object for each of the three axes; the ,
the , and the .
John Champion
$Revision: 3.15 $ $Date: 2007-04-16 00:03:07 $
An enumeration that describes whether a given state is the result of a Pan or Zoom
operation.
Indicates the object is from a Zoom operation
Indicates the object is from a Wheel Zoom operation
Indicates the object is from a Pan operation
Indicates the object is from a Scroll operation
objects to store the state data from the axes.
objects to store the state data from the axes.
An enum value indicating the type of adjustment being made to the
scale range state.
Gets a value indicating the type of action (zoom or pan)
saved by this .
Gets a string representing the type of adjustment that was made when this scale
state was saved.
A string representation for the state change type; typically
"Pan", "Zoom", or "Scroll".
Construct a object from the scale ranges settings contained
in the specified .
The from which to obtain the scale
range values.
A enumeration that indicates whether
this saved state is from a pan or zoom.
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Copy the properties from this out to the specified .
The to which the scale range properties should be
copied.
Determine if the state contained in this object is different from
the state of the specified .
The object with which to compare states.
true if the states are different, false otherwise
A LIFO stack of prior objects, used to allow zooming out to prior
states (of scale range settings).
John Champion
$Revision: 3.1 $ $Date: 2006-06-24 20:26:44 $
Default Constructor
The Copy Constructor
The object from which to copy
Implement the interface in a typesafe manner by just
calling the typed version of
A deep copy of this object
Typesafe, deep-copy clone method.
A new, independent copy of this class
Public readonly property that indicates if the stack is empty
true for an empty stack, false otherwise
Add the scale range information from the specified object as a
new entry on the stack.
The object from which the scale range
information should be copied.
A enumeration that indicates whether this
state is the result of a zoom or pan operation.
The resultant object that was pushed on the stack.
Add the scale range information from the specified object as a
new entry on the stack.
The object to be placed on the stack.
The object (same as the
parameter).
Pop a entry from the top of the stack, and apply the properties
to the specified object.
The object to which the scale range
information should be copied.
The object that was "popped" from the stack and applied
to the specified . null if no was
available (the stack was empty).
Pop the entry from the bottom of the stack, and apply the properties
to the specified object. Clear the stack completely.
The object to which the scale range
information should be copied.
The object at the bottom of the stack that was applied
to the specified . null if no was
available (the stack was empty).
Gets a reference to the object at the top of the stack,
without actually removing it from the stack.
A object reference, or null if the stack is empty.