Font.java 1.26 KB
/*
 * 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;
    }
}