infovis.tree.visualization.treemap
Class SliceAndDice

java.lang.Object
  extended by infovis.tree.visualization.treemap.Treemap
      extended by infovis.tree.visualization.treemap.SliceAndDice
All Implemented Interfaces:
Layout, Orientable, SwingConstants

public class SliceAndDice
extends Treemap
implements Orientable

Slice and Dice Algorithm.

Version:
$Revision: 1.17 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
TreemapFactory Slice&Dice

Field Summary
static SliceAndDice instance
          Instance.
 
Fields inherited from interface infovis.visualization.Orientable
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
SliceAndDice()
           
 
Method Summary
 void computeShapes(Rectangle2D bounds, TreemapVisualization vis)
          Computes the shapes of the treemap.
 String getName()
          Returns the name of the layout algorithm.
 short getOrientation()
          Returns the orientation manages by this interface.
 void setOrientation(short o)
          Sets the orientation of this interface.
 
Methods inherited from class infovis.tree.visualization.treemap.Treemap
beginBox, borderShape, computeShapes, finish, getPreferredSize, invalidate, removeBorder, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final SliceAndDice instance
Instance.

Constructor Detail

SliceAndDice

public SliceAndDice()
Method Detail

getName

public String getName()
Returns the name of the layout algorithm.

Specified by:
getName in interface Layout
Returns:
the name of the layout algorithm

computeShapes

public void computeShapes(Rectangle2D bounds,
                          TreemapVisualization vis)
Computes the shapes of the treemap.

Specified by:
computeShapes in class Treemap
Parameters:
bounds - the external bounds of the treemap.
vis - the TreemapVisualization

getOrientation

public short getOrientation()
Returns the orientation manages by this interface.

Specified by:
getOrientation in interface Orientable
Returns:
the orientation manages by this interface

setOrientation

public void setOrientation(short o)
Sets the orientation of this interface.

Specified by:
setOrientation in interface Orientable
Parameters:
o - the orientation.


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