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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? qiplotlimit.pas

?? Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 數(shù)據(jù)顯示編程插件,可用于工業(yè)控制
?? 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;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩在线一二三区| 国产精品毛片久久久久久久| 奇米色一区二区| 欧美精三区欧美精三区| 六月丁香婷婷色狠狠久久| 日韩精品一区国产麻豆| 福利91精品一区二区三区| 国产精品亲子伦对白| 色婷婷综合激情| 日韩电影在线一区二区| 久久精品一区二区三区不卡| 99国产精品视频免费观看| 一区二区久久久久久| 欧美情侣在线播放| 国产乱码一区二区三区| 18成人在线视频| 91麻豆精品国产无毒不卡在线观看 | 欧美麻豆精品久久久久久| 亚洲超丰满肉感bbw| 日韩欧美一区二区三区在线| 丰满亚洲少妇av| 亚洲狠狠丁香婷婷综合久久久| 色呦呦国产精品| 久久丁香综合五月国产三级网站| 中文字幕av不卡| 欧美综合一区二区| 国产精品一区二区三区99| 亚洲精品日产精品乱码不卡| 日韩三级伦理片妻子的秘密按摩| 国产成人精品亚洲777人妖| 一区二区三区在线视频观看58| 欧美一区二区精品在线| caoporn国产精品| 日本亚洲一区二区| 亚洲视频每日更新| 2020国产精品久久精品美国| 欧美在线你懂的| 东方欧美亚洲色图在线| www.亚洲精品| 精品一区二区在线看| 一区二区三区中文字幕| 国产午夜精品理论片a级大结局| 欧美性极品少妇| 国产mv日韩mv欧美| 蜜臀av一区二区| 一区二区三区精品视频在线| 久久婷婷久久一区二区三区| 欧美日韩三级一区二区| 91丨九色丨蝌蚪丨老版| 国产精品一二三区在线| 丝袜美腿亚洲一区| 亚洲一区自拍偷拍| 国产精品久久久久婷婷二区次| 欧美一级夜夜爽| 欧美性videosxxxxx| 99久久99久久精品免费观看 | 欧美在线免费观看亚洲| 豆国产96在线|亚洲| 韩国欧美国产1区| 久久精品国产精品亚洲红杏| 午夜视频一区在线观看| 夜色激情一区二区| 亚洲欧洲一区二区在线播放| 国产亚洲一本大道中文在线| 91精品国产乱| 91精品午夜视频| 欧美日韩一区三区| 欧美三日本三级三级在线播放| 99久久精品久久久久久清纯| 成人精品一区二区三区中文字幕| 日韩一区二区三区电影| 在线视频欧美精品| 一本久久精品一区二区| 91色porny在线视频| 成人黄色小视频在线观看| 丁香一区二区三区| 成人高清视频免费观看| 成人国产精品免费观看| 不卡影院免费观看| 99久免费精品视频在线观看| 成人精品一区二区三区四区| 成人亚洲一区二区一| 成人晚上爱看视频| 97精品国产97久久久久久久久久久久| 成人精品视频一区二区三区尤物| 成人国产精品免费| 91无套直看片红桃| 色婷婷综合久久久中文字幕| 欧美亚洲图片小说| 欧美精品自拍偷拍动漫精品| 欧美一级一区二区| 久久久精品黄色| 中文字幕av一区二区三区免费看 | 91老司机福利 在线| 91丝袜美腿高跟国产极品老师| 91精彩视频在线观看| 欧美三级中文字幕| 91麻豆精品国产91久久久使用方法 | 亚洲女厕所小便bbb| 亚洲国产日韩在线一区模特| 青青草国产精品亚洲专区无| 国产一区999| 99麻豆久久久国产精品免费| 欧美亚州韩日在线看免费版国语版| 欧美性xxxxxxxx| 欧美不卡激情三级在线观看| 午夜精品在线看| 国产高清无密码一区二区三区| 99视频在线观看一区三区| 欧美亚洲国产bt| 欧美va天堂va视频va在线| 国产精品三级视频| 亚洲一区影音先锋| 激情综合色播激情啊| 成人app下载| 制服视频三区第一页精品| 久久欧美中文字幕| 亚洲综合一二区| 国产精品一区三区| 色狠狠av一区二区三区| 欧美成人在线直播| 中文字幕一区二区在线播放| 午夜免费久久看| 成人性生交大片免费看在线播放| 欧美色区777第一页| 国产网站一区二区| 亚洲18色成人| 不卡的av电影| 日韩一区二区电影在线| 亚洲欧洲av色图| 久久精品国产99国产| 91天堂素人约啪| 久久精品夜夜夜夜久久| 亚洲国产欧美另类丝袜| 国产成人精品免费视频网站| 欧美久久久久久久久久| 国产精品国产三级国产| 免费看欧美女人艹b| 在线观看亚洲一区| 中文字幕乱码一区二区免费| 免费一区二区视频| 日本一区免费视频| 五月天久久比比资源色| 一本色道久久综合精品竹菊| 国产亚洲短视频| 麻豆国产91在线播放| 欧美日韩国产123区| 亚洲日本青草视频在线怡红院| 国产成人一区二区精品非洲| 在线综合视频播放| 午夜伦欧美伦电影理论片| 日本精品视频一区二区三区| 国产精品女主播av| 国产美女娇喘av呻吟久久| 欧美一区二区三区视频免费 | 中文字幕一区二区三区蜜月| 国产一区啦啦啦在线观看| 欧美一区二区三区的| 日韩激情中文字幕| 欧美日韩另类一区| 亚洲国产欧美在线人成| 欧美性三三影院| 亚洲成av人片在线观看无码| 欧美亚洲一区二区在线观看| 一区二区三区小说| 欧美综合亚洲图片综合区| 一区二区欧美国产| 欧美日韩一级片网站| 亚洲一区二区三区视频在线| 在线看国产一区| 亚洲蜜臀av乱码久久精品蜜桃| 色综合天天综合| 日韩经典一区二区| 欧美日韩二区三区| 日本欧美加勒比视频| 亚洲三级视频在线观看| 色94色欧美sute亚洲线路一久| 亚洲视频在线一区| 欧美午夜电影网| 午夜激情久久久| 欧美成人一级视频| 国产剧情一区二区| 国产精品麻豆视频| 色婷婷综合久久久中文字幕| 亚洲高清不卡在线| 日韩美女主播在线视频一区二区三区| 久久97超碰国产精品超碰| 久久综合九色综合97婷婷| 国产不卡视频在线播放| 亚洲视频狠狠干| 欧美精品免费视频| 精品一区二区免费在线观看| 久久精品欧美日韩| 色综合天天做天天爱| 五月天久久比比资源色| 久久久精品tv| 欧美亚洲综合在线| 国内欧美视频一区二区 | 亚洲国产一区二区a毛片| 91 com成人网|