public class IntValuePixel extends ValuePixel<Integer>
Modifier and Type | Field and Description |
---|---|
int |
value
The value of the pixel
|
Constructor and Description |
---|
IntValuePixel(int x,
int y)
Default constructor
|
IntValuePixel(int x,
int y,
int v)
Constructor that takes the location and value of the
pixel.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getValue()
Get the value of this pixel.
|
String |
toString() |
asciiHeader, binaryHeader, clone, copy, copyFrom, equals, getDimensions, getOrdinate, getX, getY, hashCode, minus, readASCII, readBinary, setOrdinate, setX, setY, transform, transformInplace, translate, translate, writeASCII, writeBinary
public int value
public IntValuePixel(int x, int y)
x
- X-location of the pixely
- Y-location of the pixelpublic IntValuePixel(int x, int y, int v)
x
- X-location of the pixely
- Y-location of the pixelv
- value of the pixelpublic String toString()
toString
in class Pixel
Object.toString()
public Integer getValue()
ValuePixel
getValue
in class ValuePixel<Integer>