Example usage for java.awt Font equals

List of usage examples for java.awt Font equals

Introduction

In this page you can find the example usage for java.awt Font equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Compares this Font object to the specified Object .

Usage

From source file:com.rapidminer.gui.new_plotter.configuration.PlotConfiguration.java

/**
 * @param titleFont//from   w  ww .  ja v a  2 s  .c o  m
 *            the titleFont to set
 */
public void setTitleFont(Font titleFont) {
    if (!titleFont.equals(this.titleFont)) {
        this.titleFont = titleFont;
        fireTitleChanged();
    }
}

From source file:ro.nextreports.designer.PropertyPanel.java

private Font getUniqueFont() {
    Font font = null;
    int n = reportGridCells.size();
    for (int i = 0; i < n; i++) {
        BandElement element = reportGridCells.get(i).getValue();
        if (i == 0) {
            font = element.getFont();/*w w w.j  av a 2s .  co  m*/
            continue;
        }
        if (!font.equals(element.getFont())) {
            return null;
        }
    }

    return font;
}