Search Results for

    Show / Hide Table of Contents

    Class EllipseObj

    A class that represents a bordered and/or filled ellipse object on the graph. A list of EllipseObj objects is maintained by the GraphObjList collection class. The ellipse is defined as the ellipse that would be contained by the rectangular box as defined by the Location property.

    Inheritance
    Object
    GraphObj
    BoxObj
    EllipseObj
    Implements
    ICloneable
    ISerializable
    Inherited Members
    BoxObj._fill
    BoxObj._border
    BoxObj.Fill
    BoxObj.Border
    BoxObj.schema2
    BoxObj.GetCoords(PaneBase, Graphics, Single, String, String)
    GraphObj._location
    GraphObj._isVisible
    GraphObj._isClippedToChartRect
    GraphObj.Tag
    GraphObj.Location
    GraphObj.ZOrder
    GraphObj.IsVisible
    GraphObj.IsClippedToChartRect
    GraphObj.Link
    GraphObj.IsInFrontOfData
    GraphObj.schema
    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 EllipseObj : BoxObj, ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    EllipseObj()

    A default constructor that places the EllipseObj at location (0,0), with width/height of (1,1). Other properties are defaulted.

    Declaration
    public EllipseObj()
    | Improve this Doc View Source

    EllipseObj(Double, Double, Double, Double)

    A constructor that allows the position and size of the EllipseObj to be pre-specified. Other properties are defaulted.

    Declaration
    public EllipseObj(double x, double y, double width, double height)
    Parameters
    Type Name Description
    Double x

    The x location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double y

    The y location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double width

    The width of this BoxObj. This will be in units determined by CoordinateFrame.

    Double height

    The height of this BoxObj. This will be in units determined by CoordinateFrame.

    | Improve this Doc View Source

    EllipseObj(Double, Double, Double, Double, Color, Color)

    A constructor that allows the position, border color, and solid fill color of the EllipseObj to be pre-specified.

    Declaration
    public EllipseObj(double x, double y, double width, double height, Color borderColor, Color fillColor)
    Parameters
    Type Name Description
    Double x

    The x location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double y

    The y location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double width

    The width of this BoxObj. This will be in units determined by CoordinateFrame.

    Double height

    The height of this BoxObj. This will be in units determined by CoordinateFrame.

    Color borderColor

    An arbitrary Color specification for the ellipse border

    Color fillColor

    An arbitrary Color specification for the ellipse fill (will be a solid color fill)

    | Improve this Doc View Source

    EllipseObj(Double, Double, Double, Double, Color, Color, Color)

    A constructor that allows the position, border color, and two-color gradient fill colors of the EllipseObj to be pre-specified.

    Declaration
    public EllipseObj(double x, double y, double width, double height, Color borderColor, Color fillColor1, Color fillColor2)
    Parameters
    Type Name Description
    Double x

    The x location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double y

    The y location for this BoxObj. This will be in units determined by CoordinateFrame.

    Double width

    The width of this BoxObj. This will be in units determined by CoordinateFrame.

    Double height

    The height of this BoxObj. This will be in units determined by CoordinateFrame.

    Color borderColor

    An arbitrary Color specification for the ellipse border

    Color fillColor1

    An arbitrary Color specification for the start of the ellipse gradient fill

    Color fillColor2

    An arbitrary Color specification for the end of the ellipse gradient fill

    | Improve this Doc View Source

    EllipseObj(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected EllipseObj(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

    EllipseObj(BoxObj)

    The Copy Constructor

    Declaration
    public EllipseObj(BoxObj rhs)
    Parameters
    Type Name Description
    BoxObj rhs

    The EllipseObj object from which to copy

    Fields

    | Improve this Doc View Source

    schema3

    Current schema value that defines the version of the serialized file

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

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public EllipseObj Clone()
    Returns
    Type Description
    EllipseObj

    A new, independent copy of this class

    | Improve this Doc View Source

    Draw(Graphics, PaneBase, Single)

    Render this object to the specified Graphics device.

    Declaration
    public override void Draw(Graphics g, PaneBase pane, 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.

    PaneBase pane

    A reference to the PaneBase 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.

    Overrides
    BoxObj.Draw(Graphics, PaneBase, Single)
    Remarks

    This method is normally only called by the Draw method of the parent GraphObjList collection object.

    | 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
    BoxObj.GetObjectData(SerializationInfo, StreamingContext)
    | Improve this Doc View Source

    PointInBox(PointF, PaneBase, Graphics, Single)

    Determine if the specified screen point lies inside the bounding box of this BoxObj.

    Declaration
    public override bool PointInBox(PointF pt, PaneBase pane, Graphics g, float scaleFactor)
    Parameters
    Type Name Description
    PointF pt

    The screen point, in pixels

    PaneBase pane

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

    Graphics g

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

    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.

    Returns
    Type Description
    Boolean

    true if the point lies in the bounding box, false otherwise

    Overrides
    BoxObj.PointInBox(PointF, PaneBase, Graphics, Single)

    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