Debug.error( "ScaleFilterLayer.parseScales(): " + "Failed to locate property \"" + transitionScalesProperty + "\""); if (transitionScales.length > 0)
Debug.error("ScaleFilterLayer.parseScales(): Failed to locate property \"" + transitionScalesProperty + "\""); if (transitionScales.length > 0) {
    protected void parseScales(String prefix, Properties props) {	StringTokenizer tok = null;	int size = layers.size();	if (size > 0)	    --size;	transitionScales = new float[size];	String scales = props.getProperty(prefix + transitionScalesProperty);	if (scales == null) {	    Debug.error(			"ScaleFilterLayer.parseScales(): " +			"Failed to locate property \""			+ transitionScalesProperty + "\"");	    if (transitionScales.length > 0)		transitionScales[0] = defaultTransitionScale;	    for (int i=1; i<transitionScales.length; i++) {		transitionScales[i] = transitionScales[i-1]/3;	    }	    return;	}	try {	    tok = new StringTokenizer(scales);	    transitionScales[0] = (tok.hasMoreTokens())		? new Float(tok.nextToken()).floatValue()		: defaultTransitionScale;	} catch (NumberFormatException e) {	    Debug.error(		    "ScaleFilterLayer.parseScales()1: " + e);	    transitionScales[0] = defaultTransitionScale;	}	for (int i=1; i<transitionScales.length; i++) {	    try {		transitionScales[i] = (tok.hasMoreTokens())		    ? new Float(tok.nextToken()).floatValue()		    : transitionScales[i-1]/3;	    } catch (NumberFormatException e) {		Debug.error(			"ScaleFilterLayer.parseScales()2: " + e);		transitionScales[i] = transitionScales[i-1]/3;	    }	}    }