Class StickItem
Encapsulates a curve type that is displayed as a series of vertical "sticks", one at each defined point.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class StickItem : LineItem, ICloneable, ISerializable
Remarks
The sticks run from the zero value of the Y axis, to the Y point defined in each PointPair of the IPointList (see Points). The properties of the sticks are defined in the Line property. Normally, the Symbol is not visible. However, if you manually enable the Symbol using the IsVisible property, the symbols will be drawn at the "Z" value from each PointPair (see Z).
Constructors
| Improve this Doc View SourceStickItem(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected StickItem(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 |
StickItem(String)
Declaration
public StickItem(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label that will appear in the legend. |
StickItem(String, Double[], Double[], Color)
Create a new StickItem using the specified properties.
Declaration
public StickItem(string label, double[] x, double[] y, Color color)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label that will appear in the legend. |
Double[] | x | An array of double precision values that define the independent (X axis) values for this curve |
Double[] | y | An array of double precision values that define the dependent (Y axis) values for this curve |
Color | color | A Color value that will be applied to the Line and Symbol properties. |
StickItem(String, Double[], Double[], Color, Single)
Create a new StickItem using the specified properties.
Declaration
public StickItem(string label, double[] x, double[] y, Color color, float lineWidth)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label that will appear in the legend. |
Double[] | x | An array of double precision values that define the independent (X axis) values for this curve |
Double[] | y | An array of double precision values that define the dependent (Y axis) values for this curve |
Color | color | A Color value that will be applied to the Line and Symbol properties. |
Single | lineWidth | The width (in points) to be used for the Line. This width is scaled based on CalcScaleFactor(). Use a value of zero to hide the line (see IsVisible). |
StickItem(String, IPointList, Color)
Create a new StickItem using the specified properties.
Declaration
public StickItem(string label, IPointList points, Color color)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label that will appear in the legend. |
IPointList | points | A IPointList of double precision value pairs that define the X and Y values for this curve |
Color | color | A Color value that will be applied to the Line and Symbol properties. |
StickItem(String, IPointList, Color, Single)
Create a new StickItem using the specified properties.
Declaration
public StickItem(string label, IPointList points, Color color, float lineWidth)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label that will appear in the legend. |
IPointList | points | A IPointList of double precision value pairs that define the X and Y values for this curve |
Color | color | A Color value that will be applied to the Line and Symbol properties. |
Single | lineWidth | The width (in points) to be used for the Line. This width is scaled based on CalcScaleFactor(). Use a value of zero to hide the line (see IsVisible). |
StickItem(StickItem)
The Copy Constructor
Declaration
public StickItem(StickItem rhs)
Parameters
Type | Name | Description |
---|---|---|
StickItem | rhs | The StickItem object from which to copy |
Fields
| Improve this Doc View Sourceschema3
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 SourceClone()
Typesafe, deep-copy clone method.
Declaration
public StickItem Clone()
Returns
Type | Description |
---|---|
StickItem | A new, independent copy of this class |
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
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.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 |