import java.util.List;
import java.util.Map;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.kitfox.svg.SVGDiagram;
/**
*/
public class MipMapBufferedImage extends BufferedImage {
+ private static final Logger LOGGER = LoggerFactory.getLogger(MipMapBufferedImage.class);
+
/** Extra margin to the bounds reported by batik */
public static final double MARGIN_PERCENT = 3;
}
private void initializeRasters() {
+ if (LOGGER.isDebugEnabled())
+ LOGGER.debug("initializeRasters({}): diagram={}, referenceSize={}, imageBounds={}, maxres={}, minres={}", this.toString(), source, referenceSize, imageBounds, maxResolution(), minResolution());
List<Double> resolutions = new ArrayList<Double>();
if (referenceSize != null && !imageBounds.isEmpty()) {
}
}
+ if (LOGGER.isDebugEnabled())
+ LOGGER.debug("initializeRasters({}): resolutions={}", this.toString(), resolutions);
+
// arraylist -> array
this.resolutions = new double[resolutions.size()];
for (int i=0; i<resolutions.size(); i++)