Scoreboard is a gadget control that might prove useful, allowing single line or full scale type sports hall displays.
Features
- Multi line displays
- Line scrolling
- Choice of 7 colors
- Extended character set
Try it out
If you would like to try a sample of how this shape operates, run the
ScoreBoardTest.fx application in
org.jfxtras.scene.gadget.
Sample Code
ScoreBoard {
lightColor: ScoreChar.GREEN
lines: [
ScoreLine { line: "Men's 100m Backstroke - S8 " },
ScoreLine { line: " " },
ScoreLine { line: " GOLD GOLD GOLD " },
ScoreLine { line: "Mohr Travis USA 1:10.15" },
]
}
General Options
(see JavaFXDoc for details)
ScoreBoard
| Parameter | Default | Description |
|---|
| lines | | Sequence of 1 or more ScoreLines |
| lightColor | | Maybe any of ScoreChar.GREEN, RED, BLUE, YELLOW, AMBER, CYAN, MAGENTA |
| showBorder | true | Creates a default border |
ScoreLine
| Parameter | Default | Description |
|---|
| line | | The line of text, each line should be same length |
| spaceBefore | 1 | The spacing above the line separating it from previous |
| spaceAfter | 1 | The spacing below the line separating it from next |
| scrollRate | 0.0 | The line scroll rate from -10.0 to +10.0 |
Other options may be available, including public variables and methods and will be detailed in the JavaFXDoc
<< Back to JFXtras FrontPage < Back to Gadgets