// as external events have occured, check the state of box
if (texture != null) {
if (texture.isLoaded) { minwidth = min(texture.width, maxwidth); minheight = min(texture.height, maxheight); }
// as external events have occured, check the state of box
if (texture != null) {
if (texture.isLoaded) { minwidth = min(texture.width, maxwidth); minheight = min(texture.height, maxheight); }
case "height": put("maxheight", value); put("minheight", value); MARK_RESIZE;
case "maxwidth": setMaxWidth(value);
case "minwidth": CHECKSET_INT(minwidth); MARK_RESIZE;
case "height": put("maxheight", value); put("minheight", value); MARK_RESIZE;
case "maxwidth": setMaxWidth(value);
case "minwidth": CHECKSET_INT(minwidth); MARK_RESIZE;
case "colspan": CHECKSET_SHORT(colspan); MARK_REPACK_parent;
case "rowspan": CHECKSET_SHORT(rowspan); MARK_REPACK_parent;
case "rows": CHECKSET_SHORT(rows); if (rows==0){set(FIXED, COLS);if(cols==0)cols=1;} else set(FIXED, ROWS); MARK_REPACK;
case "colspan": CHECKSET_SHORT(colspan); MARK_REPACK_parent;
case "rowspan": CHECKSET_SHORT(rowspan); MARK_REPACK_parent;
case "rows": CHECKSET_SHORT(rows); if (rows==0){set(FIXED, COLS);if(cols==0)cols=1;} else set(FIXED, ROWS); MARK_REPACK;
int newfillcolor = stringToColor((String)value);
if (newfillcolor == fillcolor) return;
fillcolor = newfillcolor;
int newfillcolor = stringToColor((String)value);
if (newfillcolor == fillcolor) return;
fillcolor = newfillcolor;
- } else if(value instanceof Stream) {
- texture = Picture.load((Stream)value, this);
+ } else if(value instanceof JS) {
+ texture = Picture.load((JS)value, this);
- throw new JSExn("fill must be null, a String, or a stream");
+ throw new JSExn("fill must be null, a String, or a stream, not a " + value.getClass());