Giter Club home page Giter Club logo

crackercat / scenic-view Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonathangiles/scenic-view

0.0 0.0 0.0 4.64 MB

Scenic View is a JavaFX application designed to make it simple to understand the current state of your application scenegraph, and to also easily manipulate properties of the scenegraph without having to keep editing your code. This lets you find bugs, and get things pixel perfect without having to do the compile-check-compile dance.

License: GNU General Public License v3.0

Java 99.38% CSS 0.62%

scenic-view's Introduction

Scenic View

Scenic View is a JavaFX application designed to make it simple to understand the current state of your application scenegraph, and to also easily manipulate properties of the scenegraph without having to keep editing your code. This lets you find bugs, and get things pixel perfect without having to do the compile-check-compile dance.

Scenic View Screenshot

Build status

Builds for JDK 11 for Windows, Linux, and MacOS are built by Azure Pipelines. The status of these builds is shown below:

Platform Status Download for JDK 11
Windows Build Status Download
MacOS Build Status Download
Linux Build Status Download

You can also download platform-independent releases JDK 8 and JDK 9.

Java Version

Scenic View has releases for JDK 8, JDK 9, and JDK 11:

  • The JDK 8 release is in maintenance mode. No active development is ongoing, and the code exists in the jdk8 branch.
  • The JDK 9 release is deprecated, and developers are encouraged to use either the JDK 8 release or the JDK 11 release.
  • The JDK 11 release is the actively developed branch, and the code exists in the master branch.

For more information about JavaFX 11, see https://openjfx.io/openjfx-docs/.

Scenic View for JDK 11+

How to build

Install a valid Java 11 version, and set JAVA_HOME accordingly.

The project is managed by gradle, so is not necessary to download the JavaFX 11 SDK.

To build the project, type:

./gradlew build

To build a custom runtime image for your platform, type:

./gradlew jlink

You can also create a zipped version of that image for distribution:

./gradlew jlinkZip

Using Scenic View

Stand-alone application

Download the Scenic View custom image for your platform from the above links. Unzip and then run:

cd scenicview/bin
./scenicView

Also, you can clone or download this project, and run Scenic View as stand-alone application:

./gradlew run

or if you build a custom image:

cd build/scenicview/bin
./scenicView

Then run a JavaFX application and it will be detected by Scenic View.

Alternatively, you can also run the scenicview.jar in any platform, providing that JDK 11 and JavaFX SDK 11 are installed:

cd build/libs/
java --module-path /path-to/javafx-11-sdk/lib --add-modules javafx.web,javafx.fxml,javafx.swing -jar scenicview.jar
Notes
  • Scenic View will detect JavaFX applications running on Java 9, 10 or 11.

  • If the JavaFX application runs from a custom image (created via link or jpackage), it won't have access to some required tools that are available when it runs from a regular JDK, and Scenic View won't be able to find it.

As a dependency

You can add scenicview.jar as a dependency to your JavaFX application. Since this jar doesn't include the JavaFX dependencies, you should add them to your project, in case these weren't included yet.

For instance, if you are running a gradle project, add the jar to a libs folder, then add it to the build.gradle file, like:

    plugins {
        id 'application'
        id 'org.openjfx.javafxplugin' version '0.0.7'
    }

    repositories {
        mavenCentral()
    }

    dependencies {
        implementation files('libs/scenicview.jar')
    }

    javafx {
        modules = ['javafx.web', 'javafx.fxml', 'javafx.swing']
    }

and also add it to the module-info.java file requirements:

    requires javafx.controls;
    requires javafx.fxml;
    requires transitive javafx.web;
    requires transitive javafx.swing;

    requires org.scenicview.scenicview;

Finally, you can run it from the application class:

    Scene scene = new Scene(root);
    stage.setScene(scene);
    stage.show();
    
    ScenicView.show(scene);

License

GNU General Public License v3.0-or-later

Contributing

This project welcomes all types of contributions and suggestions. We encourage you to report issues, create suggestions and submit pull requests.

Please go through the list of issues to make sure that you are not duplicating an issue.

scenic-view's People

Contributors

abhinayagarwal avatar in-sidefx avatar jonathangiles avatar jperedadnr avatar martinfrancois avatar mcfoggy avatar neilccbrown avatar shemnon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.