infovis.tree.visualization.treemap
Class TreemapFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.tree.visualization.treemap.TreemapFactory

public class TreemapFactory
extends BasicFactory

Factory of Treemap layout algorithms.

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

Nested Class Summary
static interface TreemapFactory.Creator
          Creator for Treemap layout objects.
static class TreemapFactory.DefaultCreator
          Default implementation of the Creator interface.
 
Constructor Summary
TreemapFactory()
          Constructor.
 
Method Summary
 Treemap create(String name, TreemapVisualization vis)
          Creates a new Treemap layout from a specified name.
static Treemap createTreemap(String name, TreemapVisualization vis)
          Creates a Treemap layout given its name.
static TreemapFactory getInstance()
          Returns the global instance of this factory.
 Iterator iterator()
          Returns an iterator over the name of all the creators.
static void setInstance(TreemapFactory factory)
          Sets the global instance of this factory.
 
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

TreemapFactory

public TreemapFactory()
Constructor.

Method Detail

getInstance

public static TreemapFactory getInstance()
Returns the global instance of this factory.

Returns:
the instance of this factory

setInstance

public static void setInstance(TreemapFactory factory)
Sets the global instance of this factory.

Parameters:
factory - the TreemapFactory

createTreemap

public static Treemap createTreemap(String name,
                                    TreemapVisualization vis)
Creates a Treemap layout given its name.

Parameters:
name - the name
vis - the visualization
Returns:
a Treemap layout or null

create

public Treemap create(String name,
                      TreemapVisualization vis)
Creates a new Treemap layout from a specified name.

Parameters:
name - the name
vis - the visualization
Returns:
a new Treemap layout

iterator

public Iterator iterator()
Returns an iterator over the name of all the creators.

Returns:
an iterator over the name of all the creators.


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