ZedGraph LogoZedGraph Class Library Documentation
Scale Class
NamespacesZedGraphScale
The Scale class is an abstract base class that encompasses the properties and methods associated with a scale of data.
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public abstract class Scale : ISerializable
<SerializableAttribute> _
Public MustInherit Class Scale _
	Implements ISerializable
[SerializableAttribute]
public ref class Scale abstract : ISerializable
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
ScaleScaleNew(Axis)
Basic constructor -- requires that the Scale object be intialized with a pre-existing owner Axis.

ScaleScaleNew(Scale, Axis)
Copy Constructor. Create a new Scale object based on the specified existing one.

Align
Controls the alignment of the Axis tic labels.

AlignH
Controls the alignment of the Axis tic labels.

BaseTic
Gets or sets the scale value at which the first major tic label will appear.

CalcMaxLabels(Graphics, GraphPane, Single)
Calculate the maximum number of labels that will fit on this axis.

Clone(Axis)
Create a new clone of the current item, with a new owner assignment

DeLinearize(Double)
Convert a value from its linear equivalent to its actual scale value for this type of scale.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Exponent
Gets or sets the scale exponent value. This only applies to Exponent.

Finalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FontSpec
Gets a reference to the FontSpec class used to render the scale values

Format
The format of the Axis tic labels.

FormatAuto
Determines whether or not the scale label format Format is determined automatically based on the range of data values.

GetClusterWidth(GraphPane)
Determine the width, in pixel units, of each bar cluster including the cluster gaps and bar gaps.

GetClusterWidth(Double)
Calculates the cluster width, in pixels, by transforming the specified clusterScaleWidth.

GetHashCode()()
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object

GetType()()
Gets the Type of the current instance.
(Inherited from Object.)
IsAnyOrdinal
Gets a value that indicates if this Scale is of any of the ordinal types in the AxisType enumeration.

IsDate
True if this scale is Date, false otherwise.

IsExponent
True if this scale is Exponent, false otherwise.

IsLabelsInside
Gets or sets a value that causes the axis scale labels and title to appear on the opposite side of the axis.

IsLog
True if this scale is Log, false otherwise.

IsOrdinal
True if this scale is Ordinal, false otherwise.

IsPreventLabelOverlap
Gets or sets a Boolean value that determines if ZedGraph will check to see if the Axis scale labels are close enough to overlap. If so, ZedGraph will adjust the step size to prevent overlap.

IsReverse
Determines if the scale values are reversed for this Axis

IsSkipCrossLabel
Gets or sets a value that causes the scale label that is located at the Cross value for this Axis to be hidden.

IsSkipFirstLabel
Gets or sets a value that causes the first scale label for this Axis to be hidden.

IsSkipLastLabel
Gets or sets a value that causes the last scale label for this Axis to be hidden.

IsText
True if this scale is Text, false otherwise.

IsUseTenPower
Determines if powers-of-ten notation will be used for the numeric value labels.

IsVisible
Gets or sets a property that determines whether or not the scale values will be shown.

LabelGap
The gap between the scale labels and the tics.

Linearize(Double)
Convert a value to its linear equivalent for this type of scale.

LocalTransform(Double)
Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).

Mag
The magnitude multiplier for scale values.

MagAuto
Determines whether the Mag value will be set automatically based on the data, or manually by the user.

MajorStep
Gets or sets the scale step size for this Scale (the increment between labeled axis values).

MajorStepAuto
Gets or sets a value that determines whether or not the scale step size MajorStep is set automatically.

MajorUnit
Gets or sets the type of units used for the major step size (MajorStep).

MakeNewScale(Scale, AxisType)
A construction method that creates a new Scale object using the properties of an existing Scale object, but specifying a new AxisType.

Max
Gets or sets the maximum scale value for this Scale.

MaxAuto
Gets or sets a value that determines whether or not the maximum scale value Max is set automatically.

MaxGrace
Gets or sets the "grace" value applied to the maximum data range.

MemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Min
Gets or sets the minimum scale value for this Scale.

MinAuto
Gets or sets a value that determines whether or not the minimum scale value Min is set automatically.

MinGrace
Gets or sets the "grace" value applied to the minimum data range.

MinorStep
Gets or sets the scale minor step size for this Scale (the spacing between minor tics).

MinorStepAuto
Gets or sets a value that determines whether or not the minor scale step size MinorStep is set automatically.

MinorUnit
Gets or sets the type of units used for the minor step size (MinorStep).

PickScale(GraphPane, Graphics, Single)
Select a reasonable scale given a range of data values.

ReverseTransform(Single)
Reverse transform the user coordinates (scale value) given a graphics device coordinate (pixels).

static memberSafeExp(Double, Double)
Calculate an exponential in a safe manner to avoid math exceptions

static memberSafeLog(Double)
Calculate a base 10 logarithm in a safe manner to avoid math exceptions

static memberschema
Current schema value that defines the version of the serialized file

SetupScaleData(GraphPane, Axis)
Setup some temporary transform values in preparation for rendering the Axis.

TextLabels
The text labels for this Axis.

ToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
Transform(Double)
Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).

Transform(Boolean, Int32, Double)
Transform the coordinate value from user coordinates (scale value) to graphics device coordinates (pixels).

Type
Get an AxisType enumeration that indicates the type of this scale.

Remarks
This class is inherited by the LinearScale, LogScale, OrdinalScale, TextScale, DateScale, ExponentScale, DateAsOrdinalScale, and LinearAsOrdinalScale classes to define specific characteristics for those types.
Inheritance Hierarchy
Object
Scale

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621