|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ucar.unidata.util.ResourceManager ucar.unidata.ui.colortable.ColorTableManager edu.wisc.ssec.mcidasv.ui.McIdasColorTableManager
public class McIdasColorTableManager
A class to manage Hydra color tables
Field Summary | |
---|---|
static String |
CATEGORY_HYDRA
The color table category |
static PatternFileFilter |
FILTER_ET
File filter used for McIDAS-X "enhancement files" |
static PatternFileFilter |
FILTER_HYDRA
File filter used for "HYDRA" color tables |
Fields inherited from class ucar.unidata.ui.colortable.ColorTableManager |
---|
FILTER_ACT, FILTER_GEM, FILTER_IDV, FILTER_MCI, FILTER_PAL, NAME_DEFAULT, PROP_CANCEL, PROP_CLOSE, PROP_COLORTABLE, PROP_RANGE, TAG_COLORTABLE, TAG_COLORTABLES, TAG_NAME |
Fields inherited from class ucar.unidata.util.ResourceManager |
---|
listOfResourceLists, log_, LU, nameToObject, PROP_RESOURCECHANGE, PROP_RESOURCEREMOVE, resources, usersList, writablePath |
Constructor Summary | |
---|---|
McIdasColorTableManager()
Create me |
Method Summary | |
---|---|
NamedObject |
doImport(boolean makeUnique)
Import a color table |
List |
getReadFileFilters()
Return the file filters used for writing a file on an import |
private boolean |
isGempakFile(String file)
Is the given file a Gempak file |
void |
makeColorTableMenu(ObjectListener listener,
List l)
Filles the given list with menu items that represent that available color tables. |
private List |
processSpecial(String file,
String name,
String category)
Try to load in one of the special colortables |
Methods inherited from class ucar.unidata.ui.colortable.ColorTableManager |
---|
doExport, edit, getCategories, getColorTable, getColorTables, getDefaultColorTable, getExportContents, getLabel, getManager, getTitle, getWriteFileFilters, initResource, main, makeColorTableMenu, setManager |
Methods inherited from class ucar.unidata.util.ResourceManager |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CATEGORY_HYDRA
public static final PatternFileFilter FILTER_HYDRA
public static final PatternFileFilter FILTER_ET
Constructor Detail |
---|
public McIdasColorTableManager()
Method Detail |
---|
public void makeColorTableMenu(ObjectListener listener, List l)
makeColorTableMenu
in class ColorTableManager
public List getReadFileFilters()
getReadFileFilters
in class ColorTableManager
public NamedObject doImport(boolean makeUnique)
doImport
in class ColorTableManager
makeUnique
- If true then we change the name of the color table so it is unique
private List processSpecial(String file, String name, String category) throws IOException
file
- filename
- _more_category
- category
IOException
- _more_private boolean isGempakFile(String file)
file
- The file name to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |