net.beadsproject.beads.gui
Class Histogram
java.lang.Object
net.beadsproject.beads.gui.Histogram
- All Implemented Interfaces:
- InterfaceElement
public class Histogram
- extends java.lang.Object
- implements InterfaceElement
Constructor Summary |
Histogram(java.lang.String name,
int numSliders)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Histogram
public Histogram(java.lang.String name,
int numSliders)
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)