net.avh4.framework.uilayer.scene
Class SceneImage

java.lang.Object
  extended by net.avh4.framework.uilayer.scene.SceneElement
      extended by net.avh4.framework.uilayer.scene.SceneImage

public class SceneImage
extends SceneElement


Field Summary
protected  int clipHeight
           
protected  int clipWidth
           
protected  int clipX
           
protected  int clipY
           
protected  String image
           
 
Fields inherited from class net.avh4.framework.uilayer.scene.SceneElement
height, name, width, x, y
 
Constructor Summary
SceneImage(int x, int y, int width, int height, String imageName)
           
SceneImage(int x, int y, int width, int height, String imageName, int clipX, int clipY, int clipWidth, int clipHeight)
           
 
Method Summary
 void setClipPosition(int clipX, int clipY)
           
 void setPosition(int x, int y)
           
 
Methods inherited from class net.avh4.framework.uilayer.scene.SceneElement
getHeight, getName, getWidth, getX, getY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

protected final String image

clipX

protected int clipX

clipY

protected int clipY

clipWidth

protected final int clipWidth

clipHeight

protected final int clipHeight
Constructor Detail

SceneImage

public SceneImage(int x,
                  int y,
                  int width,
                  int height,
                  String imageName)
Parameters:
imageName - The image specified must exist on the classpath in the default package.

SceneImage

public SceneImage(int x,
                  int y,
                  int width,
                  int height,
                  String imageName,
                  int clipX,
                  int clipY,
                  int clipWidth,
                  int clipHeight)
Parameters:
imageName - The image specified must exist on the classpath in the default package.
Method Detail

setPosition

public void setPosition(int x,
                        int y)

setClipPosition

public void setClipPosition(int clipX,
                            int clipY)


Copyright © 2011. All Rights Reserved.