public class IntegerSpec extends ModuleSpec
ModuleSpec
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_INT
The largest value of type int
|
compDef, def, nComp, nTiles, SPEC_COMP_DEF, SPEC_DEF, SPEC_TILE_COMP, SPEC_TILE_DEF, SPEC_TYPE_COMP, SPEC_TYPE_TILE, SPEC_TYPE_TILE_COMP, specified, specType, specValType, tileCompVal, tileDef
Constructor and Description |
---|
IntegerSpec(int nt,
int nc,
byte type)
Constructs a new 'IntegerSpec' for the specified number of
tiles and components and with allowed type of
specifications.
|
IntegerSpec(int nt,
int nc,
byte type,
J2KImageWriteParamJava wp,
String values,
String defaultValue)
Constructs a new 'IntegerSpec' for the specified number of
tiles and components, the allowed specifications type
instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getMax()
Get the maximum value of each tile-component
|
int |
getMaxInComp(int c)
Get the maximum value of each tile for specified component
|
int |
getMaxInTile(int t)
Get the maximum value of each component in specified tile
|
int |
getMin()
Get the minimum value of each tile-component
|
int |
getMinInComp(int c)
Get the minimum value of each tile for specified component
|
int |
getMinInTile(int t)
Get the minimum value of each component in specified tile
|
clone, getCompDef, getCopy, getDefault, getSpec, getSpecValType, getTileCompVal, getTileDef, isCompSpecified, isTileCompSpecified, isTileSpecified, parseIdx, rotate90, setCompDef, setDefault, setTileCompVal, setTileDef
protected static int MAX_INT
public IntegerSpec(int nt, int nc, byte type)
nt
- The number of tilesnc
- The number of componentstype
- The type of allowed specificationspublic IntegerSpec(int nt, int nc, byte type, J2KImageWriteParamJava wp, String values, String defaultValue)
nt
- The number of tilesnc
- The number of componentstype
- The allowed specifications typeoptName
- The name of the option to processpublic int getMax()
public int getMin()
public int getMaxInComp(int c)
c
- The component indexpublic int getMinInComp(int c)
c
- The component indexpublic int getMaxInTile(int t)
t
- The tile indexpublic int getMinInTile(int t)
t
- The tile indexCopyright © 2014. All rights reserved.