Strict Standards: Redefining already defined constructor for class wpdb in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/wp-db.php on line 52

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/cache.php on line 36

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/cache.php on line 389

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 537

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 537

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 537

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 537

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 556

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 653

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 653

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 653

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 653

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el($output) in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 678

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/theme.php on line 507

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/5000114365/u289/saager.org/htdocs/wp-content/plugins/sem-static-front.php on line 260
Carsten’s Blog » Blog Archive » Java FX clock goes SVG



Warning: Creating default object from empty value in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/classes.php on line 403
  • Computer
  • General
  • Kino
  • Life
  • Photo
  • Whatever
  • Tags

    Java FX clock goes SVG

    May 22nd, 2007

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 81

    Warning: Parameter 1 to keywords_appendTags() expected to be a reference, value given in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/plugin.php on line 57

    5 Responses to “Java FX clock goes SVG”

    1. Andrew Collins Says:

      Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

      Excellent fix! The change drastically improves the original example.

    2. Andrew McVeigh Says:

      Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

      Umm, it’s not SVG I think. Under the covers it seems to be translating the objects into Jazz (a zooming scenegraph) objects, which are then drawn on a 2D canvas.

      I think in many ways it would be better if it were SVG, but c’est la vie.

      Cheers,
      Andrew

    3. Augusto Says:

      Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

      Cool!

      I considered drawing the clock hands in the code (the original code was like that) but I opted to do the whole thing in Photoshop. It’s inspired by one of the Google gadgets which is done that way. The one advantage is that it’s easy to deal with bitmapped images and you can change the look of the clock with no code changes.

      I’m considering doing a vector based version, but have the elements drawn in something like inkscape and then read the SVG at runtime. There’s an SVG reader out there, but I had difficulty reading some SVG icons with it. There’s also Batik, so there’s a couple of options here.

      I’m interested to see what the performance would be with the vector graphics, it could get tricky with some of the effects I have (specially the “shiny” translucent part of the face and the frame”. However, once it’s in vector graphics I could do cool things like change the angle of reflection and intensity as you move from daytime to nighttime.

    4. Eric Kolotyluk Says:

      Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

      I tried running the script, but nothing happens.
      FXShell just terminates. How do you debug this stuff?

      I developed it with the JavaFX pad - just checked, works fine, Carsten

    5. Coffeejolts Says:

      Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/5000114365/u289/saager.org/htdocs/wp-includes/formatting.php on line 74

      The problem is not in the transforming of the images, it is in the antialiasing code as it relates to ImageView. If you do the following…

      ImageView {
      transform: //your transform here
      image: Image {url: “http://sellmic.com/lab/dev/jfx/clock/images/minute_hand.png”}
      antialias: false
      }
      You will see that the image is smoothed. However antialias: true or simply not listing the antialias property at all results in jagged, non aliased images.

    Leave a Reply