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.GraphAxisItem Class Reference

Contains data and methods for manipulating a single axis item of a graph. Axis items manipulate axis labels and axis ticks. More...

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

Public Member Functions

 GraphAxisItem (GraphBase graph)
 
override void UpdateInGraph ()
 Updates the current item in the containing ZedGraph's control. A ZedGraph item corresponding to the current item is updated according to data contained in this item. More...
 
override void DetachFromGraph ()
 Detaches the current item from ZedGraph's graph control. If ZedGraph control contains any items that are managed by the current item, these items may be set invisible or be disposed. References to related representations in the Zedgraph control are deleted, such that connection of the item with the Zedgraph's graph object is broken. More...
 
- Public Member Functions inherited from IG.Forms.GraphItem
 GraphItem (GraphBase graph)
 

Protected Member Functions

void ResetAxisAssociations ()
 Resets all data that associate this axis with any pre-definied axis. More...
 

Protected Attributes

ZedGraph.Axis _axisData = new ZedGraph.XAxis()
 
ZedGraph.Axis _axis
 
bool _isXaxis
 
bool _isX2axis
 
bool _isYaxis
 
bool _isY2axis
 
int _axisIndex =-1
 

Properties

ZedGraph.Axis AxisData [get]
 Axis data containing the settings for the current axis. More...
 
int Index [get]
 Gets index of the current axis on the Graph. More...
 
ZedGraph.Axis Axis [get, protected set]
 ZedGraph axes controlled by the current axis. More...
 
bool IsXAxis [get, set]
 Whether the current axis represents an X axis of the ZegGraph control. More...
 
bool IsX2Axis [get, set]
 Whether the current axis represents an X2 axis of the ZegGraph control. More...
 
bool IsYAxis [get, set]
 Whether the current axis represents an left-hand side Y axis of the ZegGraph control. More...
 
bool IsY2Axis [get, set]
 Whether the current axis represents an right-hand side Y axis of the ZegGraph control. More...
 
double Min [get, set]
 Gets or sets minimal value on the scale. More...
 
double Max [get, set]
 Gets or sets maximal value on the scale. Get tries to return ZedGraph axis' maximum, and set tries to set the ZedGrapg axis max. Set also stores the value to internal variable from where Zedgraph's axis value is set on update. More...
 
bool IsVisible [get, set]
 Whether axis is visible on the graph. More...
 
System.Drawing.Color ScaleFontColor [get, set]
 Scale font color for the current axis. More...
 
System.Drawing.Color TitleFontColor [get, set]
 Title font color for the current axis. More...
 
- Properties inherited from IG.Forms.GraphItem
GraphBase Graph [get, protected set]
 Graph that contains this axis. More...
 

Private Attributes

double _min
 
double _max
 

Detailed Description

Contains data and methods for manipulating a single axis item of a graph. Axis items manipulate axis labels and axis ticks.

Constructor & Destructor Documentation

IG.Forms.GraphAxisItem.GraphAxisItem ( GraphBase  graph)
inline

Member Function Documentation

void IG.Forms.GraphAxisItem.ResetAxisAssociations ( )
inlineprotected

Resets all data that associate this axis with any pre-definied axis.

override void IG.Forms.GraphAxisItem.UpdateInGraph ( )
inlinevirtual

Updates the current item in the containing ZedGraph's control. A ZedGraph item corresponding to the current item is updated according to data contained in this item.

Implements IG.Forms.GraphItem.

override void IG.Forms.GraphAxisItem.DetachFromGraph ( )
inlinevirtual

Detaches the current item from ZedGraph's graph control. If ZedGraph control contains any items that are managed by the current item, these items may be set invisible or be disposed. References to related representations in the Zedgraph control are deleted, such that connection of the item with the Zedgraph's graph object is broken.

Implements IG.Forms.GraphItem.

Referenced by IG.Forms.GraphBase.RemoveAxis().

Member Data Documentation

ZedGraph.Axis IG.Forms.GraphAxisItem._axisData = new ZedGraph.XAxis()
protected
ZedGraph.Axis IG.Forms.GraphAxisItem._axis
protected
bool IG.Forms.GraphAxisItem._isXaxis
protected
bool IG.Forms.GraphAxisItem._isX2axis
protected
bool IG.Forms.GraphAxisItem._isYaxis
protected
bool IG.Forms.GraphAxisItem._isY2axis
protected
int IG.Forms.GraphAxisItem._axisIndex =-1
protected
double IG.Forms.GraphAxisItem._min
private
double IG.Forms.GraphAxisItem._max
private

Property Documentation

ZedGraph.Axis IG.Forms.GraphAxisItem.AxisData
getprotected

Axis data containing the settings for the current axis.

int IG.Forms.GraphAxisItem.Index
get

Gets index of the current axis on the Graph.

ZedGraph.Axis IG.Forms.GraphAxisItem.Axis
getprotected set

ZedGraph axes controlled by the current axis.

bool IG.Forms.GraphAxisItem.IsXAxis
getset

Whether the current axis represents an X axis of the ZegGraph control.

Referenced by IG.Forms.GraphBase.AddXAxis(), and IG.Forms.GraphBase.getXAxis().

bool IG.Forms.GraphAxisItem.IsX2Axis
getset

Whether the current axis represents an X2 axis of the ZegGraph control.

Referenced by IG.Forms.GraphBase.AddXAxis(), and IG.Forms.GraphBase.getX2Axis().

bool IG.Forms.GraphAxisItem.IsYAxis
getset

Whether the current axis represents an left-hand side Y axis of the ZegGraph control.

Referenced by IG.Forms.GraphBase.AddYAxis(), and IG.Forms.GraphBase.getYAxis().

bool IG.Forms.GraphAxisItem.IsY2Axis
getset

Whether the current axis represents an right-hand side Y axis of the ZegGraph control.

Referenced by IG.Forms.GraphBase.AddYAxis(), and IG.Forms.GraphBase.getY2Axis().

double IG.Forms.GraphAxisItem.Min
getset

Gets or sets minimal value on the scale.

double IG.Forms.GraphAxisItem.Max
getset

Gets or sets maximal value on the scale. Get tries to return ZedGraph axis' maximum, and set tries to set the ZedGrapg axis max. Set also stores the value to internal variable from where Zedgraph's axis value is set on update.

bool IG.Forms.GraphAxisItem.IsVisible
getset

Whether axis is visible on the graph.

System.Drawing.Color IG.Forms.GraphAxisItem.ScaleFontColor
getset

Scale font color for the current axis.

System.Drawing.Color IG.Forms.GraphAxisItem.TitleFontColor
getset

Title font color for the current axis.


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