playn.flash
Class FlashImageLayer

java.lang.Object
  extended by playn.core.AbstractLayer
      extended by playn.flash.FlashLayer
          extended by playn.flash.FlashImageLayer
All Implemented Interfaces:
ImageLayer, Layer, Layer.HasSize

public class FlashImageLayer
extends FlashLayer
implements ImageLayer


Nested Class Summary
 
Nested classes/interfaces inherited from class playn.core.AbstractLayer
AbstractLayer.Flag
 
Nested classes/interfaces inherited from interface playn.core.Layer
Layer.HasSize, Layer.Util
 
Field Summary
 
Fields inherited from class playn.flash.FlashLayer
displayObject
 
Fields inherited from class playn.core.AbstractLayer
alpha, depth, flags, originX, originY, transform
 
Constructor Summary
FlashImageLayer()
           
FlashImageLayer(Image image)
           
 
Method Summary
 void clearHeight()
           
 void clearSourceRect()
           
 void clearWidth()
           
 float height()
           
 Image image()
           
 float scaledHeight()
           
 float scaledWidth()
           
 void setHeight(float height)
           
 void setImage(Image image)
           
 void setRepeatX(boolean repeat)
           
 void setRepeatY(boolean repeat)
           
 void setSize(float width, float height)
           
 void setSourceRect(float sx, float sy, float sw, float sh)
           
 void setWidth(float width)
           
 void update()
           
 float width()
           
 
Methods inherited from class playn.flash.FlashLayer
setVisible, updateChildren
 
Methods inherited from class playn.core.AbstractLayer
alpha, createTransform, depth, destroy, destroyed, isSet, onAdd, onRemove, originX, originY, parent, setAlpha, setDepth, setFlag, setOrigin, setParent, setRotation, setScale, setScale, setTranslation, transform, visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface playn.core.Layer
alpha, depth, destroy, destroyed, originX, originY, parent, setAlpha, setDepth, setOrigin, setRotation, setScale, setScale, setTranslation, setVisible, transform, visible
 

Constructor Detail

FlashImageLayer

public FlashImageLayer(Image image)
Parameters:
image -

FlashImageLayer

public FlashImageLayer()
Method Detail

clearHeight

public void clearHeight()
Specified by:
clearHeight in interface ImageLayer

clearSourceRect

public void clearSourceRect()
Specified by:
clearSourceRect in interface ImageLayer

clearWidth

public void clearWidth()
Specified by:
clearWidth in interface ImageLayer

image

public Image image()
Specified by:
image in interface ImageLayer

setHeight

public void setHeight(float height)
Specified by:
setHeight in interface ImageLayer

setImage

public void setImage(Image image)
Specified by:
setImage in interface ImageLayer

setRepeatX

public void setRepeatX(boolean repeat)
Specified by:
setRepeatX in interface ImageLayer

setRepeatY

public void setRepeatY(boolean repeat)
Specified by:
setRepeatY in interface ImageLayer

setSourceRect

public void setSourceRect(float sx,
                          float sy,
                          float sw,
                          float sh)
Specified by:
setSourceRect in interface ImageLayer

setWidth

public void setWidth(float width)
Specified by:
setWidth in interface ImageLayer

setSize

public void setSize(float width,
                    float height)
Specified by:
setSize in interface ImageLayer

width

public float width()
Specified by:
width in interface Layer.HasSize

height

public float height()
Specified by:
height in interface Layer.HasSize

scaledWidth

public float scaledWidth()
Specified by:
scaledWidth in interface Layer.HasSize

scaledHeight

public float scaledHeight()
Specified by:
scaledHeight in interface Layer.HasSize

update

public void update()
Overrides:
update in class FlashLayer


Copyright © 2011. All Rights Reserved.