Open Source JavaFX Now!

JFXtras Samples Logo

Artifact
Default Tag Set

JFXtras Samples

The goal of the JFXtras Samples project is to provide quality JavaFX sample programs for users to learn and explore the language.  Please feel free to browse the samples, reuse any of the code in your applications (all licenses are commercial friendly), and contribute any additional samples you have back to the community.

« Back

Boundisizer

Untitled Document
Author:Amy Fowler
Homepage:http://weblogs.java.net/blog/aim
License: New BSD License
Description:Boundisizer example from Amy Fowler's blog.
Tags: sample, graphics, layout
Modified:Sat, 11 Jul 2009 07:13:41 -0500
Launch Widget Browse Source Launch Widget Download Project
Launch Application


The visuals displayed within a JavaFX scene are fully represented by a 2D scene graph where each visual element (line, path, image, etc) is represented by a distinct node with variables that can be easily manipulated dynamically. The node's size and position (otherwise known as its "bounds") becomes complicated when considering these many variables which contribute to its bounds, such as shape geometry (startX/startY, width, radius, etc), transformations (scale, rotate, etc), effects (shadows, glow, etc), and clipping. Understanding how each of these variables affects the bounds calculations of a node is crucial to getting the scene layout you want.

Read the full blog entry here:
http://weblogs.java.net/blog/aim/archive/2009/07/bounds_unleashe.html


Average (1 Vote)