protected class Concentration.ImageInstance extends Object
ImageIO.read(InputStream)
Modifier and Type | Field and Description |
---|---|
protected URL |
descLocation
URL indicating the location of the web page describing
the image on the tile.
|
protected int |
firstLocation
Index in
Concentration.tileList of first location of image. |
protected URL |
imageLocation
URL indicating the location of the image for the
tile.
|
protected BufferedImage |
instance
Image to be displayed as part of game.
|
protected int |
secondLocation
Index in
Concentration.tileList of second location of image. |
Constructor and Description |
---|
Concentration.ImageInstance(BufferedImage image) |
Concentration.ImageInstance(File source) |
Concentration.ImageInstance(int width,
int height,
File source)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
URL |
getDescLocation() |
int |
getFirstLocation()
Getter for firstLocation.
|
BufferedImage |
getImage()
Getter for image
|
URL |
getImageLocation() |
int |
getSecondLocation()
Getter for secondLocation
|
void |
setDescLocation(URL value) |
void |
setFirstLocation(int value)
Setter for firstLocation.
|
void |
setImage(BufferedImage value)
Setter for image.
|
void |
setImageLocation(URL value) |
void |
setSecondLocation(int value)
Setter for secondLocation
|
protected BufferedImage instance
protected URL imageLocation
getImageLocation()
,
setImageLocation(URL)
protected URL descLocation
getDescLocation()
,
setDescLocation(URL)
protected int firstLocation
Concentration.tileList
of first location of image.protected int secondLocation
Concentration.tileList
of second location of image.public Concentration.ImageInstance(File source)
public Concentration.ImageInstance(BufferedImage image)
public Concentration.ImageInstance(int width, int height, File source)
width
- Width of image in pixelsheight
- Height of image in pixelssource
- Source of imagepublic BufferedImage getImage()
public void setImage(BufferedImage value)
value
- Image to be used.public URL getImageLocation()
public void setImageLocation(URL value)
public URL getDescLocation()
public void setDescLocation(URL value)
public int getFirstLocation()
public void setFirstLocation(int value)
value
- Index in tileList to be used for first location of image.public int getSecondLocation()
public void setSecondLocation(int value)
value
- Index in tileList to be used for second location of image