Search Results for

    Show / Hide Table of Contents

    Class GasGaugeRegion

    A class representing a region on the GasGuage chart GasGaugeRegions.

    Inheritance
    Object
    CurveItem
    GasGaugeRegion
    Implements
    ICloneable
    ISerializable
    Inherited Members
    CurveItem._isX2Axis
    CurveItem._isY2Axis
    CurveItem._yAxisIndex
    CurveItem._isVisible
    CurveItem._isSelected
    CurveItem._isSelectable
    CurveItem._isOverrideOrdinal
    CurveItem._points
    CurveItem.Tag
    CurveItem.schema
    CurveItem.Label
    CurveItem.Color
    CurveItem.IsVisible
    CurveItem.IsSelected
    CurveItem.IsSelectable
    CurveItem.IsOverrideOrdinal
    CurveItem.IsX2Axis
    CurveItem.IsY2Axis
    CurveItem.YAxisIndex
    CurveItem.IsBar
    CurveItem.IsPie
    CurveItem.IsLine
    CurveItem.NPts
    CurveItem.Points
    CurveItem.Item[Int32]
    CurveItem.Link
    CurveItem.AddPoint(Double, Double)
    CurveItem.AddPoint(PointPair)
    CurveItem.Clear()
    CurveItem.RemovePoint(Int32)
    CurveItem.GetXAxis(GraphPane)
    CurveItem.GetYAxis(GraphPane)
    CurveItem.GetYAxisIndex(GraphPane)
    CurveItem.MakeUnique()
    CurveItem.MakeUnique(ColorSymbolRotator)
    CurveItem.GetRange(Double, Double, Double, Double, Boolean, Boolean, GraphPane)
    CurveItem.BaseAxis(GraphPane)
    CurveItem.ValueAxis(GraphPane)
    CurveItem.GetBarWidth(GraphPane)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class GasGaugeRegion : CurveItem, ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    GasGaugeRegion(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected GasGaugeRegion(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    | Improve this Doc View Source

    GasGaugeRegion(String, Double, Double, Color)

    Create a new GasGaugeRegion

    Declaration
    public GasGaugeRegion(string label, double minVal, double maxVal, Color color)
    Parameters
    Type Name Description
    String label

    The value associated with this GasGaugeRegion instance.

    Double minVal

    The minimum value of this GasGaugeNeedle.

    Double maxVal

    The maximum value of this GasGaugeNeedle.

    Color color

    The display color for this GasGaugeRegion instance.

    | Improve this Doc View Source

    GasGaugeRegion(GasGaugeRegion)

    The Copy Constructor

    Declaration
    public GasGaugeRegion(GasGaugeRegion ggr)
    Parameters
    Type Name Description
    GasGaugeRegion ggr

    The GasGaugeRegion object from which to copy

    Fields

    | Improve this Doc View Source

    schema2

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema2 = 10
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    Border

    Gets or sets the Border of this GasGaugeRegion

    Declaration
    public Border Border { get; set; }
    Property Value
    Type Description
    Border
    | Improve this Doc View Source

    Fill

    Gets or sets the Fill of this GasGaugeRegion

    Declaration
    public Fill Fill { get; set; }
    Property Value
    Type Description
    Fill
    | Improve this Doc View Source

    LabelDetail

    Gets or sets the LabelDetail of this GasGaugeRegion

    Declaration
    public TextObj LabelDetail { get; set; }
    Property Value
    Type Description
    TextObj
    | Improve this Doc View Source

    MaxValue

    Gets or sets the MaxValue of this GasGaugeRegion

    Declaration
    public double MaxValue { get; set; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    MinValue

    Gets or sets the MinValue of this GasGaugeRegion

    Declaration
    public double MinValue { get; set; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    RegionColor

    Gets or sets the RegionColor of this GasGaugeRegion

    Declaration
    public Color RegionColor { get; set; }
    Property Value
    Type Description
    Color
    | Improve this Doc View Source

    SlicePath

    Gets or sets the SlicePath of this GasGaugeRegion

    Declaration
    public GraphicsPath SlicePath { get; }
    Property Value
    Type Description
    GraphicsPath

    Methods

    | Improve this Doc View Source

    CalcRectangle(Graphics, GraphPane, Single, RectangleF)

    Calculate the RectangleF that will be used to define the bounding rectangle of the GasGaugeNeedle.

    Declaration
    public static RectangleF CalcRectangle(Graphics g, GraphPane pane, float scaleFactor, RectangleF chartRect)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    GraphPane pane

    A reference to the GraphPane object that is the parent or owner of this object.

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    RectangleF chartRect

    The RectangleF (normally the Rect) that bounds this pie.

    Returns
    Type Description
    RectangleF
    Remarks

    This rectangle always lies inside of the Rect, and it is normally a square so that the pie itself is not oval-shaped.

    | Improve this Doc View Source

    CalculateGasGuageParameters(GraphPane)

    Calculate the values needed to properly display this GasGaugeRegion.

    Declaration
    public static void CalculateGasGuageParameters(GraphPane pane)
    Parameters
    Type Name Description
    GraphPane pane

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public GasGaugeRegion Clone()
    Returns
    Type Description
    GasGaugeRegion

    A new, independent copy of this class

    | Improve this Doc View Source

    Draw(Graphics, GraphPane, Int32, Single)

    Do all rendering associated with this GasGaugeRegion item to the specified Graphics device. This method is normally only called by the Draw method of the parent CurveList collection object.

    Declaration
    public override void Draw(Graphics g, GraphPane pane, int pos, float scaleFactor)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    GraphPane pane

    A reference to the GraphPane object that is the parent or owner of this object.

    Int32 pos

    Not used for rendering GasGaugeNeedle

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    Overrides
    CurveItem.Draw(Graphics, GraphPane, Int32, Single)
    | Improve this Doc View Source

    DrawLegendKey(Graphics, GraphPane, RectangleF, Single)

    Render the label for this GasGaugeRegion.

    Declaration
    public override void DrawLegendKey(Graphics g, GraphPane pane, RectangleF rect, float scaleFactor)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    GraphPane pane

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    RectangleF rect

    Bounding rectangle for this GasGaugeRegion.

    Single scaleFactor

    The scaling factor to be used for rendering objects. This is calculated and passed down by the parent GraphPane object using the CalcScaleFactor() method, and is used to proportionally adjust font sizes, etc. according to the actual size of the graph.

    Overrides
    CurveItem.DrawLegendKey(Graphics, GraphPane, RectangleF, Single)
    | Improve this Doc View Source

    GetCoords(GraphPane, Int32, out String)

    Determine the coords for the rectangle associated with a specified point for this CurveItem

    Declaration
    public override bool GetCoords(GraphPane pane, int i, out string coords)
    Parameters
    Type Name Description
    GraphPane pane

    The GraphPane to which this curve belongs

    Int32 i

    The index of the point of interest

    String coords

    A list of coordinates that represents the "rect" for this point (used in an html AREA tag)

    Returns
    Type Description
    Boolean

    true if it's a valid point, false otherwise

    Overrides
    CurveItem.GetCoords(GraphPane, Int32, out String)
    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    A SerializationInfo instance that defines the serialized data

    StreamingContext context

    A StreamingContext instance that contains the serialized data

    Overrides
    CurveItem.GetObjectData(SerializationInfo, StreamingContext)

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.Clone()

    Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()

    Declaration
    object ICloneable.Clone()
    Returns
    Type Description
    Object

    A deep copy of this object

    Implements

    System.ICloneable
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX