298299300301302303304305306307308
} else prop = new LengthProperty(length); break; case TOK_COLORSPEC: prop = new ColorTypeProperty(new ColorType(currentTokenValue)); break; case TOK_FUNCTION_LPAR: { Function function = (Function)functionTable.get(currentTokenValue);
280281282283284285286287288289290
424344454647484950
if (colorVal < 0.0 || colorVal > 255.0) { throw new PropertyException("Arguments to rgb() must normalize to the range 0 to 1"); } cfvals[i] = colorVal; } return new ColorTypeProperty(new ColorType(cfvals[0], cfvals[1], cfvals[2])); }
848586878889909192
323324325326327328329330331332333
82838485868788899091
if (colorVal < 0.0 || colorVal > 255.0) { throw new PropertyException("Arguments to rgb() must normalize to the range 0 to 1"); } cfvals[i] = colorVal; } return new ColorTypeProperty( new ColorType(cfvals[0], cfvals[1], cfvals[2])); }
318319320321322323324325326327328
300301302303304305306307308309310
294295296297298299300301302303304
prop = new FixedLength(numPart.doubleValue(), unitPart); } break; case TOK_COLORSPEC: prop = new ColorTypeProperty(currentTokenValue); break; case TOK_FUNCTION_LPAR: Function function = (Function)FUNCTION_TABLE.get(currentTokenValue); if (function == null) {