Class ImageFactory


  • public class ImageFactory
    extends java.lang.Object
    Utility class for image manipulation.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Sep 23, 2013
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileNameExt​(double width, double height, int capWidth)
      Compute the filename based on the stretching factor
      javafx.scene.image.Image getSlabImage​(javafx.geometry.Dimension2D dim)
      Draw a borderless stone slab
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageFactory

        public ImageFactory()
    • Method Detail

      • getSlabImage

        public javafx.scene.image.Image getSlabImage​(javafx.geometry.Dimension2D dim)
        Draw a borderless stone slab
        Parameters:
        dim - dimension of the image
      • getFileNameExt

        public java.lang.String getFileNameExt​(double width,
                                               double height,
                                               int capWidth)
        Compute the filename based on the stretching factor
        Parameters:
        width - of the button
        height - of the button
        Returns:
        best matching stone slab extension file name.