Class IterationsInterface

java.lang.Object
  |
  +--IterationsInterface

public class IterationsInterface
extends java.lang.Object

The interface for selecting the number of iterations an operator should run for.

Author:
Simon Horne.

Field Summary
 javax.swing.JLabel l
           
 
Constructor Summary
IterationsInterface()
           
 
Method Summary
 javax.swing.JPanel createPanel()
          Sets up the interface and displays it on the screen.
 int number()
          Gets the number of iterations from the onscreen textbox, the user is alerted to an invalid value with a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

l

public javax.swing.JLabel l
Constructor Detail

IterationsInterface

public IterationsInterface()
Method Detail

number

public int number()
Gets the number of iterations from the onscreen textbox, the user is alerted to an invalid value with a warning.
Returns:
the number of iterations
Throws:
java.lang.NumberFormatException - when an invalid number is entered

createPanel

public javax.swing.JPanel createPanel()
Sets up the interface and displays it on the screen.