public class ImagePath extends java.lang.Object implements IComponent
| Type | Property and Description |
|---|---|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
imageHeight |
javafx.beans.property.SimpleObjectProperty<java.lang.String> |
imagePath
Get the imagePath property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
imageWidth |
| Constructor and Description |
|---|
ImagePath() |
ImagePath(java.lang.String imagePath)
Construct with no animation.
|
ImagePath(java.lang.String spriteName,
java.lang.String imagePath,
double imageWidth,
double imageHeight,
javafx.geometry.Rectangle2D viewport,
boolean isAnimated,
double frameDurationMillis,
double totalDurationMillis,
int maxFrameIndex)
Construct with starting values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDuration() |
double |
getElapsedTime() |
double |
getFrameDuration() |
int |
getFrameIndex() |
double |
getImageHeight()
Gets the value of the property imageHeight.
|
java.lang.String |
getImagePath()
Gets the value of the property imagePath.
|
javafx.scene.image.ImageView |
getImageView() |
double |
getImageWidth()
Gets the value of the property imageWidth.
|
java.util.List<javafx.beans.property.SimpleObjectProperty<?>> |
getProperties()
Gets any properties this component holds.
|
java.lang.String |
getSpriteProperties() |
double |
getTimeSinceLastFrame() |
javafx.geometry.Rectangle2D |
getViewport() |
int |
getZLevel()
Gets the z-layer order.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
imageHeightProperty() |
javafx.beans.property.SimpleObjectProperty<java.lang.String> |
imagePathProperty()
Get the imagePath property.
|
javafx.beans.property.SimpleObjectProperty<java.lang.Double> |
imageWidthProperty() |
void |
incrementFrameIndex() |
void |
reset() |
void |
resetTimeSinceLastFrame() |
void |
setFrameIndex(int frameIndex) |
void |
setImageHeight(double imageHeight)
Sets the value of the property imageHeight.
|
void |
setImagePath(java.lang.String imagePath)
Sets the value of the property imagePath.
|
void |
setImageWidth(double imageWidth)
Sets the value of the property imageWidth.
|
void |
setZLevel(int z)
Sets the z-layer order.
|
void |
updateTime(double dt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassForComponentMap, getProperty, getProperty, getPropertyNamesAndClasses, removeBindingsclone, serialize, serializeToStringpublic javafx.beans.property.SimpleObjectProperty<java.lang.String> imagePathProperty
getImagePath(),
setImagePath(String)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> imageWidthProperty
getImageWidth(),
setImageWidth(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> imageHeightProperty
getImageHeight(),
setImageHeight(double)public ImagePath()
public ImagePath(java.lang.String imagePath)
imagePath - starting valuepublic ImagePath(java.lang.String spriteName,
java.lang.String imagePath,
double imageWidth,
double imageHeight,
javafx.geometry.Rectangle2D viewport,
boolean isAnimated,
double frameDurationMillis,
double totalDurationMillis,
int maxFrameIndex)
imagePath - String path to imageimageWidth - width of imageimageHeight - height of imageimagePath - String path to spritesheetpublic javafx.beans.property.SimpleObjectProperty<java.lang.String> imagePathProperty()
getImagePath(),
setImagePath(String)public java.lang.String getImagePath()
public void setImagePath(java.lang.String imagePath)
public javafx.beans.property.SimpleObjectProperty<java.lang.Double> imageWidthProperty()
getImageWidth(),
setImageWidth(double)public javafx.beans.property.SimpleObjectProperty<java.lang.Double> imageHeightProperty()
getImageHeight(),
setImageHeight(double)public double getImageWidth()
public void setImageWidth(double imageWidth)
public double getImageHeight()
public void setImageHeight(double imageHeight)
public java.util.List<javafx.beans.property.SimpleObjectProperty<?>> getProperties()
IComponentgetProperties in interface IComponentpublic javafx.geometry.Rectangle2D getViewport()
public javafx.scene.image.ImageView getImageView()
public void setFrameIndex(int frameIndex)
public void updateTime(double dt)
public double getElapsedTime()
public double getTimeSinceLastFrame()
public double getFrameDuration()
public void resetTimeSinceLastFrame()
public void reset()
public double getDuration()
public int getFrameIndex()
public void incrementFrameIndex()
public void setZLevel(int z)
z - the z-layer order (1=>send to back, 1=>send to front)public int getZLevel()
public java.lang.String getSpriteProperties()