Skip to content
JavaFX pane for scaling arbitrary content nodes (used in VWorkflows)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
gradle
src
.gitignore
.travis.yml
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

ScaledFX

Build Status Download Javadocs

JavaFX pane for scaling arbitrary content nodes (used in Vworkflows) by applying scale transformations. The ScalableContentPane scales its content to always fit the container bounds.

Sample 1

Sample 2

Sample Code:

public class Main extends Application {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        ScalableContentPane scp = 
            new ScalableContentPane(new Button("Scaled Button"));
        
        primaryStage.setScene(new Scene(scp));
        primaryStage.setTitle("Scalable Content Pane Demo");
        primaryStage.show();
    }
}

Notes on JDK >=11

Version >= 0.5 is compatible with JDK >= 11. Just use the JavaFx Gradle plugin via

plugins {
  id 'org.openjfx.javafxplugin' version '0.0.7' // use latest version
}

and declare the dependency to the controls module.

javafx {
    modules = [ 'javafx.controls' ]
}

Notes on JDK 8

Version <= 0.4 is compatible with JDK 8 (probably also 9 and 10)

You can’t perform that action at this time.