Last change
on this file since 2716 was
1530,
checked in by gkronber, 16 years ago
|
Moved source files of plugins Hive ... Visualization.Test into version-specific sub-folders. #576
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1187] | 1 | using System.Drawing;
|
---|
| 2 |
|
---|
| 3 | namespace HeuristicLab.Visualization {
|
---|
[1242] | 4 | public class HorizontalLineShape : LineShape {
|
---|
[1187] | 5 | /// <summary>
|
---|
[1242] | 6 | /// Initializes the LineShape.
|
---|
[1187] | 7 | /// </summary>
|
---|
[1242] | 8 | /// <param name="x1">x coordinate of left lineEndPoind</param>
|
---|
| 9 | /// <param name="y1">y coordinate of left lineEndPoind</param>
|
---|
| 10 | /// <param name="x2">x coordinate of right lineEndPoind</param>
|
---|
| 11 | /// <param name="y2">y coordinate of right lineEndPoind</param>
|
---|
[1187] | 12 | /// <param name="color">color for the LineShape</param>
|
---|
[1242] | 13 | /// <param name="thickness">tickness of the line in pixels</param>
|
---|
| 14 | /// <param name="drawingStyle">drawing style of the line (solid, dashed, dotted,...)</param>
|
---|
| 15 | public HorizontalLineShape(double x1, double y1, double x2, double y2, Color color, int thickness,
|
---|
| 16 | DrawingStyle drawingStyle) : base(x1, y1, x2, y2, color, thickness, drawingStyle) {}
|
---|
[1187] | 17 |
|
---|
[1240] | 18 | public override void Draw(Graphics graphics) {
|
---|
[1242] | 19 | X1 = Parent.ClippingArea.X1;
|
---|
| 20 | X2 = Parent.ClippingArea.X2;
|
---|
| 21 | Y2 = Y1;
|
---|
[1240] | 22 | base.Draw(graphics);
|
---|
[1187] | 23 | }
|
---|
| 24 | }
|
---|
[1242] | 25 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.