Class THAxis (unit Xyhist) |
Inherits from
TPersistent
------------ THAxis, THDimensions, THAppearance ----------------
function CheckScale: Boolean;
procedure AdjustLabelDecs;
eg: OneSigFigDecs(0.
function DoResize: Boolean;
function GetFirstTick: Double;
function GetNextTick(tick: Double): Double;
function GetStep: Double;
--------------------------------------------------------------------
#2a.
function LabelString(tick: Double): String;
DrawYTickMarks
procedure SetMinMax;
--------- DoResize helper functions -------
procedure SetAutoSizing(v: Boolean);
procedure SetAutoStepping(v: Boolean);
procedure SetAxisTitle(v: String);
--------------------------------------------------------------------
#2b.
procedure SetLabelDec(v: Integer);
procedure SetMax(v: Double);
procedure SetMin(v: Double);
procedure SetMinDiff(v: Double);
procedure SetStep(v: Double);
property AutoSizing : Boolean
these 2 properties must come last to override the other properties'
effects on the values at load time:
property AutoStepping : Boolean
property LabelDecimals : Integer
property Max : Double
property Min : Double
property MinScaleLength : Double
property StepSize : Double
property Title : String
FAutoSizing : Boolean;
FAutoStepping : Boolean;
FAxisTitle : String;
FGraph : THistogram;
FIsXAxis : Boolean;
FLabelDec : Integer;
FM : Double;
FMax : Double;
FMin : Double;
FMinScale : Double;
FStep : Double;
function CheckScale: Boolean;
procedure AdjustLabelDecs;
eg: OneSigFigDecs(0.1)->1; (100)-> -2
function DoResize: Boolean;
function GetFirstTick: Double;
function GetNextTick(tick: Double): Double;
function GetStep: Double;
--------------------------------------------------------------------
#2a. THAxis - scaling routines
--------------------------------------------------------------------} { step size chosen in a 1,2,5,10 squence depending not only on the
characteristic, but also the mantissa, of the range
function LabelString(tick: Double): String;
DrawYTickMarks
procedure SetMinMax;
--------- DoResize helper functions -------
procedure SetAutoSizing(v: Boolean);
procedure SetAutoStepping(v: Boolean);
procedure SetAxisTitle(v: String);
--------------------------------------------------------------------
#2b. THAxis - property servers
--------------------------------------------------------------------
procedure SetLabelDec(v: Integer);
procedure SetMax(v: Double);
procedure SetMin(v: Double);
procedure SetMinDiff(v: Double);
procedure SetStep(v: Double);
property AutoSizing : Boolean
these 2 properties must come last to override the other properties'
effects on the values at load time:
property AutoStepping : Boolean
property LabelDecimals : Integer
property Max : Double
property Min : Double
property MinScaleLength : Double
property StepSize : Double
property Title : String
FAutoSizing : Boolean;
FAutoStepping : Boolean;
FAxisTitle : String;
FGraph : THistogram;
FIsXAxis : Boolean;
FLabelDec : Integer;
FM : Double;
FMax : Double;
FMin : Double;
FMinScale : Double;
FStep : Double;