Font.java
1.26 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Decompiled with CFR 0_118.
*/
package com.day.cq.dam.commons.watermark;
import java.awt.Color;
public class Font {
public static final int DEFAULT_SIZE = 48;
public static final Color DEFAULT_COLOR = new Color(0, 0, 0);
public static final String DEFAULT_FAMILY = "Serif";
private int size = 48;
private Color color = DEFAULT_COLOR;
private String family = "Serif";
public Font() {
}
public Font(int size) {
this.size = size;
}
public Font(int size, Color color) {
this.size = size;
this.color = color;
}
public Font(int size, Color color, String family) {
this.size = size;
this.color = color;
this.family = family;
}
public int getSize() {
return this.size;
}
public void setSize(int size) {
this.size = size;
}
public Color getColor() {
return this.color;
}
public void setColor(Color color) {
this.color = color;
}
public String getFamily() {
return this.family;
}
public void setFamily(String family) {
this.family = family;
}
public String toString() {
return "\nsize = " + this.size + "\ncolor = " + this.color + "\nfamily = " + this.family;
}
}