infovis.visualization
Class VisualizationFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.visualization.VisualizationFactory

public class VisualizationFactory
extends BasicFactory

A VisualizationFactory is used to keep track of all the visualizations compatible with a specified data structure and to create the visualizations from the data structures.

Version:
$Revision: 1.14 $
Author:
Jean-Daniel Fekete

Nested Class Summary
static interface VisualizationFactory.Creator
           
static class VisualizationFactory.DefaultCreator
           
 
Constructor Summary
VisualizationFactory()
           
 
Method Summary
 void add(VisualizationFactory.Creator creator)
           
static void addVisualizationFactory(VisualizationFactory.Creator c)
           
 VisualizationFactory.Creator[] getCompatibleCreators(Object table)
           
static VisualizationFactory getInstance()
           
 Iterator iterator(Object table)
          Returns an iterator over the visualization creators compatible with the specified table.
 void setDefault(String name, Class tableClass, String visualizationClass)
           
static void setInstance(VisualizationFactory shared)
           
 
Methods inherited from class infovis.utils.BasicFactory
loadProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualizationFactory

public VisualizationFactory()
Method Detail

getInstance

public static VisualizationFactory getInstance()

setInstance

public static void setInstance(VisualizationFactory shared)

add

public void add(VisualizationFactory.Creator creator)

addVisualizationFactory

public static void addVisualizationFactory(VisualizationFactory.Creator c)

setDefault

public void setDefault(String name,
                       Class tableClass,
                       String visualizationClass)

getCompatibleCreators

public VisualizationFactory.Creator[] getCompatibleCreators(Object table)

iterator

public Iterator iterator(Object table)
Returns an iterator over the visualization creators compatible with the specified table.

Parameters:
table - the table
Returns:
an iterator over the visualization creators compatible with the specified table.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.