use of net.sf.mzmine.parameters.parametertypes.FontParameter in project mzmine2 by mzmine.
the class GraphicsExportDialog method handleMasterFontChanged.
/**
* changes the components of all fonts to the master font
*
* @param font
*/
private void handleMasterFontChanged(FontSpecs font) {
String master = ChartThemeParameters.masterFont.getName();
for (Parameter<?> p : chartParam.getParameters()) {
if (!(p instanceof FontParameter) || master.equals(p.getName()))
continue;
FontParameter up = (FontParameter) p;
JFontSpecs component = (JFontSpecs) parametersAndComponents.get(p.getName());
up.setValueToComponent(component, font);
}
}
Aggregations