source: src/main/java/negotiator/onetomany/etc/Circle.java@ 211

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: 449 bytes
Line 
1/**
2 *
3 */
4package negotiator.onetomany.etc;
5
6import java.awt.Color;
7import java.awt.Graphics;
8import java.awt.Point;
9
10/**
11 * @author Faria Nassiri-Mofakham
12 *
13 */
14public class Circle extends Shape
15{
16 public Circle(Point loc, int rad, Color color)
17 {
18 super(loc, rad, color);
19 }
20
21 @Override
22 public void paint(Graphics g, Color c)
23 {
24 g.fillOval(getLocation().x, getLocation().y, getDimensions(),getDimensions());
25 }
26}
Note: See TracBrowser for help on using the repository browser.