A B C D E F G H I J L M N O P Q R S T U V W

A

accept(String) - Method in class com.eriksilkensen.sudoku.ChatRoom
Accepts a message and appends it to the chat
accept(File) - Method in class com.eriksilkensen.sudoku.Java5FileFilter
 
actionPerformed(ActionEvent) - Method in class com.eriksilkensen.sudoku.ChatRoom
 
add(Board) - Method in class com.eriksilkensen.sudoku.BoardInventory
Adds a Board to the Inventory
add(Integer) - Method in class com.eriksilkensen.sudoku.BoardStats
Adds 'stat' to the Set of stats writes out to the file
addBestTime(BestTime, BoardDifficulties) - Method in class com.eriksilkensen.sudoku.BestTimesHelper
Adds a BestTime to the collection of best times
addClient(String) - Method in class com.eriksilkensen.sudoku.ChatRoom
Adds a Client to this ChatRoom
addHints() - Method in class com.eriksilkensen.sudoku.SudokuModel
Since a Hint is simply a random Cell from the Board that hasn't already been solved for, addHints() just adds all "Hints" to the list of Hints
alphaColor(Color, int) - Static method in class com.eriksilkensen.swinghacks.JVectorButton
 
alphaColor(Color, int) - Static method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
alphaLevel - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Alpha level of the veil, used for fade in/out.
animation - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
The animation thread is responsible for fade in/out and rotation.
arg - Variable in class com.eriksilkensen.net.Client
 
arg - Variable in class com.eriksilkensen.net.IncomingReader
 
attemptToRemoveCell(Cell, Board, int, int) - Method in class com.eriksilkensen.sudoku.GeneratingBoardFactory
Determines the legality of attemption to remove a given Cell on the Given Board at the given location [row][col].
averageTime(int) - Method in class com.eriksilkensen.sudoku.SolvingTimer
 

B

BackTrackingStrategy - Class in com.eriksilkensen.sudoku
SolvingStrategy that solves Sudoku Boards by recursively tracking through the Cells and trying numbers 1 - 9 until it finds out a Cell has been placed incorrectly - in which case it 'backtracks' until a correct one has been found.
BackTrackingStrategy() - Constructor for class com.eriksilkensen.sudoku.BackTrackingStrategy
 
barsCount - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Amount of bars composing the circular shape.
BestTime - Class in com.eriksilkensen.sudoku
Represents a BestTime which holds a name and an integer.
BestTime(String, int) - Constructor for class com.eriksilkensen.sudoku.BestTime
Creates a BestTime with the given name and time
BestTimesHelper - Class in com.eriksilkensen.sudoku
Helper class that provides for mostly I/O stuff concerning the BestTimes
BestTimesHelper() - Constructor for class com.eriksilkensen.sudoku.BestTimesHelper
Initializes the Helper by reading the times in
BestTimesView - Class in com.eriksilkensen.sudoku
Creates a View for the Best Times.
BestTimesView() - Constructor for class com.eriksilkensen.sudoku.BestTimesView
Sole constructor that creates the View __This only initializes the label List__ __The BestTimes must be SET before showing__
Board - Class in com.eriksilkensen.sudoku
A Board represents a Sudoku game board which is composed with a 2D array of Cell objects.
Board() - Constructor for class com.eriksilkensen.sudoku.Board
Default constructor.
Board(Board) - Constructor for class com.eriksilkensen.sudoku.Board
Copy constructor
Board(Cell[][], BoardDifficulties) - Constructor for class com.eriksilkensen.sudoku.Board
Creates a Board with the supplied Cells and difficulty level
BOARD_MESSAGE - Static variable in class com.eriksilkensen.sudoku.SudokuReader
 
BoardCreatorView - Class in com.eriksilkensen.sudoku
A View for creating sudoku Boards.
BoardCreatorView() - Constructor for class com.eriksilkensen.sudoku.BoardCreatorView
Creates a new instance of BoardCreatorView
BoardDifficulties - Enum in com.eriksilkensen.sudoku
BoardDifficulties encapsulates the different possible difficulty levels for any given Sudoku Board.
BoardFactory - Interface in com.eriksilkensen.sudoku
My implementation of a Factory that makes the creating of Board objects relatively easy.
boardHasHints() - Method in class com.eriksilkensen.sudoku.SudokuModel
Not terribly useful, but still will check for any remaining Hints
BoardInventory - Class in com.eriksilkensen.sudoku
Serializable Inventory object that keeps track of all the different Boards saved into their own ArrayList.
BoardInventory() - Constructor for class com.eriksilkensen.sudoku.BoardInventory
Initializes each ArrayList of Boards
BoardInventoryHelper - Class in com.eriksilkensen.sudoku
Helper class that should be used whenever information about the Inventory is needed.
BoardInventoryHelper() - Constructor for class com.eriksilkensen.sudoku.BoardInventoryHelper
Initializes the inventory by reading it in.
BoardPanel - Class in com.eriksilkensen.sudoku
BoardPanel is a JPanel in the form of a SudokuBoard.
BoardPanel(JButton[][]) - Constructor for class com.eriksilkensen.sudoku.BoardPanel
Constructs a BoardPanel and adds the array of JButtons to itself
BoardStats - Class in com.eriksilkensen.sudoku
Encapsulates the information for how many Boards have been Solved and what Boards have been solved
BoardStats() - Constructor for class com.eriksilkensen.sudoku.BoardStats
Initializes the 'stats' by attempting to read them in from the stats.ser file
BoardStatsView - Class in com.eriksilkensen.sudoku
Creates a View that shows the number of Boards solved at the current difficulty level, the total number of Boards solved, and the ID numbers of the Boards solved
BoardStatsView() - Constructor for class com.eriksilkensen.sudoku.BoardStatsView
Initializes InventoryHelper and Stats
BoardSupplier - Class in com.eriksilkensen.sudoku
Supplies the BoardInventory with new Boards
BoardSupplier() - Constructor for class com.eriksilkensen.sudoku.BoardSupplier
 
BUTTON - Static variable in class com.eriksilkensen.swinghacks.JVectorButton
 
BUTTON - Static variable in class com.eriksilkensen.swinghacks.JVectorRadioButton
 

C

Cell - Class in com.eriksilkensen.sudoku
Cell represents a Cell which probably lives on a Board.
Cell(int, boolean) - Constructor for class com.eriksilkensen.sudoku.Cell
Default 2-arg constructor to create a Cell with the given value and type.
Cell(Cell) - Constructor for class com.eriksilkensen.sudoku.Cell
Copy-constructor
changeButtonColor(Color) - Method in class com.eriksilkensen.swinghacks.JVectorButton
Changes the button color
changeButtonColor(Color) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
changeButtonTextColor(Color) - Method in class com.eriksilkensen.swinghacks.JVectorButton
Changes the text color
changeButtonTextColor(Color) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
changed - Variable in class com.eriksilkensen.net.Client
 
changeStrategy(SolvingStrategy) - Method in class com.eriksilkensen.sudoku.Solver
Changes the SolvingStrategy
CHAT_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "chat" message which should be used to notify the Server that a Client is sending a chat-room-type message over the network.
ChatRoom - Class in com.eriksilkensen.sudoku
ChatRoom is a feature to the Sudoku program that can be used to allow users to send and receive messages to each other while playing a networked, multi- player LAN game of Sudoku.
ChatRoom(JFrame) - Constructor for class com.eriksilkensen.sudoku.ChatRoom
Default - and only - constructor for Objects of type ChatRoom.
checkBoard() - Method in class com.eriksilkensen.sudoku.SudokuControl
Checks the user's Board
checkBoard() - Method in class com.eriksilkensen.sudoku.SudokuModel
Checks the current board for any mistakes, populates an int[] with the coordinates of all the incorrectly placed Cells, and then notifies all Observers
checkBoard() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
Overrides checkBoard() in SudokuControl to notify the other players that this one has won.
checkForBestTimes() - Method in class com.eriksilkensen.sudoku.SudokuControl
Uses the Model to checkForBestTimes()
checkForBestTimes() - Method in class com.eriksilkensen.sudoku.SudokuModel
checkForBestTimes() checks for the possibility that the user is eligible for a Best Time.
clear() - Method in class com.eriksilkensen.sudoku.Board
Clears the Board by resetting all of its Cells to value 0 and type Player
clear() - Method in class com.eriksilkensen.sudoku.SudokuControl
Clears the Model
clear() - Method in class com.eriksilkensen.sudoku.SudokuModel
Clears all of the user's placed Cells on the board, resets the Hints, and then notifies all Observers
clearBestTimeAllowed() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the bestTimeAllowed boolean to False
clearChanged() - Method in class com.eriksilkensen.net.Client
Clears this Client of being "changed"
clearChanged() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the changed boolean to False
clearConnected() - Method in class com.eriksilkensen.net.Client
Clears this Client of being connected
clearHost() - Method in class com.eriksilkensen.net.Client
Clears this Client from being a host
clearInit() - Method in class com.eriksilkensen.net.Client
Clears this Client from being initialized
clearStatsAllowed() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the statsAllowed boolean to False
clearTimes() - Method in class com.eriksilkensen.sudoku.BestTimesHelper
Clears ALL the times
clearTimes() - Method in class com.eriksilkensen.sudoku.SudokuControl
Clears the Model's Best Times
clearTimes() - Method in class com.eriksilkensen.sudoku.SudokuModel
Simply clears all Best Times
Client - Class in com.eriksilkensen.net
An Observable Client that can be used to connect to Servers.
Client() - Constructor for class com.eriksilkensen.net.Client
Default constructor that initializes the List of Observers, clears changed.
Client(String, int) - Constructor for class com.eriksilkensen.net.Client
Constructs a Client with the specified host and port configuration.
client - Variable in class com.eriksilkensen.net.IncomingReader
 
com.eriksilkensen.net - package com.eriksilkensen.net
 
com.eriksilkensen.sudoku - package com.eriksilkensen.sudoku
 
com.eriksilkensen.sudoku.secure - package com.eriksilkensen.sudoku.secure
 
com.eriksilkensen.swinghacks - package com.eriksilkensen.swinghacks
 
com.eriksilkensen.util - package com.eriksilkensen.util
 
compareTo(Object) - Method in class com.eriksilkensen.sudoku.BestTime
Compares this BestTime to another one using their times
connectToNetwork(String) - Method in class com.eriksilkensen.sudoku.SudokuControl
This Control doesn't concern itself with Network capabilities, but it still defines the methods that could be used by one that does.
connectToNetwork(String) - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
Attempts to connect to the network, and returns the success of the attempt
contains(Integer) - Method in class com.eriksilkensen.sudoku.BoardStats
Returns whether or not the TreeSet of Integers contains the specified 'stat'
createBoard(BoardDifficulties) - Method in interface com.eriksilkensen.sudoku.BoardFactory
 
createBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.GeneratingBoardFactory
This method should not be overridden by subclassing Factories and so it is marked final.
createBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.InventoryBoardFactory
Creates the Board
createBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.TextFileBoardFactory
Pops up a JOptionPane asking for the Board's text file, then creates a Board from it.
createBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.WebBoardFactory
createBoard() implementation which just delegates the actual creation to the private makeBoard() method If an Exception is encountered a stack trace is printed to standard output and then a blank, default Board is created and returned.
createView() - Method in class com.eriksilkensen.net.Server
 
createView() - Method in class com.eriksilkensen.sudoku.BestTimesView
Initializes the labels List
createView() - Method in class com.eriksilkensen.sudoku.SudokuView
Creates the entire GUI
currentPage - Variable in class com.eriksilkensen.util.DocumentRenderer
 

D

DEFF_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "default" message which cannot be specified further using the other constants.
DELIMITER - Static variable in class com.eriksilkensen.net.Server
Identifies the delimeter that is used in Server messages
deserializeObject(String) - Static method in class com.eriksilkensen.util.IOUtilities
Deserializes the Object found at the path.
deserializeObject(String, int) - Static method in class com.eriksilkensen.util.IOUtilities
Deserializes all of the Objects found at the path.
disconnectFromNetwork() - Method in class com.eriksilkensen.sudoku.SudokuControl
This Control doesn't concern itself with Network capabilities, but it still defines the methods that could be used by one that does.
disconnectFromNetwork() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
Attempts to disconnect from the network, and returns the success of the attempt -> false if the Client wasn't connected in the first place
DocumentRenderer - Class in com.eriksilkensen.util
 
DocumentRenderer() - Constructor for class com.eriksilkensen.util.DocumentRenderer
 
drawButtonBody(int, int, float, Color, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawButtonBody(int, int, float, Color, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawDropShadow(int, int, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawDropShadow(int, int, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawHighlight(int, int, float, Color, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawHighlight(int, int, float, Color, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawLiquidButton(Color, int, int, String, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawLiquidButton(Color, int, int, String, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawRoundRect(Graphics2D, float, float, float, float, float, float) - Static method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawRoundRect(Graphics2D, float, float, float, float, float, float) - Static method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawText(int, int, float, String, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawText(int, int, float, String, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
drawVectorBorder(int, int, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
drawVectorBorder(int, int, float, Graphics2D) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 

E

equals(Object) - Method in class com.eriksilkensen.sudoku.BestTime
 
equals(Object) - Method in class com.eriksilkensen.sudoku.Board
Determines the equality of this Board and another one
equals(Object) - Method in class com.eriksilkensen.sudoku.Cell
Determines the equality of this Cell object and the other passed in Object
equals(Object) - Method in class com.eriksilkensen.sudoku.Hint
Determines the equality of this Hint object and the passed in Object o in the argument list Two equal Hints must have the same row, col, and value values.

F

fillRoundRect(Graphics2D, float, float, float, float, float, float) - Static method in class com.eriksilkensen.swinghacks.JVectorButton
 
fillRoundRect(Graphics2D, float, float, float, float, float, float) - Static method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
fps - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Amount of frames per seconde.

G

gameWon() - Method in class com.eriksilkensen.sudoku.SudokuModel
gameWon() is called when, as one might predict, a game has been won.
gameWon() - Method in interface com.eriksilkensen.sudoku.SudokuObserver
Called by an Observable (Model) when a game has been won in order to update the SudokuObservers without having to pass specific arguments through update()
gameWon() - Method in class com.eriksilkensen.sudoku.SudokuView
Required by the SudokuObserver interface.
generateBoard() - Method in class com.eriksilkensen.sudoku.Generator
Generates and returns a fully-filled Board object using the recursive generate() method
GeneratingBoardFactory - Class in com.eriksilkensen.sudoku
Ideally, this program would be able to generate valid Sudoku boards on the fly whenever a user asks for one.
GeneratingBoardFactory() - Constructor for class com.eriksilkensen.sudoku.GeneratingBoardFactory
 
Generator - Class in com.eriksilkensen.sudoku
Generator simply generates randomly filled Boards that can be used to create puzzles from by selectively removing Cell values
Generator() - Constructor for class com.eriksilkensen.sudoku.Generator
 
get(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.BoardInventory
Gets a random Board at the specified difficulty.
get(int) - Method in class com.eriksilkensen.sudoku.BoardInventory
Gets a Board with the specified ID number.
getBestTimes(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.BestTimesHelper
Returns the BestTimes for a given difficulty
getBestTimes() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns a List of the top 5 Best Times
getBestTimes() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the current list of Best Times
getBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Returns a Board at the specified difficulty level
getBoard(int) - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Gets the Board with the specified ID number
getBoard() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns the current Board in use by the Model
getBoard() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the current board
getBoardID() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns the current Board's ID
getBoardID() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the ID number of the current Board.
getBoardInventory() - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Returns the Inventory
getButtonColor() - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
getButtonTextColor() - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
getCell(int, int) - Method in class com.eriksilkensen.sudoku.Board
Gets the Cell at the location [row][col]
getCells() - Method in class com.eriksilkensen.sudoku.Board
Returns this Board's Cells
getCellString(int, int) - Method in class com.eriksilkensen.sudoku.Board
Returns the String representation of the Cell at location [row][col]
getCellType(int, int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the type of the Cell at the position [row][col]
getCellValue(int, int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the value of the Cell at the position [row][col]
getCol() - Method in class com.eriksilkensen.sudoku.Hint
Returns the col
getDescription() - Method in class com.eriksilkensen.sudoku.Java5FileFilter
 
getDifficulty() - Method in class com.eriksilkensen.sudoku.Board
Returns this Board's difficulty
getDifficulty() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns the current difficulty of the Model
getDifficulty() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the current difficulty level
getDocument() - Method in class com.eriksilkensen.util.DocumentRenderer
 
getEasyBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Easy Boards
getFrame() - Method in class com.eriksilkensen.sudoku.SudokuView
Returns the JFrame same-package and derived classes
getHardBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Hard Boards
getHarderBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Harder Boards
getHintLimit() - Method in class com.eriksilkensen.sudoku.SudokuView
Hosts in a networked game have the ability to set a limit on the number of Hints that can be used in the game.
getHost() - Method in class com.eriksilkensen.net.Client
 
getHost() - Method in class com.eriksilkensen.sudoku.NetworkDialog
Returns the host name inside the host field
getHost() - Method in class com.eriksilkensen.sudoku.SudokuControl
 
getHost() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
 
getID() - Method in class com.eriksilkensen.sudoku.Board
Returns this Board's ID
getID() - Method in class com.eriksilkensen.sudoku.SudokuView
getId() prompts the user for the desired ID number of the Board they wish to play.
getIDLimit() - Method in class com.eriksilkensen.sudoku.SudokuControl
Used to get the limit for possible Board IDs that could be played as an integer.
getIDLimit() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the highest possible legal ID
getIncomingReader(String) - Method in class com.eriksilkensen.net.Client
Returns a new instance of an IncomingReader that will handle all of the incoming messages.
getIncomingReader(String) - Method in class com.eriksilkensen.sudoku.SudokuClient
Returns a new SudokuReader for Sudoku-specific reading from the network.
getIndividualSize() - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Returns the individual size - or the size of each difficulty level - of the Inventory
getInstance() - Static method in class com.eriksilkensen.sudoku.secure.Password
 
getMediumBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Medium Boards
getName() - Method in class com.eriksilkensen.net.Client
 
getName() - Method in class com.eriksilkensen.net.IncomingReader
Returns the actual name of the person using this IncomingReader to any class that is not inside the com.eriksilkensen.net package or is not extending this IncomingReader.
getName() - Method in class com.eriksilkensen.sudoku.BestTime
Returns this BestTime's name
getPopupMenu() - Method in class com.eriksilkensen.swinghacks.JBorderedMenu
 
getPort() - Method in class com.eriksilkensen.net.Client
 
getPort() - Method in class com.eriksilkensen.sudoku.NetworkDialog
Returns the port inside the port field
getPort() - Method in class com.eriksilkensen.sudoku.SudokuControl
 
getPort() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
 
getPreferredSize() - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
getPreferredSize() - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
getRandomCells(int[], int[], Cell[][]) - Method in class com.eriksilkensen.sudoku.GeneratingBoardFactory
Helper method that can be used to generate some random Cell values
getRandomCoords(int) - Method in class com.eriksilkensen.sudoku.GeneratingBoardFactory
Helper method that can be used to generate some random coordinate values
getRange() - Method in class com.eriksilkensen.sudoku.SudokuControl
Used to get the range of possible Board IDs that the user could choose from when manually selecting a Board
getRange() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns a String representation of the current range of legal Board ID numbers
getReader() - Method in class com.eriksilkensen.net.Client
Returns this Client's reader.
getRealName() - Method in class com.eriksilkensen.net.Client
 
getRow() - Method in class com.eriksilkensen.sudoku.Hint
Returns the row
getScaleWidthToFit() - Method in class com.eriksilkensen.util.DocumentRenderer
 
getSolution() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns the solution to the current Board in use by the Model
getSolution() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the current board's solution
getSolvingStrategy() - Method in class com.eriksilkensen.sudoku.Solver
Returns the SolvingStrategy
getStatCount() - Method in class com.eriksilkensen.sudoku.BoardStats
Returns the total size of the stats Set
getStatCount(BoardDifficulties, int) - Method in class com.eriksilkensen.sudoku.BoardStats
Overloaded getStatCount returns size (number) of stats for a given difficulty level, assuming the caller supplies the number of possible Boards in each difficulty level
getStatNumbers() - Method in class com.eriksilkensen.sudoku.BoardStats
Returns a String representation (for a View) of the stats
getStatus() - Method in class com.eriksilkensen.sudoku.SudokuControl
Returns the current status of the Model
getStatus() - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns the current status
getSuperEasyBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Super Easy Boards
getSuperHardBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Super Hard Boards
getText() - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Returns the current displayed message.
getTime() - Method in class com.eriksilkensen.sudoku.BestTime
Returns this BestTime's time
getTotalSize() - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Returns the total size of the Inventory
getType() - Method in class com.eriksilkensen.sudoku.Cell
Returns this Cell's type
getURL() - Method in enum com.eriksilkensen.sudoku.BoardDifficulties
Each difficulty level has its own URL that can be used to access and download Boards from the Vegard Hanssen's menneske Sudoku archive.
getValue() - Method in class com.eriksilkensen.sudoku.Cell
Returns this Cell's value
getVeryEasyBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Very Easy Boards
getVeryHardBoards() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the Very Hard Boards
giveHint() - Method in class com.eriksilkensen.sudoku.SudokuModel
Hands over a Hint to whoever asks for one.
giveUp() - Method in class com.eriksilkensen.sudoku.SudokuControl
Notifies the Model that the user has decided to Give Up
giveUp() - Method in class com.eriksilkensen.sudoku.SudokuModel
Self-explanatory.
giveUp() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
Overrides giveUp() in SudokuControl to notify the other players that this one has given up.
go(int) - Method in class com.eriksilkensen.net.Server
Called when the Server starts running, initializes the outputStreams Map, creates the ServerSocket on whichever port is passed in at main.

H

handleMessage(String) - Method in class com.eriksilkensen.net.IncomingReader
Optional hook method for taking some sort of action depending on what the message is.
handleMessage(String) - Method in class com.eriksilkensen.sudoku.SudokuReader
Hook-method that allows the SudokuReader to intercept the message and handle it however it wants.
hasInit() - Method in class com.eriksilkensen.net.Client
Returns whether or not this Client has been initialized
Hint - Class in com.eriksilkensen.sudoku
Hint is a specialized version of a Cell that represents a Cell that knows its location along with its value.
Hint(int, int, int) - Constructor for class com.eriksilkensen.sudoku.Hint
The only constructor provided requires the initializing of a specific location [row][col] along with a value.
hint() - Method in class com.eriksilkensen.sudoku.SudokuControl
Called by the View when a user is requesting a Hint
hints - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Rendering hints to set anti aliasing.
HOST_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "host" message which should be used to notify the Server that a Client is becoming the host.
HTLM_MESSAGE - Static variable in class com.eriksilkensen.sudoku.SudokuReader
 

I

IDLE - Static variable in class com.eriksilkensen.sudoku.SudokuModel
 
IncomingReader - Class in com.eriksilkensen.net
An important component in the Server/Client relationship thats main role is to handle messages sent between Clients.
IncomingReader(Client, String) - Constructor for class com.eriksilkensen.net.IncomingReader
Constructor, connects the Client reference
indexOf(Board) - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the first index of the specified Board in the Inventory
individualSize() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the individual size of each difficulty level in the Inventory
InfiniteProgressPanel - Class in com.eriksilkensen.swinghacks
An infinite progress panel displays a rotating figure and a message to notice the user of a long, duration unknown task.
InfiniteProgressPanel() - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel with default values:
No message 14 bars Veil's alpha level is 70% 15 frames per second Fade in/out last 300 ms
InfiniteProgressPanel(String) - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel with default values:
14 bars Veil's alpha level is 70% 15 frames per second Fade in/out last 300 ms
InfiniteProgressPanel(String, int) - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel with default values:
Veil's alpha level is 70% 15 frames per second Fade in/out last 300 ms
InfiniteProgressPanel(String, int, float) - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel with default values:
15 frames per second Fade in/out last 300 ms
InfiniteProgressPanel(String, int, float, float) - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel with default values:
Fade in/out last 300 ms
InfiniteProgressPanel(String, int, float, float, int) - Constructor for class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Creates a new progress panel.
init(String) - Method in class com.eriksilkensen.net.Client
Initializes this Client by setting up networking, and starting the Reader Thread.
initGame() - Method in class com.eriksilkensen.sudoku.SudokuControl
Initializes a game by setting up the View's controls
initialize() - Method in class com.eriksilkensen.sudoku.SudokuModel
 
initRadioSelector() - Method in class com.eriksilkensen.sudoku.SudokuView
Initializes the radio controls by enabling them and selecting the number 1
interrupt() - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Interrupts the animation, whatever its state is.
InventoryBoardFactory - Class in com.eriksilkensen.sudoku
Short but important Factory that uses an InventoryHelper to grab serialized Board objects from the Inventory.
InventoryBoardFactory() - Constructor for class com.eriksilkensen.sudoku.InventoryBoardFactory
Initializes the InventoryHelper
IOUtilities - Class in com.eriksilkensen.util
Provides a set of i/o utility methods.
isConnected() - Method in class com.eriksilkensen.net.Client
Returns whether or not this Client is connected
isHost() - Method in class com.eriksilkensen.net.Client
Returns whether or not this Client is a host
isLegal(int, int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Returns whether or not it is legal for a user to try to place a Cell at the given location [row][col] on the Board
isLegalBoard(Cell[][]) - Method in class com.eriksilkensen.sudoku.SolvingStrategy
Helper method
isLegalCell(Cell, Cell[][], int, int) - Method in class com.eriksilkensen.sudoku.SolvingStrategy
Helper method
isLegalID(int) - Method in class com.eriksilkensen.sudoku.SudokuControl
Helper method to determine if the requested ID does in fact exist
isLegalID(int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Helper method to determine the legality of a candidate ID number
isTimerEnabled() - Method in class com.eriksilkensen.sudoku.SudokuView
Returns whether or not the Timer is enabled
isVisible() - Method in class com.eriksilkensen.sudoku.ChatRoom
 

J

Java5FileFilter - Class in com.eriksilkensen.sudoku
Java5FileFilter is a custom FileFilter that a JFileChooser can use to filter out certain types of Files.
Java5FileFilter() - Constructor for class com.eriksilkensen.sudoku.Java5FileFilter
 
JBorderedMenu - Class in com.eriksilkensen.swinghacks
 
JBorderedMenu(String, Border) - Constructor for class com.eriksilkensen.swinghacks.JBorderedMenu
 
jeditorPane - Variable in class com.eriksilkensen.util.DocumentRenderer
 
JVectorButton - Class in com.eriksilkensen.swinghacks
 
JVectorButton() - Constructor for class com.eriksilkensen.swinghacks.JVectorButton
Default constructor Default constructor will create a JVectorButton using the current background color for its button color and the color black for its text color.
JVectorButton(String) - Constructor for class com.eriksilkensen.swinghacks.JVectorButton
Specified text constructor Default constructor with specified text will create a JVectorButton with the specified text, using the current background color for its button color and the color black for its text color.
JVectorButton(String, Color, boolean) - Constructor for class com.eriksilkensen.swinghacks.JVectorButton
Specified text, one color constructor Constructor with specified text and color for either the button or text color.
JVectorButton(String, Color, Color) - Constructor for class com.eriksilkensen.swinghacks.JVectorButton
Specified text, two colors constructor
JVectorRadioButton - Class in com.eriksilkensen.swinghacks
 
JVectorRadioButton() - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String, boolean) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String, boolean, Color, boolean) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String, Color, boolean) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String, boolean, Color, Color) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 
JVectorRadioButton(String, Color, Color) - Constructor for class com.eriksilkensen.swinghacks.JVectorRadioButton
 

L

leaveClues(int, Board) - Method in class com.eriksilkensen.sudoku.GeneratingBoardFactory
leaveClues() attempts to remove all Cells from a Board leaving the specified number of 'clues,' but isn't accurate enough to be used yet.
loadGame(File) - Method in class com.eriksilkensen.sudoku.SudokuControl
Loads a game from the selected File
LOST - Static variable in class com.eriksilkensen.sudoku.SudokuModel
 

M

main(String[]) - Static method in class com.eriksilkensen.net.Server
The Server should be run as a main class, on the hosting terminal.
main(String[]) - Static method in class com.eriksilkensen.sudoku.BoardCreatorView
 
main(String[]) - Static method in class com.eriksilkensen.sudoku.BoardSupplier
Supplies the Inventory with 5 new Boards per difficulty which makes 40 new Boards per run.
Main - Class in com.eriksilkensen.sudoku
Runs the Sudoku application
Main() - Constructor for class com.eriksilkensen.sudoku.Main
 
main(String[]) - Static method in class com.eriksilkensen.sudoku.Main
 
makeCells(File) - Method in class com.eriksilkensen.sudoku.TextFileBoardFactory
Parses the text file into a Cell array so the Board can be created
makePuzzle(Board) - Method in class com.eriksilkensen.sudoku.TestBoardFactory
 
model - Variable in class com.eriksilkensen.sudoku.SudokuControl
 
mouseClicked(MouseEvent) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
mouseClicked(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
mouseClicked(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
mouseEntered(MouseEvent) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
mouseEntered(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
mouseEntered(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
mouseExited(MouseEvent) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
mouseExited(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
mouseExited(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
mousePressed(MouseEvent) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
mousePressed(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
mousePressed(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
mouseReleased(MouseEvent) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
mouseReleased(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
mouseReleased(MouseEvent) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 

N

NAME_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "name" message which should be used to notify the Server that a Client's real name is being sent across the network.
NetworkDialog - Class in com.eriksilkensen.sudoku
A Dialog box that allows a user to adjust the Network configuration for connecting to the Sudoku Network.
NetworkDialog(SudokuControl) - Constructor for class com.eriksilkensen.sudoku.NetworkDialog
Constructs this Dialog but does not set it to be visible.
newBoard(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.SudokuControl
A View requests a new Board at the given difficulty, so the Model gets one and the Control starts it
newBoard() - Method in class com.eriksilkensen.sudoku.SudokuControl
The no-arg version of newBoard() assumes the user is asking to enter a specific ID, so the Control gets it and passes it on to the Model If the user decides to not enter an ID, newBoard() returns false.
newBoard(int) - Method in class com.eriksilkensen.sudoku.SudokuControl
This method should only be used by the NetworkedControl in order to start a new game by passing along messages over the network.
newBoard(int) - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
NetworkedControl-specific method for creating a newBoard() which sends out a message with the ID of the Board to be played
newDownloadedBoard() - Method in class com.eriksilkensen.sudoku.SudokuControl
This version of newBoard() downloads a Board from the internet at a random difficulty level.
newDownloadedGame() - Method in class com.eriksilkensen.sudoku.SudokuModel
Starts a new game by downloading a random Board from the internet.
newGame(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.SudokuModel
The first of three newGame() implementations.
newGame(int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Starts a new game using the specified ID to decide which Board to load.
newGame(Board) - Method in class com.eriksilkensen.sudoku.SudokuModel
Starts a new game using the supplied Board.
NotConnectedException - Exception in com.eriksilkensen.net
Thrown by net classes if something is trying to be accessed that shouldn't because a connection hasn't been made.
NotConnectedException() - Constructor for exception com.eriksilkensen.net.NotConnectedException
 
NotConnectedException(String) - Constructor for exception com.eriksilkensen.net.NotConnectedException
 
NotConnectedException(String, Throwable) - Constructor for exception com.eriksilkensen.net.NotConnectedException
 
NotConnectedException(Throwable) - Constructor for exception com.eriksilkensen.net.NotConnectedException
 
notifyObservers() - Method in class com.eriksilkensen.net.Client
Notifiies Observers.
notifyObservers() - Method in class com.eriksilkensen.sudoku.NetworkDialog
Notifies all Observers in this Observable's list of Observers.
notifyObservers() - Method in class com.eriksilkensen.sudoku.SudokuModel
Notifies all Observers.
notifyObservers() - Method in interface com.eriksilkensen.util.Observable
Call this method to notify all registered Observers that this Observable needs attention.
numbgs - Variable in class com.eriksilkensen.util.DocumentRenderer
 

O

Observable - Interface in com.eriksilkensen.util
Defines an interface to provide for the standard Observable functionality.
Observer - Interface in com.eriksilkensen.util
Defines an interface to provide for the standard Observer functionality.
observers - Variable in class com.eriksilkensen.net.Client
 

P

pack() - Method in class com.eriksilkensen.sudoku.ChatRoom
 
pageDialog() - Method in class com.eriksilkensen.util.DocumentRenderer
 
pageEndY - Variable in class com.eriksilkensen.util.DocumentRenderer
 
pageStartY - Variable in class com.eriksilkensen.util.DocumentRenderer
 
paintComponent(Graphics) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
 
paintComponent(Graphics) - Method in class com.eriksilkensen.swinghacks.JVectorButton
 
paintComponent(Graphics) - Method in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
Password - Class in com.eriksilkensen.sudoku.secure
 
pFormat - Variable in class com.eriksilkensen.util.DocumentRenderer
 
pJob - Variable in class com.eriksilkensen.util.DocumentRenderer
 
PLAYER - Static variable in class com.eriksilkensen.sudoku.Cell
 
PLAYING - Static variable in class com.eriksilkensen.sudoku.SudokuModel
 
pressed - Variable in class com.eriksilkensen.swinghacks.JVectorButton
 
pressed - Variable in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
print(Board) - Method in class com.eriksilkensen.sudoku.SudokuBoardPrinter
Prepares the JEditorPane by inserting the Board's information into the correct positions marked inside the template.
print(Graphics, PageFormat, int) - Method in class com.eriksilkensen.util.DocumentRenderer
 
print(HTMLDocument) - Method in class com.eriksilkensen.util.DocumentRenderer
 
print(JEditorPane) - Method in class com.eriksilkensen.util.DocumentRenderer
 
print(PlainDocument) - Method in class com.eriksilkensen.util.DocumentRenderer
 
printBoard() - Method in class com.eriksilkensen.sudoku.Board
Prints out the Board
printBoard() - Method in class com.eriksilkensen.sudoku.SudokuControl
Prints the current Board
printBoard() - Method in class com.eriksilkensen.sudoku.SudokuModel
Prints the current Board
printDialog() - Method in class com.eriksilkensen.util.DocumentRenderer
 
printSolution() - Method in class com.eriksilkensen.sudoku.SudokuControl
Prints the current Solution
printSolution() - Method in class com.eriksilkensen.sudoku.SudokuModel
Prints the current Solution
printView(Graphics2D, Shape, View) - Method in class com.eriksilkensen.util.DocumentRenderer
 

Q

quit() - Method in class com.eriksilkensen.net.Client
Disconnects this Client from the Server by sending out a special 'quit' message telling the Server to remove it from its List of Clients.
QUIT_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "quit" message which should be used to notify the Server that a Client is quitting.

R

rampDelay - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Duration of the veil's fade in/out.
read() - Method in class com.eriksilkensen.sudoku.BoardStats
Public read() method for reading the stats.ser file
reader - Variable in class com.eriksilkensen.net.Server.ClientHandler
 
registerObserver(Observer) - Method in class com.eriksilkensen.net.Client
Registers an Observer with the List of observers
registerObserver(Observer) - Method in class com.eriksilkensen.sudoku.NetworkDialog
Registers an Observer with this Observable's list of Observers
registerObserver(SudokuObserver) - Method in class com.eriksilkensen.sudoku.SudokuControl
This Control isn't actually Observable, but it still passes along the View's request to register as an Observer with the Observable Model
registerObserver(Observer) - Method in class com.eriksilkensen.sudoku.SudokuModel
Registers the observer with this Observable's list of Observers.
registerObserver(Observer) - Method in interface com.eriksilkensen.util.Observable
Registers an Observer with this Observable.
remove(Integer) - Method in class com.eriksilkensen.sudoku.BoardStats
Removes 'stat' from the Set of stats writes out to the file
removeAllClients() - Method in class com.eriksilkensen.sudoku.ChatRoom
Removes all of the Clients
removeCell(int, int) - Method in class com.eriksilkensen.sudoku.Board
Removes the Cell at the location [row][col] and returns it
removeClient(String) - Method in class com.eriksilkensen.net.Server
Removes a Client with the given name from the Map of outputStreams.
removeClient(String) - Method in class com.eriksilkensen.sudoku.ChatRoom
Removes a Client from this ChatRoom
removeObserver(Observer) - Method in class com.eriksilkensen.net.Client
Removes an Observer from the List of observers
removeObserver(Observer) - Method in class com.eriksilkensen.sudoku.NetworkDialog
Removes an Observer from this Observable's list of Observers
removeObserver(SudokuObserver) - Method in class com.eriksilkensen.sudoku.SudokuControl
Passes the View's request to remove itself from the Model's list of Observers
removeObserver(Observer) - Method in class com.eriksilkensen.sudoku.SudokuModel
Removes the observer from this Observable's list of Observers
removeObserver(Observer) - Method in interface com.eriksilkensen.util.Observable
Removes an Observer from this Observable's list of Observers.
requestName() - Method in class com.eriksilkensen.sudoku.SudokuModel
The weird part to this method is that it will only return the name of the first Observer in the list.
requestName() - Method in interface com.eriksilkensen.sudoku.SudokuObserver
Helper method that makes it easy for an Observable (Model) to get the 'name' of the user (using View) for something like saving a Best Time or connecting to the Server
requestName() - Method in class com.eriksilkensen.sudoku.SudokuView
Required by the SudokuObserver interface.
resetBoard(Board) - Method in class com.eriksilkensen.sudoku.Board
Resets the supplied Board and returns it
resetGameLabels() - Method in class com.eriksilkensen.sudoku.SudokuView
Resets the top two labels to their default settings
rolled - Variable in class com.eriksilkensen.swinghacks.JVectorButton
 
rolled - Variable in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
run() - Method in class com.eriksilkensen.net.IncomingReader
Executed when this Reader is created as a job for a Thread
run() - Method in class com.eriksilkensen.net.Server.ClientHandler
Runs when the Client Handler is registered as a job for a Thread, and the Thread is started.

S

saveGame(File) - Method in class com.eriksilkensen.sudoku.SudokuControl
Saves a game to the specified File
scaleWidthToFit - Variable in class com.eriksilkensen.util.DocumentRenderer
 
SCPClient - Class in com.eriksilkensen.net
 
SCPClient(String, String, String, int) - Constructor for class com.eriksilkensen.net.SCPClient
Creates a new instance of SCPClient
send(String, String) - Method in class com.eriksilkensen.net.SCPClient
 
sendMessage(String) - Method in class com.eriksilkensen.net.Client
Sends a message.
serializeObject(Serializable, String) - Static method in class com.eriksilkensen.util.IOUtilities
Serializes the Serializable obj, saving it in a file at the path.
serializeObject(Serializable[], String) - Static method in class com.eriksilkensen.util.IOUtilities
Serializes the Serializable[] obj, saving it in a file at the path.
Server - Class in com.eriksilkensen.net
Default Server implementation.
Server() - Constructor for class com.eriksilkensen.net.Server
 
Server.ClientHandler - Class in com.eriksilkensen.net
Inner Class to handle the Clients.
Server.ClientHandler(Socket) - Constructor for class com.eriksilkensen.net.Server.ClientHandler
Constructor for the Client Handler that sets everything up for the specified client Socket.
setAllClients(List<String>) - Method in class com.eriksilkensen.sudoku.ChatRoom
Sets all of the Clients
setAllEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets all important controls to be enabled or disabled
setAllNetworkEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets all network controls to be enabled or disabled
setAllNonNetworkEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets all controls that aren't using during a multiplayer game to be enabled or disabled
setArg(Object) - Method in class com.eriksilkensen.net.Client
Sets the optional Object arg that gets pushed to Observers when they are notified of a change
setBestTimeAllowed() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the bestTimeAllowed boolean to True
setBestTimes(BoardDifficulties, ArrayList<BestTime>) - Method in class com.eriksilkensen.sudoku.BestTimesView
'Sets' the times for the specified difficulty, using the given List of times
setBestTimesEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the best time controls to be enabled or disabled
setBoard(int, int, int) - Method in class com.eriksilkensen.sudoku.SudokuControl
When a user places a number on the board, the Model is updated by sending the location and value of the Cell that the user placed.
setBoardStats(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.BoardStatsView
Gets and sets the stats for the current difficulty level
setButtonText(int, int, int) - Method in class com.eriksilkensen.sudoku.SudokuView
setButtonText() is crucial in updating the individual button cells with whatever value the user has decided to place at the specified location.
setCell(int, int, Cell) - Method in class com.eriksilkensen.sudoku.Board
Sets the Cell at the location [row][col] to be 'cell'
setChanged() - Method in class com.eriksilkensen.net.Client
Sets this Client to be "changed"
setChanged() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the changed boolean to True
setChatEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the network chatting control to be enabled or disabled
setCheckEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the check controls to be enabled or disabled
setClearEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the clear controls to be enabled or disabled
setClient(Client) - Method in class com.eriksilkensen.sudoku.ChatRoom
Sets the Client helper
setConnected() - Method in class com.eriksilkensen.net.Client
Sets this Client to be connected
setConnectEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the network connection control to be enabled or disabled
setContentType(String) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setDifficulty(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.Board
Sets this Board's difficulty
setDifficulty(BoardDifficulties) - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the current difficulty level
setDisconnectEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the network disconnection control to be enabled or disabled
setDocument(HTMLDocument) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setDocument(JEditorPane) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setDocument(PlainDocument) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setDocument(String, Document) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setGiveUpEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the give up controls to be enabled or disabled
setHintButton(Hint) - Method in class com.eriksilkensen.sudoku.SudokuView
Will place the passed hint on the Board.
setHintsEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the hint controls to be enabled or disabled
setHost() - Method in class com.eriksilkensen.net.Client
Sets this Client to be a host
setHost(String) - Method in class com.eriksilkensen.net.Client
Sets this Client's host configuration
setHost(String) - Method in class com.eriksilkensen.sudoku.SudokuControl
 
setHost(String) - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
 
setID(int) - Method in class com.eriksilkensen.sudoku.Board
Sets this Board's ID
setNetworkConfigEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the network configuration contorl to be enabled or disabled
setPauseEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the pause controls to be enabled or disabled
setPort(int) - Method in class com.eriksilkensen.net.Client
Sets this Client's port configuration
setPort(String) - Method in class com.eriksilkensen.sudoku.SudokuControl
 
setPort(String) - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
 
setPrintEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the printing controls to be enabled or disabled
setRadiosEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the radio controls to be enabled or disabled
setSaveEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the save controls to be enabled or disabled
setScaleWidthToFit(boolean) - Method in class com.eriksilkensen.util.DocumentRenderer
 
setSize(Dimension) - Method in class com.eriksilkensen.sudoku.ChatRoom
 
setStartEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the network starting control to be enabled or disabled
setStatsAllowed() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the statsAllowed boolean to True
setStatusIdle() - Method in class com.eriksilkensen.sudoku.SudokuControl
Sets the status of the Model to be IDLE
setStatusIdle() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the status of this Model to IDLE.
setStatusPlaying() - Method in class com.eriksilkensen.sudoku.SudokuControl
Sets the status of the Model to be PLAYING
setStatusPlaying() - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the status of this Model to PLAYING.
setText(String) - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Changes the displayed message at runtime.
setTime(int) - Method in class com.eriksilkensen.sudoku.SudokuControl
Sets the time
setTime(int) - Method in class com.eriksilkensen.sudoku.SudokuModel
Sets the time
setTime(int) - Method in class com.eriksilkensen.sudoku.SudokuView
 
setTimerEnabled(boolean) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets whether or not the Timer should be used when playing games
setTimerLabelText(String) - Method in class com.eriksilkensen.sudoku.SudokuView
Sets the timer label's text
setType(boolean) - Method in class com.eriksilkensen.sudoku.Cell
Sets this Cell's type
setUpNetworking() - Method in class com.eriksilkensen.net.Client
Sets up the networking by creating a Socket and attempting to connect to the Server.
setValue(int) - Method in class com.eriksilkensen.sudoku.Cell
Sets this Cell's value
setVisible(boolean) - Method in class com.eriksilkensen.sudoku.ChatRoom
 
setVisible(boolean) - Method in class com.eriksilkensen.sudoku.NetworkDialog
 
shield - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Alpha level of the veil.
show() - Method in class com.eriksilkensen.sudoku.BestTimesView
Shows the View
show() - Method in class com.eriksilkensen.sudoku.BoardStatsView
Shows the View in the form of a JOptionPane
show() - Method in class com.eriksilkensen.sudoku.SudokuView
Simply shows the View by first centering the frame and then setting it to be visible.
showDialog(JFrame) - Method in class com.eriksilkensen.sudoku.NetworkDialog
Shows this Dialog.
showHideChatRoom() - Method in class com.eriksilkensen.sudoku.SudokuControl
 
showHideChatRoom() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
 
showHomeScreen() - Method in class com.eriksilkensen.sudoku.SudokuView
Handy method for bringing the user back to the 'Home Screen' after ending a game
size() - Method in enum com.eriksilkensen.sudoku.BoardDifficulties
Returns the size - or number of difficulty levels - of this enum
sock - Variable in class com.eriksilkensen.net.Server.ClientHandler
 
solve(Board) - Method in class com.eriksilkensen.sudoku.BackTrackingStrategy
Implented from SolvingStrategy, solves the specified Board
solve(Board) - Method in class com.eriksilkensen.sudoku.Solver
Solves the Board and returns it
Solver - Class in com.eriksilkensen.sudoku
Solver uses a SolvingStrategy to solve Boards
Solver(SolvingStrategy) - Constructor for class com.eriksilkensen.sudoku.Solver
A Solver requires a SolvingStrategy to solve Boards
SolvingStrategy - Class in com.eriksilkensen.sudoku
Abstract representation of a SolvingStrategy that a Solver uses to solve Sudoku Boards.
SolvingStrategy() - Constructor for class com.eriksilkensen.sudoku.SolvingStrategy
 
SolvingTimer - Class in com.eriksilkensen.sudoku
Utility class that times solving algorithms
SolvingTimer(SolvingStrategy) - Constructor for class com.eriksilkensen.sudoku.SolvingTimer
 
start() - Method in class com.eriksilkensen.sudoku.SudokuControl
start() should be called from a launching (main) method in order to, right now, just show the View
start() - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Starts the waiting animation by fading the veil in, then rotating the shapes.
started - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Notifies whether the animation is running or not.
STARTER - Static variable in class com.eriksilkensen.sudoku.Cell
 
startTimer() - Method in class com.eriksilkensen.sudoku.SudokuView
Starts the Timer
stop() - Method in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Stops the waiting animation by stopping the rotation of the circular shape and then by fading out the veil.
stopTimer() - Method in class com.eriksilkensen.sudoku.SudokuView
Stops the Timer
submitBestTimes() - Method in class com.eriksilkensen.sudoku.SudokuModel
Submits the BestTimes at the current difficulty level to the internet and updates the list of BestTimes at the JSudoku website.
submitTimes() - Method in class com.eriksilkensen.sudoku.SudokuControl
 
SudokuBoardPrinter - Class in com.eriksilkensen.sudoku
SudokuBoardPrinter prints Sudoku Boards by taking advantage of the HTMLPrinter's provided functionality.
SudokuBoardPrinter() - Constructor for class com.eriksilkensen.sudoku.SudokuBoardPrinter
Default constructor for SudokuBoardPrinter.
SudokuClient - Class in com.eriksilkensen.sudoku
Sudoku-specific Client that allows for Sudoku games to be played "over a network" by sending Board ID numbers across the Server.
SudokuClient(ChatRoom) - Constructor for class com.eriksilkensen.sudoku.SudokuClient
 
SudokuControl - Class in com.eriksilkensen.sudoku
SudokuControl is the Control component in the M-V-C framework and so behaves like one would expect of a Control
SudokuControl() - Constructor for class com.eriksilkensen.sudoku.SudokuControl
Default no-arg constructor for the Control It probably will never be used
SudokuControl(SudokuModel) - Constructor for class com.eriksilkensen.sudoku.SudokuControl
Initializes the Control with its passed in Model and then creates the View.
SudokuModel - Class in com.eriksilkensen.sudoku
SudokuModel is the Model component in the M-V-C framework and so behaves like one would expect of a Model.
SudokuModel() - Constructor for class com.eriksilkensen.sudoku.SudokuModel
The only constructor needed for the Model, which doesn't require any parameters.
SudokuNetworkedControl - Class in com.eriksilkensen.sudoku
SudokuNetworkedControl is an enhanced version of the default SudokuControl, and so behaves exactly like one would expect of a Control in the M-V-C framework.
SudokuNetworkedControl(SudokuModel) - Constructor for class com.eriksilkensen.sudoku.SudokuNetworkedControl
The only constructor does everything its super class version does, and then creates a new Client and registers itself with the Client
SudokuObserver - Interface in com.eriksilkensen.sudoku
A Sudoku-Specific Observer
SudokuReader - Class in com.eriksilkensen.sudoku
A Sudoku-specific IncomingReader that handles all messages that come through the Server.
SudokuReader(Client, String, ChatRoom) - Constructor for class com.eriksilkensen.sudoku.SudokuReader
Passes along the creation of this Reader to the super class
SudokuView - Class in com.eriksilkensen.sudoku
SudokuView is the View component in the M-V-C framework and so behaves like one would expect of a View.
SudokuView(SudokuControl) - Constructor for class com.eriksilkensen.sudoku.SudokuView
The only constructor for a SudokuView.
supplyInventory(int) - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Supplies the Inventory with the specified number of Boards per difficulty level.
supplyInventory(int) - Static method in class com.eriksilkensen.sudoku.BoardSupplier
Supplies the BoardInventory with new Boards

T

tellEveryone(String) - Method in class com.eriksilkensen.net.Server
Sends out a message to all of the Client's PrintWriters in the outputStreams Map.
TestBoardFactory - Class in com.eriksilkensen.sudoku
A Test Factory
TestBoardFactory() - Constructor for class com.eriksilkensen.sudoku.TestBoardFactory
 
text - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Message displayed below the circular shape.
TEXT - Static variable in class com.eriksilkensen.swinghacks.JVectorButton
 
TEXT - Static variable in class com.eriksilkensen.swinghacks.JVectorRadioButton
 
TextFileBoardFactory - Class in com.eriksilkensen.sudoku
Factory implementation for creating Boards using a formatted text file.
TextFileBoardFactory() - Constructor for class com.eriksilkensen.sudoku.TextFileBoardFactory
 
ticker - Variable in class com.eriksilkensen.swinghacks.InfiniteProgressPanel
Contains the bars composing the circular shape.
toString() - Method in class com.eriksilkensen.sudoku.BestTime
Returns a String representation of this BestTime
toString() - Method in class com.eriksilkensen.sudoku.Cell
Returns a String representation of this Cell object
toString() - Method in class com.eriksilkensen.sudoku.secure.Password
 
totalSize() - Method in class com.eriksilkensen.sudoku.BoardInventory
Returns the total size of the Inventory

U

update(Observable, Object) - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
This method is called automatically by the Observable Client whenever it needs to call attention to itself.
update(Observable, Object) - Method in class com.eriksilkensen.sudoku.SudokuView
update() is what gets called when an Observable wants to update its Observers.
update(Observable, Object) - Method in interface com.eriksilkensen.util.Observer
 
updateBoard(int, int, Cell) - Method in class com.eriksilkensen.sudoku.SudokuModel
Updates the Cell at the location [row][col] and sets it to the passed Cell argument
updateInventory() - Method in class com.eriksilkensen.sudoku.BoardInventoryHelper
Updates the Inventory by writing it out to the file
UPDT_MESSAGE - Static variable in class com.eriksilkensen.net.Server
Identifies a "update" message which should be used to notify all Clients connected to the Server of all the other currently connected Clients.
UPDT_MESSAGE - Static variable in class com.eriksilkensen.sudoku.SudokuReader
 

V

valueOf(String) - Static method in enum com.eriksilkensen.sudoku.BoardDifficulties
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.eriksilkensen.sudoku.BoardDifficulties
Returns an array containing the constants of this enum type, in the order they are declared.
view - Variable in class com.eriksilkensen.sudoku.SudokuControl
 

W

WebBoardFactory - Class in com.eriksilkensen.sudoku
This Factory creates Boards by scraping the HTML off of a Sudoku website and parsing it into a Board
WebBoardFactory() - Constructor for class com.eriksilkensen.sudoku.WebBoardFactory
 
windowClosing() - Method in class com.eriksilkensen.sudoku.SudokuControl
Called by the View when the user is closing its Window, so the Control can do whatever last-second things it needs to before shutting down.
windowClosing() - Method in class com.eriksilkensen.sudoku.SudokuNetworkedControl
Called by the View when a user is closing their window
WON - Static variable in class com.eriksilkensen.sudoku.SudokuModel
 
write() - Method in class com.eriksilkensen.sudoku.BoardStats
Public write() method for writing the stats.ser file

A B C D E F G H I J L M N O P Q R S T U V W