T
- The type of the pixel valuepublic class GenericValuePixel<T> extends ValuePixel<T>
Constructor and Description |
---|
GenericValuePixel(int x,
int y)
Default constructor
|
GenericValuePixel(int x,
int y,
T v)
Constructor that takes the location and value of the
pixel.
|
Modifier and Type | Method and Description |
---|---|
T |
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 GenericValuePixel(int x, int y)
x
- X-location of the pixely
- Y-location of the pixelpublic GenericValuePixel(int x, int y, T 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 T getValue()
ValuePixel
getValue
in class ValuePixel<T>