source: src/main/java/negotiator/onetomany/etc/Square.java@ 212

Last change on this file since 212 was 212, checked in by Faria Nassiri Mofakham, 6 years ago
File size: 471 bytes
Line 
1package negotiator.onetomany.etc;
2import java.awt.Color;
3//
4import java.awt.Graphics;
5import java.awt.Point;
6//import java.awt.Color;
7
8
9/**
10 * @author Faria Nassiri-Mofakham
11 *
12 */
13public class Square extends Shape
14{
15 public Square(Point loc, int dim, Color color)
16 {
17 super(loc, dim, color);
18 }
19
20 @Override
21 public void paint(Graphics g, Color c)
22 {
23 g.drawRect(getLocation().x, getLocation().y, getDimension(),getDimension());
24 }
25}
26
27
28
29
30
Note: See TracBrowser for help on using the repository browser.