Package Shapes
Class MyLine
java.lang.Object
Shapes.MyShape
Shapes.MyLine
public class MyLine extends MyShape
represents line that can be drawn
- Author:
- Itay Finci
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MyLine(java.awt.Point origin, java.awt.Point target, java.awt.Color color, int thickness)makes a new line -
Method Summary
Modifier and Type Method Description voiddraw(java.awt.Graphics g)shapes will implement this method to be drawn
-
Constructor Details
-
MyLine
public MyLine(java.awt.Point origin, java.awt.Point target, java.awt.Color color, int thickness)makes a new line- Parameters:
origin- the origin point of the linetarget- the end point of the linecolor- the color of the linethickness- the line thickness
-
-
Method Details