Package pi.actor
Class StatefulImagesPrefixAnimation<State>
java.lang.Object
pi.actor.Actor
pi.actor.StatefulAnimation<State>
pi.actor.StatefulImagesPrefixAnimation<State>
- Type Parameters:
State- Typ der Zustände, zwischen denen in der Animation gewechselt werden soll.
- All Implemented Interfaces:
FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
Lädt alle Bilddateien mit einem bestimmten Präfix in einem bestimmten
Verzeichnis in eine Animation.
- Since:
- 0.27.0
- Author:
- Josef Friedrich
-
Field Summary
Fields inherited from class pi.actor.StatefulAnimation
frameDuration, height, width -
Constructor Summary
ConstructorsConstructorDescriptionStatefulImagesPrefixAnimation(double width, double height, double frameDuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidLädt alle Bilddateien mit einem bestimmten Präfix in einem bestimmten Verzeichnis in eine Animation.voidLädt alle Bilddateien mit einem bestimmten Präfix in einem bestimmten Verzeichnis in eine Animation.Methods inherited from class pi.actor.StatefulAnimation
addState, animationPaused, changeState, flipHorizontal, flipVertical, frameDuration, hasState, height, isAnimationPaused, isFlipHorizontal, isFlipVertical, size, state, state, stateTransition, widthMethods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, anchor, anchor, anchor, anchorformatted, angularDamping, angularDamping, angularVelocity, angularVelocity, animateOpacity, animateParticle, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyRotationImpulse, applyTorque, awake, bodyType, bodyType, center, center, center, centerRelative, collisions, color, color, color, complementaryColor, contains, createDistanceJoint, createPrismaticJoint, createRevoluteJoint, createRopeJoint, createWeldJoint, density, density, fixture, fixtures, fixtures, frameUpdateListeners, friction, friction, gravityScale, gravityScale, hide, isGrounded, isMounted, isRotationLocked, isVisible, keyStrokeListeners, layer, layerPosition, layerPosition, linearDamping, linearDamping, listenerBundle, lockRotation, makeDynamic, makeKinematic, makeParticle, makeSensor, makeStatic, mass, mouseClickListeners, mouseScrollListeners, moveBy, moveBy, opacity, opacity, overlaps, remove, removeMountListener, removeUnmountListener, resetMovement, restitution, restitution, rotateBy, rotation, rotation, rotationLocked, show, sleep, toggleVisible, velocity, velocity, visible, x, x, y, yMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
StatefulImagesPrefixAnimation
public StatefulImagesPrefixAnimation(double width, double height, double frameDuration) - Parameters:
width- Die Breite in Meter der animierten Figur.height- Die Höhe in Meter der animierten Figur.frameDuration- Die Dauer in Sekunden, die die Einzelbilder aktiv bleiben.
-
-
Method Details
-
addState
Lädt alle Bilddateien mit einem bestimmten Präfix in einem bestimmten Verzeichnis in eine Animation.- Parameters:
state- Der Zustand, unter dem die Animation gespeichert wird.frameDuration- Die Dauer in Sekunden, die die Einzelbilder aktiv bleiben.directoryPath- Der Pfad zum Verzeichnis, in dem die einzuladenden Bilder liegen.prefix- Das Pfad-Präfix. Diese Funktion sucht alle Dateien mit dem gegebenen Präfix (im angegebenen Ordner) und fügt sie in aufsteigender Reihenfolge der Animation hinzu.
-
addState
Lädt alle Bilddateien mit einem bestimmten Präfix in einem bestimmten Verzeichnis in eine Animation.- Parameters:
state- Der Zustand, unter dem die Animation gespeichert wird.directoryPath- Der Pfad zum Verzeichnis, in dem die einzuladenden Bilder liegen.prefix- Das Pfad-Präfix. Diese Funktion sucht alle Dateien mit dem gegebenen Präfix (im angegebenen Ordner) und fügt sie in aufsteigender Reihenfolge der Animation hinzu.
-