playn.java
Class JavaImageRegion

java.lang.Object
  extended by playn.java.JavaImageRegion
All Implemented Interfaces:
Image, Image.Region

public class JavaImageRegion
extends Object
implements Image.Region


Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.core.Image
Image.Region
 
Field Summary
protected  BufferedImage img
           
 
Method Summary
 void addCallback(ResourceCallback<? super Image> callback)
           
 int height()
           
 boolean isReady()
           
 Image parent()
           
 Image.Region subImage(float x, float y, float width, float height)
           
 Pattern toPattern()
           
 int width()
           
 float x()
           
 float y()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface playn.core.Image
toPattern
 

Field Detail

img

protected BufferedImage img
Method Detail

x

public float x()
Specified by:
x in interface Image.Region

y

public float y()
Specified by:
y in interface Image.Region

width

public int width()
Specified by:
width in interface Image

height

public int height()
Specified by:
height in interface Image

parent

public Image parent()
Specified by:
parent in interface Image.Region

isReady

public boolean isReady()
Specified by:
isReady in interface Image

addCallback

public void addCallback(ResourceCallback<? super Image> callback)
Specified by:
addCallback in interface Image

subImage

public Image.Region subImage(float x,
                             float y,
                             float width,
                             float height)
Specified by:
subImage in interface Image

toPattern

public Pattern toPattern()
Specified by:
toPattern in interface Image


Copyright © 2012. All Rights Reserved.