|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.ui.GenericMapper
simtools.ui.ImageMapper
public class ImageMapper
This class maps data sources and index to images. The mapping is user defined, and based for example on the value of the data source For example, green value < 10, red above. Useful for making plots with "alarm" colors The data source shall not be saved into the object. Rather, this class goal is to implement a mapping independent of the data source given. The same is true for the images
Nested Class Summary | |
---|---|
protected static class |
ImageMapper.ImageEditor
|
static class |
ImageMapper.ImageFile
This class is what is effectively mapped to a value or range |
static class |
ImageMapper.ImageFileFilter
Method isSvgFile test if the file is an svg file Parameters: the file f |
protected class |
ImageMapper.ImageMapperTableModel
|
protected class |
ImageMapper.ImageMappingTable
|
protected static class |
ImageMapper.ImageRenderer
|
Nested classes/interfaces inherited from class simtools.ui.GenericMapper |
---|
GenericMapper.Expression, GenericMapper.ExpressionDialog, GenericMapper.ExpressionEditor, GenericMapper.ExpressionMappingTable, GenericMapper.Interval, GenericMapper.MapperTableModel |
Field Summary | |
---|---|
static java.io.File |
defaultDirectory
An optional default directory for Image Mappers |
static javax.swing.JFileChooser |
fileChooser
|
static java.util.Vector |
imageMappers
The image mappers are application global |
static java.util.ResourceBundle |
resources
|
Fields inherited from class simtools.ui.GenericMapper |
---|
defaultValue, intervals, listeners, map, name |
Constructor Summary | |
---|---|
ImageMapper()
|
|
ImageMapper(java.lang.String name)
|
Method Summary | |
---|---|
static ImageMapper |
createImageMapperDialog(javax.swing.JDialog owner)
|
GenericMapper.MapperTableModel |
createModel()
|
protected java.lang.Object |
createNewValue()
For subclasses to specialize, create a new object of the specialized type |
protected GenericMapper.ExpressionMappingTable |
createTable(javax.swing.JDialog parent)
For subclasses to specialize |
static ImageMapper |
getImageMapper(java.lang.String id)
Method getSvgMapperFromName<\b> returns mapper linked to specified name return null if no mapper were found |
static void |
main(java.lang.String[] args)
|
static ImageMapper |
updateImageMapper(ImageMapper m)
If the mapper already exists in the list, update its values Otherwise add it to the list of existing mappers |
void |
wipeOff()
Wipe off mapper images buffer. |
Methods inherited from class simtools.ui.GenericMapper |
---|
addListener, clone, createMapperDialog, createPanel, editDialog, equals, getAllMapperValues, getDefaultValue, getIntervals, getMap, getMapping, getMapping, getMapping, notifyListeners, removeListener, setDefaultValue, setMapperValues, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setMapping, setName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static javax.swing.JFileChooser fileChooser
public static java.util.ResourceBundle resources
public static java.util.Vector imageMappers
public static java.io.File defaultDirectory
Constructor Detail |
---|
public ImageMapper()
public ImageMapper(java.lang.String name)
Method Detail |
---|
public void wipeOff()
public static ImageMapper updateImageMapper(ImageMapper m)
m,
- the mapper to update
public static ImageMapper getImageMapper(java.lang.String id)
name
-
public GenericMapper.MapperTableModel createModel()
createModel
in class GenericMapper
protected GenericMapper.ExpressionMappingTable createTable(javax.swing.JDialog parent)
GenericMapper
createTable
in class GenericMapper
protected java.lang.Object createNewValue()
GenericMapper
createNewValue
in class GenericMapper
public static ImageMapper createImageMapperDialog(javax.swing.JDialog owner)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |