sudoku.gui
Class Theme
java.lang.Object
sudoku.gui.Theme
- class Theme
- extends java.lang.Object
Themes are used to store different color and border settings used to draw Squares.
- Author:
- sweis
Constructor Summary |
(package private) |
Theme()
Creates a Theme with default values. |
(package private) |
Theme(java.awt.Color background,
java.awt.Color mouseover,
java.awt.Color focused,
java.awt.Color text,
java.awt.Color given,
javax.swing.border.Border border)
Creates a new theme with the given values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Theme
Theme()
- Creates a Theme with default values.
Theme
Theme(java.awt.Color background,
java.awt.Color mouseover,
java.awt.Color focused,
java.awt.Color text,
java.awt.Color given,
javax.swing.border.Border border)
- Creates a new theme with the given values
- Parameters:
background
- The Square background color.mouseover
- The mouseover highlight colorfocused
- The cursor highlight colortext
- The text colorgiven
- The color of given squaresborder
- The square border
setBorder
void setBorder(javax.swing.border.Border border)
- Parameters:
border
- The border to set.
getBorder
javax.swing.border.Border getBorder()
- Returns:
- Returns the border.
setBackgroundColor
void setBackgroundColor(java.awt.Color backgroundColor)
- Parameters:
backgroundColor
- The backgroundColor to set.
getBackgroundColor
java.awt.Color getBackgroundColor()
- Returns:
- Returns the backgroundColor.
setMouseoverColor
void setMouseoverColor(java.awt.Color mouseoverColor)
- Parameters:
mouseoverColor
- The mouseoverColor to set.
getMouseoverColor
java.awt.Color getMouseoverColor()
- Returns:
- Returns the mouseoverColor.
setFocusedColor
void setFocusedColor(java.awt.Color focusedColor)
- Parameters:
focusedColor
- The focusedColor to set.
setTextColor
void setTextColor(java.awt.Color textColor)
- Parameters:
textColor
- The textColor to set.
getTextColor
java.awt.Color getTextColor()
- Returns:
- Returns the textColor.
setGivenColor
void setGivenColor(java.awt.Color givenColor)
- Parameters:
givenColor
- The givenColor to set.
getGivenColor
java.awt.Color getGivenColor()
- Returns:
- Returns the givenColor.
setHighlightColor
void setHighlightColor(java.awt.Color highlightColor)
- Parameters:
highlightColor
- The highlightColor to set.
getHighlightColor
java.awt.Color getHighlightColor()
- Returns:
- Returns the highlight color.