public virtual void setMainCompDefDecompType(int n, int dec, int lev)
{
if (dec < 0 && lev < 0)
{
throw new System.ArgumentException();
}
// Set spec type and decomp
specValType[n] = DEC_SPEC_COMP_DEF;
if (compMainDefDecompType == null)
{
compMainDefDecompType = new int[specValType.Length];
compMainDefLevels = new int[specValType.Length];
}
compMainDefDecompType[n] = (dec >= 0)?dec:mainDefDecompType;
compMainDefLevels[n] = (lev >= 0)?lev:mainDefLevels;
// For the moment disable it since other parts of JJ2000 do not
// support this
throw new NotImplementedException("Currently, in JJ2000, all components " + "and tiles must have the same " + "decomposition type and number of " + "levels");
}