this.type = imageType;
out = new FileOutputStream(file);
- if (imageType == TYPE.SVG)
+ switch (imageType)
{
+ case SVG:
setupSVG(width, height, useLineart);
- }
- else if (imageType == TYPE.EPS)
- {
+ break;
+ case EPS:
setupEPS(width, height, fileTitle, useLineart);
- }
- else if (imageType == TYPE.PNG)
- {
+ break;
+ case PNG:
setupPNG(width, height);
+ break;
+ default:
}
}