public class ImageWrapper<I>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
height
Image height in pixels.
|
private I |
image
Contained native image.
|
private static java.util.concurrent.atomic.AtomicInteger |
IMAGES_SEQUENCE
Represents a images sequence that holds the next free sequence id.
|
private int |
uniqueId
The image unique id.
|
private int |
width
Image width in pixels.
|
Constructor and Description |
---|
ImageWrapper(I image,
int height,
int width)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Obtain the height of the image in pixels.
|
I |
getImage()
Obtain the contained native image instance.
|
private static int |
getImageUniqueId()
Returns the next unique image id within this class loader.
|
int |
getUniqueId()
Returns the image unique id.
|
int |
getWidth()
Obtain the width of the image in pixels.
|
private static final java.util.concurrent.atomic.AtomicInteger IMAGES_SEQUENCE
private final int uniqueId
private I image
private int height
private int width
public ImageWrapper(I image, int height, int width)
image
- The contained native image.height
- Image height in pixels.width
- Image width in pixels.private static final int getImageUniqueId()
public I getImage()
public int getHeight()
public int getWidth()
public int getUniqueId()