|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.image.IImageFormat
public abstract class IImageFormat
An abstract class for image format (Used by the RawImageViewer).
| Constructor Summary | |
|---|---|
IImageFormat()
|
|
| Method Summary | |
|---|---|
abstract void |
computeFitting()
Compute the fitting bounds (Monochrome only) |
int |
getHeight()
Returns the height of the image depending on the format. |
abstract int |
getHistogramWidth()
Returns the histogram width. |
abstract java.lang.String |
getName()
Returns the format name. |
abstract int |
getRGB(boolean negative,
int[] colormap16,
int x,
int y)
Returns the pixel at the specifed pos |
abstract double |
getValue(int x,
int y)
Gets the pixel value as double (Used for table and profile display). |
abstract java.lang.String |
getValueStr(int x,
int y)
Gets the pixel value as string (Used for pixel info display). |
abstract int |
getWidth()
Returns the width of the image depending on the format. |
void |
initDefault(JGradientViewer gradTool)
Init static variable. |
abstract boolean |
isColorFormat()
Returns true if this format is a color format, false otherwise. |
boolean |
isNull()
Returns true if the image has a null size, false otherwise |
abstract void |
setData(byte[] rawData)
Sets and decode the data. |
boolean |
setFitting(boolean bestFit,
double min,
double max)
Set manual fitting parameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IImageFormat()
| Method Detail |
|---|
public abstract void setData(byte[] rawData)
throws java.io.IOException
rawData - Pointer to image data
java.io.IOExceptionpublic void initDefault(JGradientViewer gradTool)
gradTool - Gradient viewerpublic boolean isNull()
public boolean setFitting(boolean bestFit,
double min,
double max)
bestFit - Enable automatic fittingmin - minumun fitting value (0..100%)max - maximum fitting value (0..100%)public abstract int getWidth()
public int getHeight()
public abstract boolean isColorFormat()
public abstract java.lang.String getName()
public abstract double getValue(int x,
int y)
x - horizontal coordinatey - vertical coordinate
public abstract java.lang.String getValueStr(int x,
int y)
x - horizontal coordinatey - vertical coordinatepublic abstract int getHistogramWidth()
public abstract void computeFitting()
public abstract int getRGB(boolean negative,
int[] colormap16,
int x,
int y)
x - horizontal coordinatey - vertical coordinatenegative - Negative flagcolormap16 - 16Bit colormap (Monochrome only)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||