net.beadsproject.beads.gui
Class Histogram

java.lang.Object
  extended by net.beadsproject.beads.gui.Histogram
All Implemented Interfaces:
InterfaceElement

public class Histogram
extends java.lang.Object
implements InterfaceElement


Nested Class Summary
static interface Histogram.HistogramListener
           
 
Constructor Summary
Histogram(java.lang.String name, int numSliders)
           
 
Method Summary
 javax.swing.JComponent getComponent()
           
 float getValue(int index)
           
 float nextIndexByProb(java.util.Random rng)
           
 void setListener(Histogram.HistogramListener listener)
           
 void setValue(int index, float value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Histogram

public Histogram(java.lang.String name,
                 int numSliders)
Method Detail

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface InterfaceElement

setValue

public void setValue(int index,
                     float value)

getValue

public float getValue(int index)

setListener

public void setListener(Histogram.HistogramListener listener)

nextIndexByProb

public float nextIndexByProb(java.util.Random rng)