com.jgoodies.jdiskreport.model.statistic
Class AbstractDistribution

java.lang.Object
  extended by com.jgoodies.jdiskreport.model.statistic.AbstractDistribution

public abstract class AbstractDistribution
extends Object

An abstract superclass for the size and modified distributions. These information are redundant and can be computed from the domain tree of directories and file infos.

Version:
$Revision: 1.10 $
Author:
Karsten Lentzsch

Constructor Summary
protected AbstractDistribution()
          Constructs an empty distribution with sizes and counts set to 0.
 
Method Summary
protected abstract  void add(FileNode fileNode)
           
protected  void add(int rowIndex, long size, long count)
           
protected abstract  int getRowCount()
           
 TableModel getTableModel()
          Lazily creates and returns a table model for this size distribution.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDistribution

protected AbstractDistribution()
Constructs an empty distribution with sizes and counts set to 0.

Method Detail

getTableModel

public final TableModel getTableModel()
Lazily creates and returns a table model for this size distribution.

Returns:
a TableModel that represents this SizeDistribution

getRowCount

protected abstract int getRowCount()

add

protected abstract void add(FileNode fileNode)

add

protected final void add(int rowIndex,
                         long size,
                         long count)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.