Revision 130 trunk/libraries/libCq CMS for java.old/src/org/cresques/px/PxRaster.java
PxRaster.java | ||
---|---|---|
7 | 7 |
import java.awt.geom.Point2D; |
8 | 8 |
|
9 | 9 |
import java.awt.Color; |
10 |
import java.awt.Component; |
|
10 | 11 |
import java.awt.Graphics2D; |
11 | 12 |
import java.awt.Image; |
12 | 13 |
|
... | ... | |
46 | 47 |
|
47 | 48 |
public PxRaster(IProjection proj, String fname, ImageObserver component) { |
48 | 49 |
geoFile = GeoRasterFile.openFile(proj, fname);//loadECW(fname); |
50 |
geoFile.setUpdatable((Component) component); |
|
49 | 51 |
this.proj = proj; |
50 | 52 |
this.component = component; |
51 | 53 |
setExtent(geoFile.getExtent()); |
... | ... | |
72 | 74 |
extentOrig = extent; |
73 | 75 |
} |
74 | 76 |
|
77 |
public String getFName() { |
|
78 |
return geoFile.getName(); |
|
79 |
} |
|
80 |
|
|
81 |
/** |
|
82 |
* Devuelve la anchura total del fichero, en pixeles. |
|
83 |
* @return ancho en pixeles |
|
84 |
*/ |
|
85 |
public int getFWidth() { |
|
86 |
return geoFile.getWidth(); |
|
87 |
} |
|
88 |
|
|
89 |
/** |
|
90 |
* Devuelve la altura total del fichero, en pixeles. |
|
91 |
* @return alto en pixeles |
|
92 |
*/ |
|
93 |
public int getFHeight() { |
|
94 |
return geoFile.getHeight(); |
|
95 |
} |
|
96 |
|
|
75 | 97 |
public void setTransparency(boolean t) {geoFile.setTransparency(t);} |
76 | 98 |
|
77 | 99 |
public void setExtent(Extent e) { |
Also available in: Unified diff