edu.umd.cfar.lamp.viper.gui.canvas
Class DataViewGenerator
java.lang.Object
edu.umd.cfar.lamp.viper.gui.canvas.DataViewGenerator
- public class DataViewGenerator
- extends java.lang.Object
A map from datatype names to ViewableAttribute objects,
with a convenience function to convert directly. You should
probably get the converter and use that, if you want to save
time on object creation.
- Author:
- davidm
Field Summary |
static java.lang.String |
CANVAS
|
static java.util.logging.Logger |
logger
|
static java.lang.String |
VIEW_CREATOR
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CANVAS
public static final java.lang.String CANVAS
- See Also:
- Constant Field Values
VIEW_CREATOR
public static final java.lang.String VIEW_CREATOR
- See Also:
- Constant Field Values
logger
public static java.util.logging.Logger logger
DataViewGenerator
public DataViewGenerator()
setPrefs
public void setPrefs(PrefsManager prefs)
addViewConverterByName
public void addViewConverterByName(java.lang.String type,
java.lang.String className)
addViewConverter
public void addViewConverter(java.lang.String type,
ViewableAttribute view)
getViewConverter
public ViewableAttribute getViewConverter(java.lang.String type)
convert
public edu.umd.cs.piccolo.PNode convert(java.lang.String type,
java.lang.Object o)