Description | Hierarchy | Fields | Methods | Properties |
type TRbwRuler = class(TPaintBox)
TRbwRuler
draws a ruler.
The orientation, scaling, number format, and position of the ruler can be controlled through properties.
![]() |
FDesiredSpacing: integer; |
![]() |
FDigits: integer; |
![]() |
FLinePosition: integer; |
![]() |
FMajorTickLength: integer; |
![]() |
FMinorTickLength: integer; |
![]() |
FPositions: TRulerPositions; |
![]() |
FPrecision: integer; |
![]() |
FRulerPosition: TRulerPosition; |
![]() |
FStart: TStart; |
![]() |
FTextOffset: integer; |
![]() |
FTextPosition: TTextPosition; |
![]() |
FValues: TRulerValues; |
![]() |
procedure DrawLabel(const CurPositionR, Increment: double; const CurPositionI: integer; var FirstLabel: boolean; var LastLabelLT, LastLabelRB: integer); |
![]() |
procedure DrawMainLine; |
![]() |
procedure DrawMinorTicks(const LowCoord, Increment: double; const Index, Spacing: integer); |
![]() |
procedure DrawTick(const CurPositionI: integer; const IsMajorTick: boolean); |
![]() |
procedure DrawRuler; |
![]() |
function GetCurrentPosition(const CurPositionR: double): integer; |
![]() |
function GetDrawingMajorTickLength: integer; |
![]() |
function GetDrawingMinorTickLength: integer; |
![]() |
function GetLineDrawingPosition: integer; |
![]() |
function GetOrientation: TOrientation; |
![]() |
function GetTextDrawingPosition: TStart; |
![]() |
procedure GetTickSpacingAndFactor( out Spacing: integer; out Factor: double); |
![]() |
function Multiplier: double; |
![]() |
function RoundNumber(Value, Increment: double): string; |
![]() |
procedure SetDesiredSpacing(const Value: integer); |
![]() |
procedure SetDigits(Value: integer); |
![]() |
procedure SetLinePosition(const Value: integer); |
![]() |
procedure SetMajorTickLength(const Value: integer); |
![]() |
procedure SetMinorTickLength(const Value: integer); |
![]() |
procedure SetPositions(const Value: TRulerPositions); |
![]() |
procedure SetPrecision(Value: integer); |
![]() |
procedure SetRulerPosition(const Value: TRulerPosition); |
![]() |
procedure SetStart(const Value: TStart); |
![]() |
procedure SetTextOffset(const Value: integer); |
![]() |
procedure SetTextPosition(const Value: TTextPosition); |
![]() |
procedure SetValues(const Value: TRulerValues); |
![]() |
procedure Paint; override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure PaintRotated(const X, Y, Angle: double; const Text: string); virtual; |
![]() |
property RulerOrientation: TOrientation read GetOrientation; |
![]() |
property RulerDesiredSpacing: integer read FDesiredSpacing
write SetDesiredSpacing; |
![]() |
property RulerDigits: integer read FDigits write SetDigits; |
![]() |
property RulerEnds: TRulerPositions read FPositions write SetPositions; |
![]() |
property RulerLinePosition: integer read FLinePosition
write SetLinePosition; |
![]() |
property RulerMajorTickLength: integer read FMajorTickLength
write SetMajorTickLength; |
![]() |
property RulerMinorTickLength: integer read FMinorTickLength
write SetMinorTickLength; |
![]() |
property RulerPosition: TRulerPosition read FRulerPosition
write SetRulerPosition; |
![]() |
property RulerPrecision: integer read FPrecision write SetPrecision; |
![]() |
property RulerStart: TStart read FStart write SetStart; |
![]() |
property RulerTextOffset: integer read FTextOffset write SetTextOffset; |
![]() |
property RulerTextPosition: TTextPosition read FTextPosition
write SetTextPosition; |
![]() |
property RulerValues: TRulerValues read FValues write SetValues; |
![]() |
FDesiredSpacing: integer; |
|
![]() |
FDigits: integer; |
|
![]() |
FLinePosition: integer; |
|
![]() |
FMajorTickLength: integer; |
|
![]() |
FMinorTickLength: integer; |
|
![]() |
FPositions: TRulerPositions; |
|
![]() |
FPrecision: integer; |
|
![]() |
FRulerPosition: TRulerPosition; |
|
![]() |
FStart: TStart; |
|
![]() |
FTextOffset: integer; |
|
![]() |
FTextPosition: TTextPosition; |
|
![]() |
FValues: TRulerValues; |
|
![]() |
procedure DrawLabel(const CurPositionR, Increment: double; const CurPositionI: integer; var FirstLabel: boolean; var LastLabelLT, LastLabelRB: integer); |
|
![]() |
procedure DrawMainLine; |
|
![]() |
procedure DrawMinorTicks(const LowCoord, Increment: double; const Index, Spacing: integer); |
|
![]() |
procedure DrawTick(const CurPositionI: integer; const IsMajorTick: boolean); |
|
![]() |
procedure DrawRuler; |
|
![]() |
function GetCurrentPosition(const CurPositionR: double): integer; |
Get the pixel equivalent of the current number. |
![]() |
function GetDrawingMajorTickLength: integer; |
|
![]() |
function GetDrawingMinorTickLength: integer; |
|
![]() |
function GetLineDrawingPosition: integer; |
|
![]() |
function GetOrientation: TOrientation; |
See RulerOrientation. |
![]() |
function GetTextDrawingPosition: TStart; |
|
![]() |
procedure GetTickSpacingAndFactor( out Spacing: integer; out Factor: double); |
|
![]() |
function Multiplier: double; |
|
![]() |
function RoundNumber(Value, Increment: double): string; |
|
![]() |
procedure SetDesiredSpacing(const Value: integer); |
See RulerDesiredSpacing. |
![]() |
procedure SetDigits(Value: integer); |
See RulerDigits. |
![]() |
procedure SetLinePosition(const Value: integer); |
See RulerLinePosition. |
![]() |
procedure SetMajorTickLength(const Value: integer); |
See RulerMajorTickLength. |
![]() |
procedure SetMinorTickLength(const Value: integer); |
See RulerMinorTickLength. |
![]() |
procedure SetPositions(const Value: TRulerPositions); |
See RulerEnds. |
![]() |
procedure SetPrecision(Value: integer); |
See RulerPrecision. |
![]() |
procedure SetRulerPosition(const Value: TRulerPosition); |
See RulerPosition. |
![]() |
procedure SetStart(const Value: TStart); |
See RulerStart. |
![]() |
procedure SetTextOffset(const Value: integer); |
See RulerTextOffset. |
![]() |
procedure SetTextPosition(const Value: TTextPosition); |
See RulerTextPosition. |
![]() |
procedure SetValues(const Value: TRulerValues); |
See RulerValues. |
![]() |
procedure Paint; override; |
|
![]() |
constructor Create(AOwner: TComponent); override; |
|
![]() |
destructor Destroy; override; |
|
![]() |
property RulerOrientation: TOrientation read GetOrientation; |
|
![]() |
property RulerDesiredSpacing: integer read FDesiredSpacing
write SetDesiredSpacing; |
|
![]() |
property RulerDigits: integer read FDigits write SetDigits; |
|
![]() |
property RulerEnds: TRulerPositions read FPositions write SetPositions; |
|
![]() |
property RulerLinePosition: integer read FLinePosition
write SetLinePosition; |
|
![]() |
property RulerMajorTickLength: integer read FMajorTickLength
write SetMajorTickLength; |
|
![]() |
property RulerMinorTickLength: integer read FMinorTickLength
write SetMinorTickLength; |
|
![]() |
property RulerPosition: TRulerPosition read FRulerPosition
write SetRulerPosition; |
|
![]() |
property RulerPrecision: integer read FPrecision write SetPrecision; |
|
![]() |
property RulerStart: TStart read FStart write SetStart; |
|
![]() |
property RulerTextOffset: integer read FTextOffset write SetTextOffset; |
|
![]() |
property RulerTextPosition: TTextPosition read FTextPosition
write SetTextPosition; |
|
![]() |
property RulerValues: TRulerValues read FValues write SetValues; |
|