Java Reference
In-Depth Information
Ta b l e 1 3 . 2
JavaFX Source Files in the sudoku Package
JavaFX Source File
Description
Board.fx
This class contains a logical representation of a Sudoku board,
including the code necessary to play the game.
BoardNode.fx
This class is primarily responsible for the layout of the Sudoku
interface.
Space.fx
A Sudoku Board is comprised of 81 Space s. Among other
instance variables, each Space instance has a number instance
variable, whose value is used to interpret the state of the Space .
For each Space instance, there is a related SpaceNode instance
responsible for receiving user input for a space and displaying the
contents of that space on the board.
SpaceNode.fx
HowToPlayNode.fx
Component representing a pop-up window that appears when the
How to Play icon button is pressed.
Slider component that appears when the user clicks on the Skill
Level icon button. By repositioning the slider, the user can either
increase or decrease the difficulty of the next puzzle to be generated.
SliderNode.fx
ChooseNumberNode.fx
Component that appears over an editable space on the board when
the mouse is clicked, giving the user a choice of which number to
insert into that space.
IconButtonNode.fx
Component representing the icons appearing near the bottom of
the Sudoku interface. These icons are animated such that when a
mouse hovers over them they increase in size.
Common component used in both SliderNode and
HowToPlayNode classes.
CloseButtonNode.fx
This class is created primarily due to the fact that JavaFX cur-
rently does not support multi-dimensional sequences. A Board , in
addition to containing a sequence of 81 (9u9) Space s, also
includes nine Grouping s representing the nine rows, columns,
and regions that make up a board.
Grouping.fx
Main.fx
Responsible for starting up the Sudoku application. This file also
contains code to support the dragable applet feature.
 
Search WWH ::




Custom Search