SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.model.Options Class Reference
+ Collaboration diagram for fr.softsf.sudokufx.model.Options:

Classes

class  BackgroundBuilder
 Builder for creating Background instances with fluent API. More...
 

Public Member Functions

 Background (Long backgroundid, @Nonnull @NotNull String hexcolor, @Nonnull @NotNull String imagepath, boolean isimage, boolean isopaque)
 
boolean equals (Object obj)
 
Long getBackgroundid ()
 
String getHexcolor ()
 
String getImagepath ()
 
boolean getIsimage ()
 
boolean getIsopaque ()
 
int hashCode ()
 
void setHexcolor (@Nonnull String hexcolor)
 
void setImagepath (@Nonnull String imagepath)
 
void setIsimage (boolean isimage)
 
void setIsopaque (boolean isopaque)
 
String toString ()
 

Static Public Member Functions

static BackgroundBuilder builder ()
 

Protected Member Functions

 Background ()
 

Static Private Member Functions

static String validateHexcolor (String hexcolor)
 Validates hex color format (#RGB or #RRGGBB).
 
static String validateImagepath (String imagepath)
 Validates image path is not null.
 

Private Attributes

Long backgroundid
 
String hexcolor = DEFAULT_HEX_COLOR
 
String imagepath = EMPTY_PATH
 
boolean isimage = false
 
boolean isopaque = true
 

Static Private Attributes

static final String DEFAULT_HEX_COLOR = "#000000"
 
static final String EMPTY_PATH = ""
 
static final Pattern HEX_COLOR_PATTERN
 
static final String HEXCOLOR_MUST_NOT_BE_NULL_OR_BLANK
 
static final String IMAGEPATH_MUST_NOT_BE_NULL = "imagepath must not be null"
 
static final String INVALID_HEX_COLOR_FORMAT
 

Constructor & Destructor Documentation

◆ Background() [1/2]

fr.softsf.sudokufx.model.Options.Background ( )
protected
+ Here is the call graph for this function:

◆ Background() [2/2]

fr.softsf.sudokufx.model.Options.Background ( Long backgroundid,
@Nonnull @NotNull String hexcolor,
@Nonnull @NotNull String imagepath,
boolean isimage,
boolean isopaque )
+ Here is the call graph for this function:

Member Function Documentation

◆ builder()

static BackgroundBuilder fr.softsf.sudokufx.model.Options.builder ( )
static

◆ equals()

boolean fr.softsf.sudokufx.model.Options.equals ( Object obj)
+ Here is the call graph for this function:

◆ getBackgroundid()

Long fr.softsf.sudokufx.model.Options.getBackgroundid ( )

◆ getHexcolor()

String fr.softsf.sudokufx.model.Options.getHexcolor ( )

◆ getImagepath()

String fr.softsf.sudokufx.model.Options.getImagepath ( )

◆ getIsimage()

boolean fr.softsf.sudokufx.model.Options.getIsimage ( )

◆ getIsopaque()

boolean fr.softsf.sudokufx.model.Options.getIsopaque ( )

◆ hashCode()

int fr.softsf.sudokufx.model.Options.hashCode ( )

◆ setHexcolor()

void fr.softsf.sudokufx.model.Options.setHexcolor ( @Nonnull String hexcolor)
+ Here is the call graph for this function:

◆ setImagepath()

void fr.softsf.sudokufx.model.Options.setImagepath ( @Nonnull String imagepath)
+ Here is the call graph for this function:

◆ setIsimage()

void fr.softsf.sudokufx.model.Options.setIsimage ( boolean isimage)

◆ setIsopaque()

void fr.softsf.sudokufx.model.Options.setIsopaque ( boolean isopaque)

◆ toString()

String fr.softsf.sudokufx.model.Options.toString ( )

◆ validateHexcolor()

static String fr.softsf.sudokufx.model.Options.validateHexcolor ( String hexcolor)
staticprivate

Validates hex color format (#RGB or #RRGGBB).

Parameters
hexcolorhex color to validate
Returns
validated hex color
Exceptions
IllegalArgumentExceptionif invalid format

◆ validateImagepath()

static String fr.softsf.sudokufx.model.Options.validateImagepath ( String imagepath)
staticprivate

Validates image path is not null.

Parameters
imagepathimage path to validate
Returns
validated image path
Exceptions
NullPointerExceptionif null

Member Data Documentation

◆ backgroundid

Long fr.softsf.sudokufx.model.Options.backgroundid
private

◆ DEFAULT_HEX_COLOR

final String fr.softsf.sudokufx.model.Options.DEFAULT_HEX_COLOR = "#000000"
staticprivate

◆ EMPTY_PATH

final String fr.softsf.sudokufx.model.Options.EMPTY_PATH = ""
staticprivate

◆ HEX_COLOR_PATTERN

final Pattern fr.softsf.sudokufx.model.Options.HEX_COLOR_PATTERN
staticprivate
Initial value:
=
Pattern.compile("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$")

◆ hexcolor

String fr.softsf.sudokufx.model.Options.hexcolor = DEFAULT_HEX_COLOR
private

◆ HEXCOLOR_MUST_NOT_BE_NULL_OR_BLANK

final String fr.softsf.sudokufx.model.Options.HEXCOLOR_MUST_NOT_BE_NULL_OR_BLANK
staticprivate
Initial value:
=
"hexcolor must not be null or blank"

◆ imagepath

String fr.softsf.sudokufx.model.Options.imagepath = EMPTY_PATH
private

◆ IMAGEPATH_MUST_NOT_BE_NULL

final String fr.softsf.sudokufx.model.Options.IMAGEPATH_MUST_NOT_BE_NULL = "imagepath must not be null"
staticprivate

◆ INVALID_HEX_COLOR_FORMAT

final String fr.softsf.sudokufx.model.Options.INVALID_HEX_COLOR_FORMAT
staticprivate
Initial value:
=
"hexcolor must be a valid hex color format (e.g., #FFFFFF or #FFF)"

◆ isimage

boolean fr.softsf.sudokufx.model.Options.isimage = false
private

◆ isopaque

boolean fr.softsf.sudokufx.model.Options.isopaque = true
private

The documentation for this class was generated from the following file: