-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPainter.java
More file actions
24 lines (24 loc) · 1.11 KB
/
Copy pathPainter.java
File metadata and controls
24 lines (24 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* ============================================================================================
* Painter.java : Painter interface
* NAME: JANHAV KHANNA
* YOUR UPI: JKHA639
* DATE: 20/05/21
* DESCRIPTION: This is the painter class which handles the painter interface of the program.
* ============================================================================================
*/
import java.awt.*;
interface Painter {
public void drawLine(int x1, int y1, int x2, int y2);
public void drawRect(int x, int y, int width, int height);
public void drawOval(int x, int y, int width, int height);
public void fillRect(int x, int y, int width, int height);
public void fillOval(int x, int y, int width, int height);
public void setPaint(Color color);
public void setGraphics(Graphics g);
public void drawHandles(boolean isSelected, int x, int y, int width, int height);
public void translate(int x, int y);
public void drawString(String text, int x, int y);
public void setColor(Color color);
public void drawCenteredText(String text, int x, int y, int width, int height);
}