Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.1/sources/HeuristicLab.Charting/Interfaces/IPrimitive.cs @ 12467

Last change on this file since 12467 was 2, checked in by swagner, 17 years ago

Added HeuristicLab 3.0 sources from former SVN repository at revision 52

File size: 2.4 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.Text;
25using System.Drawing;
26using System.Windows.Forms;
27
28namespace HeuristicLab.Charting {
29  public interface IPrimitive {
30    IChart Chart { get; }
31    IGroup Group { get; set; }
32    Pen Pen { get; set; }
33    Brush Brush { get; set; }
34    bool UpdateEnabled { get; }
35    bool Selected { get; set; }
36    string ToolTipText { get; set; }
37    object Tag { get; set; }
38
39    void Move(Offset delta);
40    void Move(double dx, double dy);
41
42    bool ContainsPoint(PointD point);
43    bool ContainsPoint(double x, double y);
44
45    Cursor GetCursor(PointD point);
46    Cursor GetCursor(double x, double y);
47    string GetToolTipText(PointD point);
48    string GetToolTipText(double x, double y);
49
50    void OneLayerUp();
51    void OneLayerDown();
52    void IntoForeground();
53    void IntoBackground();
54
55    void MouseClick(PointD point, MouseButtons button);
56    void MouseClick(double x, double y, MouseButtons button);
57    void MouseDoubleClick(PointD point, MouseButtons button);
58    void MouseDoubleClick(double x, double y, MouseButtons button);
59    void MouseMove(PointD point, Offset offset);
60    void MouseMove(double x, double y, double dx, double dy);
61    void MouseDrag(PointD point, Offset offset, MouseButtons button);
62    void MouseDrag(double x, double y, double dx, double dy, MouseButtons button);
63
64    void PreDraw(Graphics graphics);
65    void Draw(Graphics graphics);
66    void PostDraw(Graphics graphics);
67
68    event EventHandler Update;
69    void EnforceUpdate();
70  }
71}
Note: See TracBrowser for help on using the repository browser.