svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / basicformats / CLRFile.java @ 47655
History | View | Annotate | Download (908 Bytes)
1 | 44831 | jjdelcerro | /*
|
---|---|---|---|
2 | * To change this license header, choose License Headers in Project Properties.
|
||
3 | * To change this template file, choose Tools | Templates
|
||
4 | * and open the template in the editor.
|
||
5 | */
|
||
6 | package org.gvsig.basicformats; |
||
7 | |||
8 | 47655 | fdiaz | import java.io.File; |
9 | import java.io.IOException; |
||
10 | import org.gvsig.basicformats.impl.DefaultCLRFile; |
||
11 | 44831 | jjdelcerro | import org.gvsig.raster.lib.legend.api.colortable.ColorTable; |
12 | |||
13 | |||
14 | public interface CLRFile extends FormatFile { |
||
15 | |||
16 | 47655 | fdiaz | public static CLRFile createCLRFile() { |
17 | return new DefaultCLRFile(); |
||
18 | } |
||
19 | |||
20 | public static CLRFile getCLRFile(File file) { |
||
21 | try {
|
||
22 | DefaultCLRFile format = new DefaultCLRFile();
|
||
23 | format.read(file); |
||
24 | return format;
|
||
25 | } catch (IOException ex) { |
||
26 | return null; |
||
27 | } |
||
28 | } |
||
29 | |||
30 | 44831 | jjdelcerro | public String FILE_EXTENSION = "clr"; |
31 | |||
32 | ColorTable getColorTable(); |
||
33 | |||
34 | void setColorTable(ColorTable colorTable);
|
||
35 | |||
36 | } |