Class ImageFactory
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.control.ImageFactory
-
public class ImageFactory extends java.lang.ObjectUtility 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.StringgetFileNameExt(double width, double height, int capWidth)Compute the filename based on the stretching factorjavafx.scene.image.ImagegetSlabImage(javafx.geometry.Dimension2D dim)Draw a borderless stone slab
-
-
-
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 buttonheight- of the button- Returns:
- best matching stone slab extension file name.
-
-