01: /**
02: *
03: */package org.geotools.gce.gtopo30;
04:
05: import java.util.Locale;
06:
07: import javax.imageio.ImageWriteParam;
08:
09: import org.geotools.coverage.grid.io.imageio.GeoToolsWriteParams;
10:
11: /**
12: * @author Simone Giannecchini.
13: * @since 2.3.x
14: *
15: */
16: public final class GTopo30WriteParams extends GeoToolsWriteParams {
17:
18: public int getCompressionMode() {
19: return compressionMode;
20: }
21:
22: public String getCompressionType() {
23: return compressionType;
24: }
25:
26: public boolean hasController() {
27: return false;
28: }
29:
30: public void setCompressionMode(int compressionMode) {
31: this .compressionMode = compressionMode;
32: }
33:
34: public void setCompressionType(String ct) {
35: compressionType = new String(ct);
36: }
37:
38: /**
39: * Default constructor.
40: */
41: public GTopo30WriteParams() {
42: super (new ImageWriteParam(Locale.getDefault()));
43: //allowed compression types
44: compressionTypes = new String[] { "NONE", "ZIP" };
45: //default compression type
46: compressionType = "NONE";
47: canWriteCompressed = true;
48: canWriteProgressive = false;
49: canWriteTiles = false;
50: canOffsetTiles = false;
51: controller = null;
52:
53: }
54:
55: public String[] getCompressionTypes() {
56: return compressionTypes;
57: }
58:
59: }
|