public class McIdasColorTableManager extends ucar.unidata.ui.colortable.ColorTableManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATEGORY_HYDRA
The color table category
|
static ucar.unidata.util.PatternFileFilter |
FILTER_AWIPS2
File filter used for AWIPS II ".cmap" color tables.
|
static ucar.unidata.util.PatternFileFilter |
FILTER_ET
File filter used for McIDAS-X "enhancement files"
|
static ucar.unidata.util.PatternFileFilter |
FILTER_HYDRA
File filter used for "HYDRA" color tables
|
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
McIdasColorTableManager()
Create the color table manager.
|
Modifier and Type | Method and Description |
---|---|
ucar.unidata.util.NamedObject |
doImport(boolean makeUnique)
Import a color table.
|
java.util.List |
getReadFileFilters()
Return the file filters used for writing a file on an import.
|
java.util.List<ucar.unidata.util.ColorTable> |
handleColorTable(java.lang.String file,
java.lang.String name,
java.lang.String category)
Try to load in one of the "special" color table formats..
|
private boolean |
isGempakFile(java.lang.String file)
Is the given file a Gempak file
|
void |
makeColorTableMenu(ucar.unidata.util.ObjectListener listener,
java.util.List l)
Fills the given list with menu items that represent that available
color tables.
|
private java.util.List |
processSpecial(java.lang.String file,
java.lang.String name,
java.lang.String category)
Try to load in one of the special colortables
|
doExport, edit, getCategories, getColorTable, getColorTables, getDefaultColorTable, getExportContents, getLabel, getManager, getTitle, getWriteFileFilters, initResource, main, makeColorTableMenu, setManager
addPropertyChangeListener, addUsers, doExport, doImport, doImport, doNew, doNew, doNew, doSaveAs, firePropertyChange, firePropertyChange, getDefault, getEncoder, getFileFilters, getFileSuffix, getObject, getResources, getResourceTimestamp, getUsersIndex, getUsersObject, hasUsers, init, initDone, isUsers, processObject, reloadResources, removePropertyChangeListener, removeUsers, resourceExists, shouldWeIgnoreThisXml, toObject, toObject
public static final java.lang.String CATEGORY_HYDRA
public static final ucar.unidata.util.PatternFileFilter FILTER_HYDRA
public static final ucar.unidata.util.PatternFileFilter FILTER_ET
public static final ucar.unidata.util.PatternFileFilter FILTER_AWIPS2
private static final org.slf4j.Logger logger
public McIdasColorTableManager()
public void makeColorTableMenu(ucar.unidata.util.ObjectListener listener, java.util.List l)
makeColorTableMenu
in class ucar.unidata.ui.colortable.ColorTableManager
public java.util.List getReadFileFilters()
getReadFileFilters
in class ucar.unidata.ui.colortable.ColorTableManager
public ucar.unidata.util.NamedObject doImport(boolean makeUnique)
doImport
in class ucar.unidata.ui.colortable.ColorTableManager
makeUnique
- If true then we change the name of the color table so it is uniquepublic java.util.List<ucar.unidata.util.ColorTable> handleColorTable(java.lang.String file, java.lang.String name, java.lang.String category) throws java.io.IOException
Special types include:
file
- filename
- _more_category
- categoryjava.io.IOException
- _more_private java.util.List processSpecial(java.lang.String file, java.lang.String name, java.lang.String category) throws java.io.IOException
file
- filename
- _more_category
- categoryjava.io.IOException
- _more_private boolean isGempakFile(java.lang.String file)
file
- The file name to check