Search in sources :

Example 1 with FontParameter

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);
    }
}
Also used : JFontSpecs(net.sf.mzmine.framework.fontspecs.JFontSpecs) FontParameter(net.sf.mzmine.parameters.parametertypes.FontParameter)

Aggregations

JFontSpecs (net.sf.mzmine.framework.fontspecs.JFontSpecs)1 FontParameter (net.sf.mzmine.parameters.parametertypes.FontParameter)1