using System.Drawing;
namespace HeuristicLab.Visualization {
public class HorizontalLineShape : LineShape {
///
/// Initializes the LineShape.
///
/// x coordinate of left lineEndPoind
/// y coordinate of left lineEndPoind
/// x coordinate of right lineEndPoind
/// y coordinate of right lineEndPoind
/// color for the LineShape
/// tickness of the line in pixels
/// drawing style of the line (solid, dashed, dotted,...)
public HorizontalLineShape(double x1, double y1, double x2, double y2, Color color, int thickness,
DrawingStyle drawingStyle) : base(x1, y1, x2, y2, color, thickness, drawingStyle) {}
public override void Draw(Graphics graphics) {
X1 = Parent.ClippingArea.X1;
X2 = Parent.ClippingArea.X2;
Y2 = Y1;
base.Draw(graphics);
}
}
}