IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Forms.GraphBase Class Reference

Graph data & control class. More...

+ Inheritance diagram for IG.Forms.GraphBase:
+ Collaboration diagram for IG.Forms.GraphBase:

Public Member Functions

 GraphBase (string description, string title)
 
GraphAxisItem AddXAxis ()
 Adds a new X axis to the graph and returns it. More...
 
GraphAxisItem AddYAxis ()
 Adds a new Y axis to the graph and returns it. More...
 
void RemoveAxis (GraphAxisItem axis)
 Removes the specified axis from the graph. More...
 
GraphAxisItem getXAxis ()
 Returns the first axis for which IsXAxis evaluates to true. More...
 
GraphAxisItem getYAxis ()
 Returns the first axis for which IsYAxis evaluates to true. More...
 
GraphAxisItem getX2Axis ()
 Returns the first axis for which IsX2Axis evaluates to true. More...
 
GraphAxisItem getY2Axis ()
 Returns the first axis for which IsY2Axis evaluates to true. More...
 
void OpenModalWindow ()
 Opens a new modal window containing the graph control that renders the current graph. More...
 
void OpenWindow ()
 Creates and shows in a new thread a window containing the graph control that renders the current graph. More...
 
void DetachGraphWindow ()
 Removes the top-level graph window. More...
 

Static Public Member Functions

static void Example ()
 

Protected Member Functions

void OpenWindowCurrentThread ()
 Opens a new modal window containing the graph control that renders the current graph. More...
 

Protected Attributes

string _title
 
string _description
 
ZedGraphControl _graphControl
 
Thread _windowThread
 

Properties

object Lock [get]
 
PaneBase Pane [get]
 The graph pane the chart is show in. More...
 
MasterPane MasterPane [get]
 The graph pane the chart is show in. More...
 
GraphPane GraphPane [get]
 The graph pane the chart is show in (same as .Pane). More...
 
virtual string Title [get, set]
 Graph title. More...
 
virtual string Description [get, set]
 Graph description. More...
 
ZedGraphControl GraphControl [get, protected set]
 The control the graph pane is in. More...
 
List< GraphAxisItemAxes [get]
 Gets a list of axes maintained in the graph. More...
 
List< GraphPlotItemPlotItems [get]
 Gets a list of plot items (such as lines or bar charts) contained in the graph. More...
 
Form ContainingForm [get, set]
 
Control ContainingControl [get, set]
 
Thread WindowThread [get, protected set]
 Thread in which new window is opened. More...
 
- Properties inherited from IG.Lib.ILockable
object Lock [get]
 

Private Member Functions

void Init (string description, string title)
 

Private Attributes

object _lock = new object()
 
List< GraphAxisItem_axes = new List<GraphAxisItem>()
 
List< GraphPlotItem_plotItems = new List<GraphPlotItem>()
 
Form _containingForm = null
 
Control _containingControl
 

Detailed Description

Graph data & control class.

Constructor & Destructor Documentation

IG.Forms.GraphBase.GraphBase ( string  description,
string  title 
)
inline

Member Function Documentation

void IG.Forms.GraphBase.Init ( string  description,
string  title 
)
inlineprivate
GraphAxisItem IG.Forms.GraphBase.AddXAxis ( )
inline

Adds a new X axis to the graph and returns it.

References IG.Forms.GraphAxisItem.IsX2Axis, and IG.Forms.GraphAxisItem.IsXAxis.

GraphAxisItem IG.Forms.GraphBase.AddYAxis ( )
inline

Adds a new Y axis to the graph and returns it.

References IG.Forms.GraphAxisItem.IsY2Axis, and IG.Forms.GraphAxisItem.IsYAxis.

void IG.Forms.GraphBase.RemoveAxis ( GraphAxisItem  axis)
inline

Removes the specified axis from the graph.

Parameters
axis

References IG.Forms.GraphAxisItem.DetachFromGraph().

GraphAxisItem IG.Forms.GraphBase.getXAxis ( )
inline

Returns the first axis for which IsXAxis evaluates to true.

References IG.Forms.GraphAxisItem.IsXAxis.

GraphAxisItem IG.Forms.GraphBase.getYAxis ( )
inline

Returns the first axis for which IsYAxis evaluates to true.

References IG.Forms.GraphAxisItem.IsYAxis.

GraphAxisItem IG.Forms.GraphBase.getX2Axis ( )
inline

Returns the first axis for which IsX2Axis evaluates to true.

References IG.Forms.GraphAxisItem.IsX2Axis.

GraphAxisItem IG.Forms.GraphBase.getY2Axis ( )
inline

Returns the first axis for which IsY2Axis evaluates to true.

References IG.Forms.GraphAxisItem.IsY2Axis.

void IG.Forms.GraphBase.OpenModalWindow ( )
inline

Opens a new modal window containing the graph control that renders the current graph.

void IG.Forms.GraphBase.OpenWindow ( )
inline

Creates and shows in a new thread a window containing the graph control that renders the current graph.

void IG.Forms.GraphBase.OpenWindowCurrentThread ( )
inlineprotected

Opens a new modal window containing the graph control that renders the current graph.

References IG.Forms.GraphWindow.GraphControl, IG.Lib.App.Rep, and IG.Lib.IReporterBase.ReportError().

void IG.Forms.GraphBase.DetachGraphWindow ( )
inline

Removes the top-level graph window.

static void IG.Forms.GraphBase.Example ( )
inlinestatic

Member Data Documentation

string IG.Forms.GraphBase._title
protected
string IG.Forms.GraphBase._description
protected
object IG.Forms.GraphBase._lock = new object()
private
ZedGraphControl IG.Forms.GraphBase._graphControl
protected
List<GraphAxisItem> IG.Forms.GraphBase._axes = new List<GraphAxisItem>()
private
List<GraphPlotItem> IG.Forms.GraphBase._plotItems = new List<GraphPlotItem>()
private
Form IG.Forms.GraphBase._containingForm = null
private
Control IG.Forms.GraphBase._containingControl
private
Thread IG.Forms.GraphBase._windowThread
protected

Property Documentation

object IG.Forms.GraphBase.Lock
get
PaneBase IG.Forms.GraphBase.Pane
get

The graph pane the chart is show in.

MasterPane IG.Forms.GraphBase.MasterPane
get

The graph pane the chart is show in.

GraphPane IG.Forms.GraphBase.GraphPane
get

The graph pane the chart is show in (same as .Pane).

virtual string IG.Forms.GraphBase.Title
getset

Graph title.

virtual string IG.Forms.GraphBase.Description
getset

Graph description.

ZedGraphControl IG.Forms.GraphBase.GraphControl
getprotected set

The control the graph pane is in.

List<GraphAxisItem> IG.Forms.GraphBase.Axes
get

Gets a list of axes maintained in the graph.

List<GraphPlotItem> IG.Forms.GraphBase.PlotItems
get

Gets a list of plot items (such as lines or bar charts) contained in the graph.

Referenced by IG.Forms.GraphLineItem.GraphLineItem().

Form IG.Forms.GraphBase.ContainingForm
getset
Control IG.Forms.GraphBase.ContainingControl
getset
Thread IG.Forms.GraphBase.WindowThread
getprotected set

Thread in which new window is opened.


The documentation for this class was generated from the following file: