public void setProperties(String prefix, java.util.Properties properties) { setPropertyPrefix(prefix);  setDefaultValues();  prefix = PropUtils.getScopedPropertyPrefix(prefix);  fillRects = LayerUtils.booleanFromProperties(properties, prefix + FillProperty, true);  opaqueness = LayerUtils.intFromProperties(properties, prefix + OpaquenessProperty, RpfColortable.DEFAULT_OPAQUENESS);  CGColor = LayerUtils.parseColorFromProperties(properties, prefix + CGColorProperty, RpfCoverageManager.defaultCGColorString); TLMColor = LayerUtils.parseColorFromProperties(properties, prefix + TLMColorProperty, RpfCoverageManager.defaultTLMColorString); JOGColor = LayerUtils.parseColorFromProperties(properties, prefix + JOGColorProperty, RpfCoverageManager.defaultJOGColorString); TPCColor = LayerUtils.parseColorFromProperties(properties, prefix + TPCColorProperty, RpfCoverageManager.defaultTPCColorString); ONCColor = LayerUtils.parseColorFromProperties(properties, prefix + ONCColorProperty, RpfCoverageManager.defaultONCColorString); JNCColor = LayerUtils.parseColorFromProperties(properties, prefix + JNCColorProperty, RpfCoverageManager.defaultJNCColorString); GNCColor = LayerUtils.parseColorFromProperties(properties, prefix + GNCColorProperty, RpfCoverageManager.defaultGNCColorString); CIB10Color = LayerUtils.parseColorFromProperties(properties, prefix + CIB10ColorProperty, RpfCoverageManager.defaultCIB10ColorString); CIB5Color = LayerUtils.parseColorFromProperties(properties, prefix + CIB5ColorProperty, RpfCoverageManager.defaultCIB5ColorString); MISCColor = LayerUtils.parseColorFromProperties(properties, prefix + MISCColorProperty, RpfCoverageManager.defaultMISCColorString);     if (showPalette) { showCG = LayerUtils.booleanFromProperties(properties, prefix + ShowCGProperty, true); showTLM = LayerUtils.booleanFromProperties(properties, prefix + ShowTLMProperty, true); showJOG = LayerUtils.booleanFromProperties(properties, prefix + ShowJOGProperty, true); showTPC = LayerUtils.booleanFromProperties(properties, prefix + ShowTPCProperty, true); showONC = LayerUtils.booleanFromProperties(properties, prefix + ShowONCProperty, true); showJNC = LayerUtils.booleanFromProperties(properties, prefix + ShowJNCProperty, true); showGNC = LayerUtils.booleanFromProperties(properties, prefix + ShowGNCProperty, true); showCIB10 = LayerUtils.booleanFromProperties(properties, prefix + ShowCIB10Property, true); showCIB5 = LayerUtils.booleanFromProperties(properties, prefix + ShowCIB5Property, true); showMISC = LayerUtils.booleanFromProperties(properties, prefix + ShowMISCProperty, true); }
public void setProperties(java.util.Properties props) { setProperties(null, props);
    public void setProperties(String prefix, java.util.Properties properties) {        setPropertyPrefix(prefix);        setDefaultValues();        prefix = PropUtils.getScopedPropertyPrefix(prefix);                        fillRects = LayerUtils.booleanFromProperties(properties,                                                     prefix + FillProperty,                                                     true);        opaqueness = LayerUtils.intFromProperties(properties,                                                  prefix + OpaquenessProperty,                                                  RpfColortable.DEFAULT_OPAQUENESS);                CGColor = LayerUtils.parseColorFromProperties(properties,                                                       prefix + CGColorProperty,                                                       RpfCoverageManager.defaultCGColorString);        TLMColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + TLMColorProperty,                                                        RpfCoverageManager.defaultTLMColorString);        JOGColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + JOGColorProperty,                                                        RpfCoverageManager.defaultJOGColorString);        TPCColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + TPCColorProperty,                                                        RpfCoverageManager.defaultTPCColorString);        ONCColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + ONCColorProperty,                                                        RpfCoverageManager.defaultONCColorString);        JNCColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + JNCColorProperty,                                                        RpfCoverageManager.defaultJNCColorString);        GNCColor = LayerUtils.parseColorFromProperties(properties,                                                        prefix + GNCColorProperty,                                                        RpfCoverageManager.defaultGNCColorString);        CIB10Color = LayerUtils.parseColorFromProperties(properties,                                                          prefix + CIB10ColorProperty,                                                          RpfCoverageManager.defaultCIB10ColorString);        CIB5Color = LayerUtils.parseColorFromProperties(properties,                                                         prefix + CIB5ColorProperty,                                                         RpfCoverageManager.defaultCIB5ColorString);        MISCColor = LayerUtils.parseColorFromProperties(properties,                                                         prefix + MISCColorProperty,                                                         RpfCoverageManager.defaultMISCColorString);        // If the palette is turned off, then we all of them have been        // set to true.  Only the coverage of the limited series will        // be asked for.        if (showPalette) {            showCG = LayerUtils.booleanFromProperties(properties, prefix + ShowCGProperty, true);            showTLM = LayerUtils.booleanFromProperties(properties, prefix + ShowTLMProperty, true);            showJOG = LayerUtils.booleanFromProperties(properties, prefix + ShowJOGProperty, true);            showTPC = LayerUtils.booleanFromProperties(properties, prefix + ShowTPCProperty, true);            showONC = LayerUtils.booleanFromProperties(properties, prefix + ShowONCProperty, true);            showJNC = LayerUtils.booleanFromProperties(properties, prefix + ShowJNCProperty, true);            showGNC = LayerUtils.booleanFromProperties(properties, prefix + ShowGNCProperty, true);            showCIB10 = LayerUtils.booleanFromProperties(properties, prefix + ShowCIB10Property, true);            showCIB5 = LayerUtils.booleanFromProperties(properties, prefix + ShowCIB5Property, true);            showMISC = LayerUtils.booleanFromProperties(properties, prefix + ShowMISCProperty, true);        }    }