Helsinki Scala Club 25.4.2013
Punavuoren Ahven
Helsinki Scala Club 25.4.2013 Punavuoren Ahven S c a l a F X - - PowerPoint PPT Presentation
Helsinki Scala Club 25.4.2013 Punavuoren Ahven S c a l a F X HelloStage.scala getting the development system up is a h*ll of a work - well skip that! :D c l u d e s . i n e s o f i n c k i n g 1 0 l L a S c
Punavuoren Ahven
getting the development system up is a h*ll of a work - we’ll skip that! :D
L a c k i n g 1 l i n e s
i n c l u d e s .
Unfortunately ScalaFX is not yet available as i.e. ‘sbt’ dependency. $ hg clone https://code.google.com/p/scalafx/ ... $ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/ Contents/Home/ $ cd scalafx ... $ sbt clean compile scalafx-demos/run
T h i s i s h
t
e t a d e m
u n n i n g
O S X w i t h
s c a l a
,
h g
a n d
s b t
f r
H
e b r e w a n d O r a c l e J R E 7 i n s t a l l e d . B a s e d
s t a t e
S c a l a F X r e p
i t
y
2 5 A p r 2 1 3 .
Note: the ‘colorful circles’ demo is pretty intensive of GPU usage. Windows platforms seem to have a way better graphics pipeline than i.e. OS X (or maybe Linux). For other samples, the difference is not as great.
Unfortunately ScalaFX is not yet available as i.e. ‘sbt’ dependency. $ hg clone https://code.google.com/p/scalafx/ ... $ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/ Contents/Home/ $ cd scalafx $ sbt clean compile run $ sbt package $ ls -al scalafx/target/scala-2.9.3/
scalafx_2.9.3-1.0.0-M4-SNAPSHOT.jar $ cp scalafx/target/scala-2.9.3/scalafx_*.jar <myproject>/lib
N
h
t
e t t h
e S c a l a v e r s i
s t
a t c h ? W h
. . . ( w
t h a f u l l w e e k c a m p )
The ‘live’ UI are those components that are found within a ‘scene graph’.
scalafx.stage.Stage scalafx.scene.Scene scalafx.scene.Group scalafx.scene.Node
G
h r
g h t h e c l a s s e s a t : s c a l a f x / s c a l a f x / s r c / m a i n / s c a l a / s c a l a f x
Yes, what a path!?
=> only objects on the scene graph are ‘live’
through!
headers. = a unified, documented Scala ONLY API would imho be welcome.
Good walk through at: http://code.google.com/p/scalafx/
Desktop Web Mobile / touch Games consoles
scaled by the user
Cross pollutation of ideas across paradigms.
Desktop Web Mobile / touch Games consoles
scaled by the user
native HTML Qt ScalaFX Fastest speed (but code and test x N) Fastest development (but test and tune x N²) Pretty good (but compile x N and test x N) Awesome! (still test x N)
Desktop Web Mobile / touch Games consoles
scaled by the user
native HTML Qt ScalaFX Fastest speed (but code and test x N) Fastest development (but test and tune x N²) Pretty good (but compile x N and test x N) Awesome! (still test x N)
Desktop Web Mobile / touch Games consoles
scaled by the user
native HTML Qt ScalaFX Fastest speed (but code and test x N) Fastest development (but test and tune x N²) Pretty good (but compile x N and test x N) Awesome! (still test x N)
Desktop Web Mobile / touch Games consoles
scaled by the user
native HTML Qt ScalaFX Fastest speed (but code and test x N) Fastest development (but test and tune x N²) Pretty good (but compile x N and test x N) Awesome! (still test x N)
ARM Linux preview of JavaFX available since late 2012.
https://jdk8.java.net/fxarmpreview/
Android and iOS support coming up via OpenJDK in 2013:
= hardware accelerated graphics pipeline for Desktop, Android, iOS
Sure. Please do. Then if it hurts, it’s nice to know there’s another way.
(+ JavaScript + libraries + CSS) 100 50
the Java API.
http://code.google.com/p/scalafx/
the only one)