|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.ui.GenericMapper
jsynoptic.plugins.svg.SvgMapper
public class SvgMapper
This class maps data sources and index to Svg. 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 Svg
Nested Class Summary | |
---|---|
protected static class |
SvgMapper.ImageRenderer
Class SvgMapper. textual representation of the SvgFile for the table cell |
protected class |
SvgMapper.SvgEditor
|
static class |
SvgMapper.SvgFile
Class SvgMapper. |
protected class |
SvgMapper.SvgMapperTableModel
Class SvgMapper. |
protected class |
SvgMapper.SvgMappingTable
Class SvgMapper. represent the Svg mapper table, extends the simtools.ui.GenericMapper.ExpressionMappingTable |
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.util.ResourceBundle |
resources
|
static java.util.ArrayList |
svgMappers
The svg mappers List are application global |
Fields inherited from class simtools.ui.GenericMapper |
---|
defaultValue, intervals, listeners, map, name |
Constructor Summary | |
---|---|
SvgMapper()
Constructor. empty constructor call the Abstract2Shape consructor |
|
SvgMapper(java.lang.String name)
Constructor. call the Abstract2Shape consructor with name in parameters |
Method Summary | |
---|---|
GenericMapper.MapperTableModel |
createModel()
|
protected java.lang.Object |
createNewValue()
For subclasses to specialize, create a new object of the specialized type |
static SvgMapper |
createSvgMapperDialog(javax.swing.JDialog owner)
Method createSvgMapperDialog static metod to instanciate a SvgMapperDialog Parameters: |
protected GenericMapper.ExpressionMappingTable |
createTable(javax.swing.JDialog parent)
For subclasses to specialize |
static SvgMapper |
getSvgMapper(java.lang.String id)
Method getSvgMapperFromName<\b> returns mapper linked to specified name return null if no mapper were found |
static SvgMapper |
updateSvgMapper(SvgMapper m)
If the mapper already exists in the list, update its values Otherwise add it to the list of existing mappers |
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 java.util.ResourceBundle resources
public static transient java.util.ArrayList svgMappers
Constructor Detail |
---|
public SvgMapper()
public SvgMapper(java.lang.String name)
name
- the name of the mapperMethod Detail |
---|
public static SvgMapper updateSvgMapper(SvgMapper m)
m,
- the mapper to update
public static SvgMapper getSvgMapper(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 SvgMapper createSvgMapperDialog(javax.swing.JDialog owner)
owner
- the frame owner of this dialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |