-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectUseCase.java
More file actions
26 lines (18 loc) · 875 Bytes
/
ObjectUseCase.java
File metadata and controls
26 lines (18 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.awt.Graphics;
public class ObjectUseCase extends MainObject {
public ObjectUseCase(GUI m, int x, int y) {
super("Use case",m, x, y, 151,101);
// TODO Auto-generated constructor stub
}
@Override
public void draw(Graphics g) {
// TODO Auto-generated method stub
g.drawOval(0, 0, 150, 100);
if(super.selected) {
g.fillRect(super.north_port.x, super.north_port.y, super.connection_port_width ,super.connection_port_width);
g.fillRect(super.east_port.x-super.connection_port_width, super.east_port.y, super.connection_port_width,super.connection_port_width);
g.fillRect(super.south_port.x, super.south_port.y-super.connection_port_width ,super.connection_port_width,super.connection_port_width);
g.fillRect(super.west_port.x, super.west_port.y, super.connection_port_width,super.connection_port_width);
}
}
}