Open Source JavaFX Now!

JFXtras Core Logo

XScoreBoard

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
linesSequence of 1 or more ScoreLines
lightColorMaybe any of ScoreChar.GREEN, RED, BLUE, YELLOW, AMBER, CYAN, MAGENTA
showBordertrueCreates a default border

ScoreLine

Parameter   Default   Description
lineThe line of text, each line should be same length
spaceBefore1The spacing above the line separating it from previous
spaceAfter1The spacing below the line separating it from next
scrollRate0.0The 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
1 Attachments 1 Attachments
947 Views