Class AnimationFrame
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.animation.AnimationFrame
Beschreibt ein Einzelbild einer
Animation.- Author:
- Niklas Keller
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationFrame(BufferedImage image, double duration) Erstellt ein Einzelbild. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetImage()voidrender(Graphics2D g, double width, double height, boolean flipHorizontal, boolean flipVertical) Rendert das Einzelbild (an der entsprechenden Position des Graphics Objekts)voidsetDuration(double duration)
-
Constructor Details
-
AnimationFrame
Erstellt ein Einzelbild.- Parameters:
image- Ein Bild, das sich bereits im Speicher befindet.duration- Die Dauer in Sekunden, die dieses Einzelbild aktiv bleibt.
-
-
Method Details
-
setDuration
-
getImage
-
getDuration
-
render
@Internal public void render(Graphics2D g, double width, double height, boolean flipHorizontal, boolean flipVertical) Rendert das Einzelbild (an der entsprechenden Position des Graphics Objekts)- Parameters:
g- DasGraphics2D-Objekt, in das gezeichnet werden soll.
-