(SVGUtilities.convertTransform(e, SVG_TRANSFORM_ATTRIBUTE, s));
}
// 'visibility'
imageNode.setVisible(CSSUtilities.convertVisibility(e));
RasterImageNode node = new RasterImageNode();
List dims = new LinkedList();
List uris = new LinkedList();
addInfo(e, dims, uris);
for (Node n = e.getFirstChild(); n != null; n = n.getNextSibling()) {
if (n.getNodeType() != Node.ELEMENT_NODE)
continue;
Element se = (Element)n;
if (!(se.getNamespaceURI().equals(BATIK_EXT_NAMESPACE_URI)) ||
!(se.getLocalName().equals(BATIK_EXT_SUB_IMAGE_TAG)))
continue;
addInfo(se, dims, uris);
}
Dimension [] dary = new Dimension[uris.size()];
ParsedURL [] uary = new ParsedURL[uris.size()];
Iterator di = dims.iterator();
Iterator ui = uris.iterator();
int n=0;
while (di.hasNext()) {
int i;
Dimension d = (Dimension)di.next();
for (i=0; i<n; i++) {
if (d.width > dary[i].width) break;
}
for (int j=n; j>i; j--) {
dary[j] = dary[j-1];
uary[j] = uary[j-1];
}
dary[i] = d;
uary[i] = (ParsedURL)ui.next();
n++;
}
Filter f = new MultiResRable(uary, dary);
Rectangle2D imgB, b;
imgB = f.getBounds2D();
b = getImageBounds(ctx, e);
node.setImage(f);
node.setImageBounds(imgB);
float []vb = new float[4];
vb[0] = 0;
vb[1] = 0;
vb[2] = (float)imgB.getWidth();