Last change
on this file since 1233 was
1233,
checked in by mstoeger, 15 years ago
|
General housekeeping (#498) Removed some old unused Z-Order values. Replaced some var types by concrete types. Renamed some LineShape properties. Added caching of Pens and Brushes in LineShape and RectangleShape. Put axis tick calculation algorithm into its own class.
|
File size:
724 bytes
|
Line | |
---|
1 | using System.Drawing;
|
---|
2 | using System.Windows.Forms;
|
---|
3 | using HeuristicLab.Visualization.Legend;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Visualization.Test {
|
---|
6 | public partial class LegendForm : Form {
|
---|
7 | public LegendForm() {
|
---|
8 | InitializeComponent();
|
---|
9 | canvasUI.MainCanvas.WorldShape = new WorldShape(new RectangleD(0, 0, 800, 600), new RectangleD(0, 0, 800, 600));
|
---|
10 |
|
---|
11 | CreateLegendShape();
|
---|
12 | }
|
---|
13 |
|
---|
14 | private void CreateLegendShape() {
|
---|
15 | WorldShape mainShape = canvasUI.MainCanvas.WorldShape;
|
---|
16 | LegendShape ls = new LegendShape();
|
---|
17 | ls.AddLegendItem(new LegendItem("test", Color.Black, 5));
|
---|
18 | ls.AddLegendItem(new LegendItem("test2", Color.Red, 5));
|
---|
19 |
|
---|
20 | mainShape.AddShape(ls);
|
---|
21 | }
|
---|
22 | }
|
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.