Class Image
java.lang.Object
fr.r1r0r0.deltaengine.model.sprites.Image
- All Implemented Interfaces:
Sprite
public final class Image extends java.lang.Object implements Sprite
Image Sprite to display image
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Image(java.lang.String path)
Instantiate an Image Sprite with an image -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
path
private java.lang.String path -
imageView
private javafx.scene.image.ImageView imageView
-
-
Constructor Details
-
Image
public Image(java.lang.String path) throws java.io.FileNotFoundExceptionInstantiate an Image Sprite with an image- Parameters:
path
- to the image file- Throws:
java.io.FileNotFoundException
-
-
Method Details
-
getNode
public javafx.scene.Node getNode()Description copied from interface:Sprite
The Sprite object -
resize
public void resize(double width, double height)Description copied from interface:Sprite
resize the sprite to the following width and height -
getPath
public java.lang.String getPath()Path to image file- Returns:
- String path to file
-