All Packages Class Hierarchy This Package Previous Next Index
Class com.lotspiech.poker.ruin.GamblersRuin
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----com.lotspiech.poker.ruin.GamblersRuin
- public class GamblersRuin
- extends Applet
- implements Runnable
-
background
-
-
barDy
-
-
barHeight
-
-
barWidth
-
-
baseline
-
-
BBUST
-
-
betsPerBucket
-
-
bottomMargin
-
-
BRET
-
-
buckets
-
-
buttons
-
-
colors
-
-
COPYRIGHT
-
-
F
-
-
Fbold
-
-
game
-
-
gameSelect
-
-
GBUST
-
-
GRET
-
-
H
-
-
iterations
-
-
labels
-
-
labelWidths
-
-
leftMargin
-
-
lossField
-
-
metrics
-
-
numberOfBets
-
-
P
-
-
RBUST
-
-
RRET
-
-
runner
-
-
stopped
-
-
topMargin
-
-
winField
-
-
GamblersRuin()
-
-
action(Event, Object)
-
-
dollarAmount(int)
-
-
drawBar(Graphics, Color, int, double)
-
-
drawLabelAndAmount(Graphics, int, int, String, String)
-
-
formatPercent(double)
-
-
formatTime(int)
-
-
init()
-
-
interpolateColor(float)
-
-
loadHistogram()
-
-
loadProbs()
-
-
paint(Graphics)
-
-
processText(TextField)
-
-
run()
-
-
step()
-
-
waitForStopped()
-
COPYRIGHT
private static final String COPYRIGHT
RBUST
static final float RBUST
GBUST
static final float GBUST
BBUST
static final float BBUST
RRET
static final float RRET
GRET
static final float GRET
BRET
static final float BRET
H
private Histogram H
buckets
private int buckets
P
private Probs P
iterations
private int iterations
F
private Font F
Fbold
private Font Fbold
metrics
private FontMetrics metrics
stopped
private boolean stopped
runner
private Thread runner
topMargin
private int topMargin
bottomMargin
private int bottomMargin
leftMargin
private int leftMargin
barWidth
private int barWidth
barHeight
private int barHeight
barDy
private int barDy
baseline
private int baseline
labels
private String labels[]
labelWidths
private int labelWidths[]
colors
private Color colors[]
background
private Color background
buttons
private Panel buttons
gameSelect
private Panel gameSelect
game
private Choice game
winField
private TextField winField
lossField
private TextField lossField
numberOfBets
private int numberOfBets
betsPerBucket
private int betsPerBucket
GamblersRuin
public GamblersRuin()
action
public boolean action(Event e,
Object arg)
- Overrides:
- action in class Component
dollarAmount
private String dollarAmount(int amount)
drawBar
private void drawBar(Graphics g,
Color c,
int y,
double p)
drawLabelAndAmount
private void drawLabelAndAmount(Graphics g,
int x,
int y,
String label,
String amount)
formatPercent
private String formatPercent(double n)
formatTime
private String formatTime(int i)
init
public void init()
- Overrides:
- init in class Applet
interpolateColor
private Color interpolateColor(float p)
loadHistogram
private void loadHistogram()
loadProbs
private void loadProbs()
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
processText
private int processText(TextField t)
run
public void run()
step
private synchronized void step()
waitForStopped
private void waitForStopped()
All Packages Class Hierarchy This Package Previous Next Index