edu.umd.cfar.lamp.viper.gui.canvas
Class DataViewGenerator

java.lang.Object
  extended byedu.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
           
 
Constructor Summary
DataViewGenerator()
           
 
Method Summary
 void addViewConverter(java.lang.String type, ViewableAttribute view)
           
 void addViewConverterByName(java.lang.String type, java.lang.String className)
           
 edu.umd.cs.piccolo.PNode convert(java.lang.String type, java.lang.Object o)
           
 ViewableAttribute getViewConverter(java.lang.String type)
           
 void setPrefs(PrefsManager prefs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DataViewGenerator

public DataViewGenerator()
Method Detail

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)