Class TAxis (unit xyGraph) |
Inherits from
TPersistent
function CheckScale: Boolean;
GetNextTick
procedure AdjustLabelDecs;
eg: OneSigFigDecs(0.
procedure AdjustLogLabelDecs(v: Double);
procedure AdjustLogTickCount;
procedure CalcMetrics;
procedure CheckDrawMinorLabels;
AdjustLogTickCount
function DoResize: Boolean;
SetLogMinMax
function getDateStep: double;
GetStep
function GetFirstDateTick:double;
the >= 5 must correspond with InitLogTicks: where do fraction steps start?
function GetFirstTick(var logTickInfo: TLogTickInfo): Double;
year is also not a set time, but there can't be overflow here
function GetNextDateTick(tick: Double):double;
GetFirstTick
function GetNextTick(tick: Double; var logTickInfo: TLogTickInfo;
var drawThisLabel: Boolean): Double;
function GetStep: Double;
step size chosen in a 1,2,5,10 squence depending not only on the
characteristic, but also the mantissa, of the range
procedure InitLogTicks;
--------------------------------------------------------------------
#2a.
function LabelString(tick: Double): String;
DrawYTickMarks
procedure SetDateMinMax;
--------- DoResize helper functions -------
procedure SetLogMinMax;
SetMinMax
procedure SetMinMax;
year is also not a set time, but there can't be overflow here
function GetLogTickCount: Word;
procedure SetAutoSizing(v: Boolean);
procedure SetAutoStepping(v: Boolean);
procedure SetAxisTitle(v: String);
--------------------------------------------------------------------
#2b.
procedure setDateFormat(v: string);
procedure setDateTickType(v:dateticks);
procedure SetGridLines(v: Boolean);
procedure SetLabelDec(v: Integer);
procedure SetLogging(v: Boolean);
procedure SetLogTickCount(v: Word);
procedure SetMax(v: Double);
procedure SetMin(v: Double);
procedure SetMinDiff(v: Double);
procedure setoffset(v:double);
procedure SetOffsetType(v:TAxisOffsetType);
procedure setreversed(v:boolean);
procedure setShowAsTime(v: Boolean);
procedure setshowAxis(v:boolean);
procedure SetStep(v: Double);
property AutoLabelDecimals : boolean
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 DateTickType : dateticks
property DateTimeFormat : string
property Gridlines : boolean
property LabelDecimals : Integer
property LogCycleDivisions : Word
property LogScale : Boolean
property Max : Double
property Min : Double
property MinScaleLength : Double
property Offset : double
property OffsetType : TAxisOffsetType
property Reversed : boolean
property ShowAsTime : Boolean
property ShowAxis : boolean
property StepSize : Double
property Title : string
FAutoLabelDecimals : Boolean;
FAutoSizing : Boolean;
FAutoStepping : Boolean;
FAxisTitle : String;
FDateFormat : string;
FDateTickType : dateticks;
FGraph : TxyGraph;
FGridlines : Boolean;
FLabelDec : Integer;
FLogging : Boolean;
FLogTickInfo : TLogTickInfo;
FM : Double;
FMax : Double;
FMin : Double;
FMinScale : Double;
FOffset : Double;
FOffsetType : TAxisOffsetType;
FReversed : Boolean;
FShowAsTime : Boolean;
FShowAxis : Boolean;
FStep : Double;
oMax : Double;
oMin : Double;
ScaledOK : boolean;
SecondAxis : boolean;
function CheckScale: Boolean;
GetNextTick
procedure AdjustLabelDecs;
eg: OneSigFigDecs(0.1)->1; (100)-> -2
procedure AdjustLogLabelDecs(v: Double);
procedure AdjustLogTickCount;
procedure CalcMetrics;
procedure CheckDrawMinorLabels;
AdjustLogTickCount
function DoResize: Boolean;
SetLogMinMax
function getDateStep: double;
GetStep
function GetFirstDateTick:double;
the >= 5 must correspond with InitLogTicks: where do fraction steps start?
function GetFirstTick(var logTickInfo: TLogTickInfo): Double;
year is also not a set time, but there can't be overflow here
function GetNextDateTick(tick: Double):double;
GetFirstTick
function GetNextTick(tick: Double; var logTickInfo: TLogTickInfo;
var drawThisLabel: Boolean): Double;
function GetStep: Double;
step size chosen in a 1,2,5,10 squence depending not only on the
characteristic, but also the mantissa, of the range
procedure InitLogTicks;
--------------------------------------------------------------------
#2a. TAxis - scaling routines
--------------------------------------------------------------------
function LabelString(tick: Double): String;
DrawYTickMarks
procedure SetDateMinMax;
--------- DoResize helper functions -------
procedure SetLogMinMax;
SetMinMax
procedure SetMinMax;
year is also not a set time, but there can't be overflow here
function GetLogTickCount: Word;
procedure SetAutoSizing(v: Boolean);
procedure SetAutoStepping(v: Boolean);
procedure SetAxisTitle(v: String);
--------------------------------------------------------------------
#2b. TAxis - property servers
--------------------------------------------------------------------
procedure setDateFormat(v: string);
procedure setDateTickType(v:dateticks);
procedure SetGridLines(v: Boolean);
procedure SetLabelDec(v: Integer);
procedure SetLogging(v: Boolean);
procedure SetLogTickCount(v: Word);
procedure SetMax(v: Double);
procedure SetMin(v: Double);
procedure SetMinDiff(v: Double);
procedure setoffset(v:double);
procedure SetOffsetType(v:TAxisOffsetType);
procedure setreversed(v:boolean);
procedure setShowAsTime(v: Boolean);
procedure setshowAxis(v:boolean);
procedure SetStep(v: Double);
property AutoLabelDecimals : boolean
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 DateTickType : dateticks
property DateTimeFormat : string
property Gridlines : boolean
property LabelDecimals : Integer
property LogCycleDivisions : Word
property LogScale : Boolean
property Max : Double
property Min : Double
property MinScaleLength : Double
property Offset : double
property OffsetType : TAxisOffsetType
property Reversed : boolean
property ShowAsTime : Boolean
property ShowAxis : boolean
property StepSize : Double
property Title : string
FAutoLabelDecimals : Boolean;
FAutoSizing : Boolean;
FAutoStepping : Boolean;
FAxisTitle : String;
FDateFormat : string;
FDateTickType : dateticks;
FGraph : TxyGraph;
FGridlines : Boolean;
FLabelDec : Integer;
FLogging : Boolean;
FLogTickInfo : TLogTickInfo;
FM : Double;
FMax : Double;
FMin : Double;
FMinScale : Double;
FOffset : Double;
FOffsetType : TAxisOffsetType;
FReversed : Boolean;
FShowAsTime : Boolean;
FShowAxis : Boolean;
FStep : Double;
oMax : Double;
oMin : Double;
ScaledOK : boolean;
SecondAxis : boolean;