List of usage examples for java.awt Font equals
public boolean equals(Object obj)
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; }