Class HCompressorOption
- java.lang.Object
-
- nom.tam.fits.compression.algorithm.hcompress.HCompressorOption
-
- All Implemented Interfaces:
java.lang.Cloneable
,ICompressOption
public class HCompressorOption extends java.lang.Object implements ICompressOption
-
-
Field Summary
Fields Modifier and Type Field Description private ICompressParameters
parameters
circular dependency, has to be cut.private int
scale
private boolean
smooth
private int
tileHeight
private int
tileWidth
-
Constructor Summary
Constructors Constructor Description HCompressorOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HCompressorOption
copy()
ICompressParameters
getCompressionParameters()
int
getScale()
int
getTileHeight()
int
getTileWidth()
boolean
isLossyCompression()
boolean
isSmooth()
private HCompressorOption
setOriginal(HCompressorOption hCompressorOption)
void
setParameters(ICompressParameters parameters)
set the parameters that must be synchronized with the hdu meta data.HCompressorOption
setScale(int value)
HCompressorOption
setSmooth(boolean value)
HCompressorOption
setTileHeight(int value)
set the tile height in pixel.HCompressorOption
setTileWidth(int value)
set the tile width.<T> T
unwrap(java.lang.Class<T> clazz)
un wrap a specific implementation detail.
-
-
-
Field Detail
-
parameters
private ICompressParameters parameters
circular dependency, has to be cut.
-
scale
private int scale
-
smooth
private boolean smooth
-
tileHeight
private int tileHeight
-
tileWidth
private int tileWidth
-
-
Method Detail
-
copy
public HCompressorOption copy()
- Specified by:
copy
in interfaceICompressOption
- Returns:
- copy the option (normally the option from with the copy happened is saved as original).
-
getCompressionParameters
public ICompressParameters getCompressionParameters()
- Specified by:
getCompressionParameters
in interfaceICompressOption
- Returns:
- the parameters that must be synchronized with the hdu meta data.
-
getScale
public int getScale()
-
getTileHeight
public int getTileHeight()
-
getTileWidth
public int getTileWidth()
-
isLossyCompression
public boolean isLossyCompression()
- Specified by:
isLossyCompression
in interfaceICompressOption
- Returns:
- true if the compression done with this specified options uses approximations. That means if the reconstruction of the data is excact the return should be false.
-
isSmooth
public boolean isSmooth()
-
setParameters
public void setParameters(ICompressParameters parameters)
Description copied from interface:ICompressOption
set the parameters that must be synchronized with the hdu meta data.- Specified by:
setParameters
in interfaceICompressOption
- Parameters:
parameters
- the parameters to synchronized
-
setScale
public HCompressorOption setScale(int value)
-
setSmooth
public HCompressorOption setSmooth(boolean value)
-
setTileHeight
public HCompressorOption setTileHeight(int value)
Description copied from interface:ICompressOption
set the tile height in pixel.- Specified by:
setTileHeight
in interfaceICompressOption
- Parameters:
value
- the number of pixel.- Returns:
- this (builder pattern)
-
setTileWidth
public HCompressorOption setTileWidth(int value)
Description copied from interface:ICompressOption
set the tile width.- Specified by:
setTileWidth
in interfaceICompressOption
- Parameters:
value
- the number of pixel.- Returns:
- this (builder pattern)
-
unwrap
public <T> T unwrap(java.lang.Class<T> clazz)
Description copied from interface:ICompressOption
un wrap a specific implementation detail.- Specified by:
unwrap
in interfaceICompressOption
- Type Parameters:
T
- the class to unrwap- Parameters:
clazz
- the type to unwrap- Returns:
- the implementation detail or null if no such detail is avalable.
-
setOriginal
private HCompressorOption setOriginal(HCompressorOption hCompressorOption)
-
-