-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyahooFont.java
More file actions
41 lines (30 loc) · 763 Bytes
/
yahooFont.java
File metadata and controls
41 lines (30 loc) · 763 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.example.project;
import java.awt.*;
public class yahooFont extends Font {
private double fontColor;
public yahooFont(String name, int style, int size, double color) {
super(name, style, size);
fontColor = color;
}
public String getName(){
return name;
}
public int getStyle(){
return style;
}
public int getSize(){
return size;
}
public double getColor(){
return fontColor;
}
public String setFontName(String setFontName){
return name = setFontName;
}
public int setStyle(int setStyle){
return style = setStyle;
}
public double setFontColor(double setFontColor){
return fontColor = setFontColor;
}
}