Last change
on this file since 211 was 211, checked in by Faria Nassiri Mofakham, 6 years ago |
For keeping track (Shapes added, several changes to Product, Portfolio, Main, and GUI classes; contains some errors) to return back after some more changes.
|
File size:
473 bytes
|
Line | |
---|
1 | package negotiator.onetomany.etc;
|
---|
2 | import java.awt.Color;
|
---|
3 | //
|
---|
4 | import java.awt.Graphics;
|
---|
5 | import java.awt.Point;
|
---|
6 | //import java.awt.Color;
|
---|
7 |
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * @author Faria Nassiri-Mofakham
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public 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, getDimensions(),getDimensions());
|
---|
24 | }
|
---|
25 | }
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.