
org.refcodes.graphical.ext.javafx.FxGraphicalUtility Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-graphical-ext-javafx Show documentation
Show all versions of refcodes-graphical-ext-javafx Show documentation
Artifact with JavaFX based extensions of the refcodes-graphical artifact.
package org.refcodes.graphical.ext.javafx;
import java.io.InputStream;
import javafx.scene.image.Image;
public final class FxGraphicalUtility {
// /////////////////////////////////////////////////////////////////////////
// STATICS:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// CONSTANTS:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// VARIABLES:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// CONSTRUCTORS:
// /////////////////////////////////////////////////////////////////////////
private FxGraphicalUtility() {}
// /////////////////////////////////////////////////////////////////////////
// INJECTION:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// METHODS:
// /////////////////////////////////////////////////////////////////////////
public static Image toImage( InputStream aInputStream ) {
return new Image( aInputStream );
}
public static Image[] toImages( InputStream... aInputStreams ) {
Image[] theImages = new Image[aInputStreams.length];
for ( int i = 0; i < aInputStreams.length; i++ )
theImages[i] = new Image( aInputStreams[i] );
return theImages;
}
// /////////////////////////////////////////////////////////////////////////
// HOOKS:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// HELPER:
// /////////////////////////////////////////////////////////////////////////
// /////////////////////////////////////////////////////////////////////////
// INNER CLASSES:
// /////////////////////////////////////////////////////////////////////////
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy