亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qiplotlimit.pas

?? Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 數據顯示編程插件,可用于工業控制
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{*******************************************************}
{                                                       }
{       TiPlotLimit                                     }
{                                                       }
{       Copyright (c) 1997,2003 Iocomp Software         }
{                                                       }
{*******************************************************}
{$I iInclude.inc}

{$ifdef iVCL}unit  iPlotLimit;{$endif}
{$ifdef iCLX}unit QiPlotLimit;{$endif}

interface

uses
  {$I iIncludeUses.inc}
  {$IFDEF iVCL} Menus,  iTypes,  iGPFunctions,  iClasses,  iPlotObjects,  iPlotDataView,  iPlotAxis;{$ENDIF}
  {$IFDEF iCLX}QMenus, QiTypes, QiGPFunctions, QiClasses, QiPlotObjects, QiPlotDataView, QiPlotAxis;{$ENDIF}

type
  TiPlotLimitStyle            = (iplsLineX, iplsLineY, iplsBandX, iplsBandY, iplsPolyBandX, iplsPolyBandY);
  TiPlotLimitLinePositionAxis = (iplpaXAxis, iplpaYAxis);

  TiPlotLimit = class(TiPlotObject)
  private
    FPointList         : TiLimitDataList;

    FMouseDownXAxis    : Integer;
    FMouseDownYAxis    : Integer;
    FMouseDownPosition : Double;

    FMouseDownLine1    : Boolean;
    FMouseDownLine2    : Boolean;

    FXAxis             : TiPlotXAxis;
    FYAxis             : TiPlotYAxis;

    FYAxisName         : String;
    FXAxisName         : String;

    FStyle             : TiPlotLimitStyle;

    FColor             : TColor;
    FLineWidth         : Integer;
    FLineStyle         : TPenStyle;
    FFillStyle         : TBrushStyle;

    FLine1Show         : Boolean;
    FLine2Show         : Boolean;

    FLine1Position     : Double;
    FLine2Position     : Double;

    FLine1ClickRect    : TRect;
    FLine2ClickRect    : TRect;
    FUserCanMove       : Boolean;
  protected
    procedure SetFillStyle    (const Value: TBrushStyle);
    procedure SetColor        (const Value: TColor);
    procedure SetLineStyle    (const Value: TPenStyle);
    procedure SetLineWidth    (const Value: Integer);
    procedure SetStyle        (const Value: TiPlotLimitStyle);
    procedure SetXAxisName    (const Value: String);
    procedure SetYAxisName    (const Value: String);
    procedure SetLine1Position(const Value: Double);
    procedure SetLine2Position(const Value: Double);
    procedure SetUserCanMove  (const Value: Boolean);

    procedure NotificationRemove  (Sender: TObject); override;
    procedure NotificationRename  (Sender: TObject); override;
    procedure NotificationSetFocus(Sender: TObject); override;

    function GetXAxis : TiPlotXAxis;
    function GetYAxis : TiPlotYAxis;

    function GetIsFillType       : Boolean;
    function GetLinePositionAxis : TiPlotLimitLinePositionAxis;

    procedure Draw         (const Canvas: TCanvas; const BackGroundColor: TColor); override;
    procedure DrawLineX    (const Canvas: TCanvas; const BackGroundColor: TColor);
    procedure DrawLineY    (const Canvas: TCanvas; const BackGroundColor: TColor);
    procedure DrawBandX    (const Canvas: TCanvas; const BackGroundColor: TColor);
    procedure DrawBandY    (const Canvas: TCanvas; const BackGroundColor: TColor);             
    procedure DrawPolyBandX(const Canvas: TCanvas; const BackGroundColor: TColor);
    procedure DrawPolyBandY(const Canvas: TCanvas; const BackGroundColor: TColor);

    procedure DoMouseLeft(MouseData: TiPlotMouseData);                                                 override;
    procedure DoMouseMove(MouseData: TiPlotMouseData);                                                 override;
    procedure DoMouseUp  (MouseData: TiPlotMouseData);                                                 override;

    procedure AddMenuItems(PopupMenu: TPopUpMenu);                                                     override;

    function  GetMousePointer(APoint: TPoint): TCursor;                                                override;

    function  iMouseHitTest(MouseData: TiPlotMouseData): Boolean;                                      override;

    property LinePositionAxis : TiPlotLimitLinePositionAxis read GetLinePositionAxis;

    property IsFillType    : Boolean          read GetIsFillType;

    property XAxis         : TiPlotXAxis      read GetXAxis;
    property YAxis         : TiPlotYAxis      read GetYAxis;
  public
    constructor Create(AOwner: TObject; AOnChange, AOnInsert, AOnRemove, AOnRename: TNotifyEvent); override;
    destructor  Destroy;                                                                               override;

    procedure ClearAllElements;
    procedure AddBandElement(Position, UpperLimit, LowerLimit: Double);
  published
    property Color         : TColor           read FColor         write SetColor;
    property LineStyle     : TPenStyle        read FLineStyle     write SetLineStyle;
    property LineWidth     : Integer          read FLineWidth     write SetLineWidth;
    property FillStyle     : TBrushStyle      read FFillStyle     write SetFillStyle;

    property XAxisName     : String           read FXAxisName     write SetXAxisName;
    property YAxisName     : String           read FYAxisName     write SetYAxisName;

    property Style         : TiPlotLimitStyle read FStyle         write SetStyle;

    property Line1Position : Double           read FLine1Position write SetLine1Position;
    property Line2Position : Double           read FLine2Position write SetLine2Position;

    property UserCanMove   : Boolean read FUserCanMove write SetUserCanMove;
  end;

implementation

uses
{$ifdef iVCL} iPlotComponent;{$endif}
{$ifdef iCLX}QiPlotComponent;{$endif}

type
  TiPlotComponentAccess = class(TiPlotComponent)end;
//****************************************************************************************************************************************************
constructor TiPlotLimit.Create(AOwner: TObject; AOnChange, AOnInsert, AOnRemove, AOnRename: TNotifyEvent);
begin
  inherited Create(AOwner, AOnChange, AOnInsert, AOnRemove, AOnRename);

  FStyle         := iplsLineY;
  FColor         := clRed;
  FLine1Position := 50;
  FLine2Position := 50;

  FPointList := TiLimitDataList.Create;
end;
//****************************************************************************************************************************************************
destructor TiPlotLimit.Destroy;
begin
  FPointList.Free;
  inherited;
end;
//****************************************************************************************************************************************************
function TiPlotLimit.GetXAxis: TiPlotXAxis;
begin
  if not Assigned(FXAxis)then FXAxis:=(Owner as TiPlotComponent).GetXAxisByName(FXAxisName);
  Result := FXAxis;
end;
//****************************************************************************************************************************************************
function TiPlotLimit.GetYAxis: TiPlotYAxis;
begin
  if not Assigned(FYAxis)then FYAxis:=(Owner as TiPlotComponent).GetYAxisByName(FYAxisName);
  Result := FYAxis;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.NotificationRemove(Sender: TObject);
begin
  if Sender = FXAxis then FXAxis := nil;
  if Sender = FYAxis then FYAxis := nil;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.NotificationRename(Sender: TObject);
begin
  if Sender = FXAxis then FXAxisName := (Sender as TiPlotXAxis).Name;
  if Sender = FYAxis then FYAxisName := (Sender as TiPlotYAxis).Name;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetXAxisName(const Value: String);
begin
  if FXAxisName <> Value then
    begin
      FXAxisName := Value;
      FXAxis     := nil;
      TriggerChange(Self);
    end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetYAxisName(const Value: String);
begin
  if FYAxisName <> Value then
    begin
      FYAxisName := Value;
      FYAxis := nil;
    end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetColor        (const Value: TColor );begin SetColorProperty  (Value,FColor,        TriggerChange );end;
procedure TiPlotLimit.SetLineWidth    (const Value: Integer);begin SetIntegerProperty(Value,FLineWidth,    TriggerChange );end;
procedure TiPlotLimit.SetUserCanMove  (const Value: Boolean);begin SetBooleanProperty(Value,FUserCanMove,  TriggerChange );end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetStyle    (const Value:TiPlotLimitStyle);begin if FStyle    <>Value then begin FStyle    :=Value;TriggerChange(Self);end;end;
procedure TiPlotLimit.SetLineStyle(const Value:TPenStyle       );begin if FLineStyle<>Value then begin FLineStyle:=Value;TriggerChange(Self);end;end;
procedure TiPlotLimit.SetFillStyle(const Value:TBrushStyle     );begin if FFillStyle<>Value then begin FFillStyle:=Value;TriggerChange(Self);end;end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetLine1Position(const Value: Double );
var
  OldValue  : Double;
begin
  if FLine1Position <> Value then
    begin
      OldValue := FLine1Position;
      FLine1Position := Value;
      TriggerChange(Self);
      if Owner is TiPlotComponent then
        TiPlotComponentAccess(Owner).DoLimitLine1PositionChange(Self, OldValue, Value);
    end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.SetLine2Position(const Value: Double );
var
  OldValue  : Double;
begin
  if FLine2Position <> Value then
    begin
      OldValue := FLine2Position;
      FLine2Position := Value;
      TriggerChange(Self);
      if Owner is TiPlotComponent then
        TiPlotComponentAccess(Owner).DoLimitLine2PositionChange(Self, OldValue, Value);
    end;
end;
//****************************************************************************************************************************************************
function TiPlotLimit.GetLinePositionAxis: TiPlotLimitLinePositionAxis;
begin
  case FStyle of
    iplsLineX     : Result := iplpaXAxis;
    iplsLineY     : Result := iplpaYAxis;
    iplsBandX     : Result := iplpaXAxis;
    iplsBandY     : Result := iplpaYAxis;
    iplsPolyBandX : Result := iplpaXAxis;
    iplsPolyBandY : Result := iplpaYAxis;
    else            Result := iplpaYAxis;
  end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.Draw(const Canvas: TCanvas; const BackGroundColor: TColor);
begin
  FLine1Show := False;
  FLine2Show := False;

  if not Visible then Exit;
  if not Assigned(XAxis) then Exit;
  if not Assigned(YAxis) then Exit;

  case FStyle of
    iplsLineY     : DrawLineY    (Canvas, BackGroundColor);
    iplsLineX     : DrawLineX    (Canvas, BackGroundColor);
    iplsBandX     : DrawBandX    (Canvas, BackGroundColor);
    iplsBandY     : DrawBandY    (Canvas, BackGroundColor);
    iplsPolyBandX : DrawPolyBandX(Canvas, BackGroundColor);
    iplsPolyBandY : DrawPolyBandY(Canvas, BackGroundColor);
  end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.DrawLineX(const Canvas: TCanvas; const BackGroundColor: TColor);
var
  XPixels  : Integer;
  Y1Pixels : Integer;
  Y2Pixels : Integer;
begin
  if Line1Position > XAxis.Max then Exit;
  if Line1Position < XAxis.Min then Exit;

  with Canvas do
    begin
      Pen.Color := Color;
      Pen.Width := LineWidth;
      Pen.Style := LineStyle;

      XPixels   := XAxis.PositionToPixels(Line1Position);

      Y1Pixels  := YAxis.PositionToPixels(YAxis.Min);
      Y2Pixels  := YAxis.PositionToPixels(YAxis.Max);

      Polyline([iPointReverse(XYAxesReversed, XPixels, Y1Pixels), iPointReverse(XYAxesReversed, XPixels, Y2Pixels)]);

      FLine1Show      := True;
      FLine1ClickRect := iXYReverseRect(XYAxesReversed, XPixels - 5, Y1Pixels, XPixels + 5, Y2Pixels);
    end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.DrawLineY(const Canvas: TCanvas; const BackGroundColor: TColor);
var
  YPixels  : Integer;
  X1Pixels : Integer;
  X2Pixels : Integer;
begin
  if Line1Position > YAxis.Max then Exit;
  if Line1Position < YAxis.Min then Exit;

  with Canvas do
    begin
      Pen.Color := Color;
      Pen.Width := LineWidth;
      Pen.Style := LineStyle;

      YPixels  := YAxis.PositionToPixels(Line1Position);

      X1Pixels := XAxis.PositionToPixels(XAxis.Min);
      X2Pixels := XAxis.PositionToPixels(XAxis.Max);

      Polyline([iPointReverse(XYAxesReversed, X1Pixels, YPixels), iPointReverse(XYAxesReversed, X2Pixels, YPixels)]);

      FLine1Show      := True;
      FLine1ClickRect := iXYReverseRect(XYAxesReversed, X1Pixels, YPixels - 5, X2Pixels, YPixels + 5);
    end;
end;
//****************************************************************************************************************************************************
procedure TiPlotLimit.DrawBandX(const Canvas: TCanvas; const BackGroundColor: TColor);
var
  X1Pixels : Integer;
  X2Pixels : Integer;
  Y1Pixels : Integer;
  Y2Pixels : Integer;
begin
  with Canvas do
    begin
      Pen.Color := Color;

      Brush.Color := Color;
      Brush.Style := FillStyle;

      X1Pixels := XAxis.PositionToPixels(Line1Position);
      X2Pixels := XAxis.PositionToPixels(Line2Position);

      Y1Pixels := YAxis.PositionToPixels(YAxis.Min);
      Y2Pixels := YAxis.PositionToPixels(YAxis.Max);

      FLine1ClickRect := iXYReverseRect(XYAxesReversed, X1Pixels - 5, Y1Pixels, X1Pixels + 5, Y2Pixels);
      FLine1Show      := True;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线观看一区| 亚洲黄色性网站| 国内外精品视频| 91免费看片在线观看| 26uuu亚洲婷婷狠狠天堂| 国产激情精品久久久第一区二区| 中文字幕视频一区二区三区久| 欧美蜜桃一区二区三区| 国产盗摄精品一区二区三区在线| 亚洲一区视频在线| 精品国一区二区三区| 一本大道久久a久久综合婷婷 | 91麻豆国产福利精品| 免费久久精品视频| 国产精品色在线| 欧美一卡在线观看| 91亚洲国产成人精品一区二三| 久久国产欧美日韩精品| 极品少妇xxxx偷拍精品少妇| 91精品国产免费| 99精品热视频| 国产成人av在线影院| 六月丁香婷婷久久| 日韩国产一区二| 亚洲国产中文字幕| 依依成人综合视频| 中文字幕av在线一区二区三区| www亚洲一区| 91麻豆精品国产自产在线观看一区 | 亚洲国产日韩a在线播放| 欧美国产1区2区| 国产丝袜在线精品| 久久综合狠狠综合| 精品国产一区二区三区四区四| 欧美日韩aaa| 欧美日韩久久久| 欧美日韩高清影院| 欧美日韩国产在线播放网站| 欧美主播一区二区三区美女| 日本久久一区二区三区| 91麻豆.com| 色婷婷av一区二区三区大白胸| 99re热这里只有精品视频| 成人av在线资源网| 一本到不卡免费一区二区| 色一情一伦一子一伦一区| 一本一本大道香蕉久在线精品 | 国产成人免费高清| 成人免费毛片片v| kk眼镜猥琐国模调教系列一区二区| 国产91精品露脸国语对白| 丁香啪啪综合成人亚洲小说| 本田岬高潮一区二区三区| 91在线免费视频观看| 色婷婷av一区二区| 欧美日韩国产精品成人| 欧美一区二区三区四区高清| 欧美r级在线观看| 久久精品欧美日韩精品| 欧美经典一区二区三区| 中文字幕在线不卡| 亚洲一区二区av电影| 亚洲高清一区二区三区| 蜜臀久久久99精品久久久久久| 久久激五月天综合精品| 国产精品一区二区黑丝 | 欧美男男青年gay1069videost | 国产精品一区一区| av综合在线播放| 欧美午夜电影网| 欧美va亚洲va| 亚洲欧洲三级电影| 亚洲精选免费视频| 美女视频一区二区| 成人免费看黄yyy456| 91亚洲国产成人精品一区二区三| 欧美日韩国产精选| 国产精品午夜电影| 天堂久久一区二区三区| 狠狠色综合日日| 色噜噜狠狠色综合中国| 9191国产精品| 欧美激情一区二区| 亚洲高清一区二区三区| 国产91在线|亚洲| 欧美色爱综合网| 久久久久久久久久久久久夜| 一区二区三区精品在线| 精品亚洲国内自在自线福利| 91欧美一区二区| 日韩欧美三级在线| 亚洲男同性视频| 精品亚洲免费视频| 欧美日韩亚州综合| 欧美韩国日本不卡| 美女视频免费一区| 欧美三区在线观看| 国产精品亲子伦对白| 日本午夜精品视频在线观看| 波多野结衣精品在线| 精品成人私密视频| 亚洲二区在线观看| 色综合久久久久综合体桃花网| 久久久99精品久久| 天堂蜜桃一区二区三区| 色成年激情久久综合| 久久久.com| 日本系列欧美系列| 精品视频1区2区3区| 国产精品午夜春色av| 狠狠色2019综合网| 欧美一区二区精品久久911| 日韩美女精品在线| 东方aⅴ免费观看久久av| 日韩欧美专区在线| 午夜日韩在线观看| 色狠狠av一区二区三区| 国产精品国产三级国产aⅴ中文 | 日韩成人伦理电影在线观看| 91免费看`日韩一区二区| 国产午夜精品久久久久久免费视| 蜜桃视频一区二区三区| 777久久久精品| 亚洲bt欧美bt精品777| 色综合色综合色综合色综合色综合 | 亚洲国产精品一区二区www在线| 成人动漫一区二区| 国产欧美精品一区二区色综合 | 国产精品久久毛片| 国产成人免费在线视频| 久久久影视传媒| 国产乱妇无码大片在线观看| 久久夜色精品一区| 国内精品免费在线观看| 久久蜜桃香蕉精品一区二区三区| 国内精品国产成人| 久久影院午夜片一区| 国产美女视频91| 日本一区二区三区免费乱视频| 国产成人综合在线| 中文欧美字幕免费| youjizz国产精品| 日韩美女精品在线| 在线视频欧美精品| 亚洲国产一区二区在线播放| 在线观看成人小视频| 亚洲综合久久久久| 欧美久久久久久久久久| 三级欧美韩日大片在线看| 4hu四虎永久在线影院成人| 日本一道高清亚洲日美韩| 精品免费视频一区二区| 紧缚奴在线一区二区三区| 久久久午夜精品理论片中文字幕| 国产成人自拍网| 日韩美女久久久| 欧美日本国产视频| 蜜臀av一区二区三区| 欧美国产精品一区| 91女神在线视频| 丝袜亚洲精品中文字幕一区| 日韩欧美另类在线| 成人动漫av在线| 性做久久久久久久久| 亚洲精品一区二区在线观看| 粉嫩嫩av羞羞动漫久久久 | 亚洲精品在线观| 99视频精品全部免费在线| 亚洲一区二区三区精品在线| 欧美一级在线观看| 成人精品在线视频观看| 亚洲一卡二卡三卡四卡五卡| 精品av综合导航| 97se狠狠狠综合亚洲狠狠| 五月婷婷色综合| 国产三级精品三级| 欧美在线观看18| 久草在线在线精品观看| 亚洲欧美中日韩| 日韩一级片网址| av一区二区三区黑人| 污片在线观看一区二区| 日本一区二区三区在线不卡| 欧美日韩视频在线观看一区二区三区 | 国产一区免费电影| 亚洲美女区一区| 精品久久一区二区| 色婷婷精品大在线视频| 激情都市一区二区| 亚洲成av人片一区二区三区| 久久久久久一二三区| 欧美日韩国产成人在线91| 国产成人8x视频一区二区| 日韩 欧美一区二区三区| 国产精品久线在线观看| 精品国产一二三| 欧美日韩亚洲综合一区二区三区| 成人sese在线| 狠狠色综合播放一区二区| 亚洲第一主播视频|