Lines Matching refs:node

149     JFIFMarkerSegment(Node node) throws IIOInvalidTreeException {
151 updateFromNativeNode(node, true);
222 IIOMetadataNode node = new IIOMetadataNode("app0JFIF");
223 node.setAttribute("majorVersion", Integer.toString(majorVersion));
224 node.setAttribute("minorVersion", Integer.toString(minorVersion));
225 node.setAttribute("resUnits", Integer.toString(resUnits));
226 node.setAttribute("Xdensity", Integer.toString(Xdensity));
227 node.setAttribute("Ydensity", Integer.toString(Ydensity));
228 node.setAttribute("thumbWidth", Integer.toString(thumbWidth));
229 node.setAttribute("thumbHeight", Integer.toString(thumbHeight));
232 node.appendChild(JFXXnode);
240 node.appendChild(iccSegment.getNativeNode());
243 return node;
253 void updateFromNativeNode(Node node, boolean fromScratch)
256 NamedNodeMap attrs = node.getAttributes();
258 int value = getAttributeValue(node, attrs, "majorVersion",
261 value = getAttributeValue(node, attrs, "minorVersion",
264 value = getAttributeValue(node, attrs, "resUnits", 0, 2, false);
266 value = getAttributeValue(node, attrs, "Xdensity", 1, 65535, false);
268 value = getAttributeValue(node, attrs, "Ydensity", 1, 65535, false);
270 value = getAttributeValue(node, attrs, "thumbWidth", 0, 255, false);
272 value = getAttributeValue(node, attrs, "thumbHeight", 0, 255, false);
275 if (node.hasChildNodes()) {
276 NodeList children = node.getChildNodes();
280 ("app0JFIF node cannot have > 2 children", node);
288 ("app0JFIF node cannot have > 1 JFXX node", node);
300 ("> 1 ICC APP2 Marker Segment not supported", node);
683 JFIFExtensionMarkerSegment(Node node) throws IIOInvalidTreeException {
685 NamedNodeMap attrs = node.getAttributes();
687 code = getAttributeValue(node,
695 ("invalid extensionCode attribute value", node);
701 if (node.getChildNodes().getLength() != 1) {
703 ("app0JFXX node must have exactly 1 child", node);
705 Node child = node.getFirstChild();
724 ("unrecognized app0JFXX child node", node);
780 IIOMetadataNode node = new IIOMetadataNode("app0JFXX");
781 node.setAttribute("extensionCode", Integer.toString(code));
782 node.appendChild(thumb.getNativeNode());
783 return node;
858 JFIFThumbUncompressed(Node node, String name)
864 NamedNodeMap attrs = node.getAttributes();
868 (name +" node cannot have > 2 attributes", node);
871 int value = getAttributeValue(node, attrs, "thumbWidth",
874 value = getAttributeValue(node, attrs, "thumbHeight",
919 IIOMetadataNode node = new IIOMetadataNode(name);
920 node.setAttribute("thumbWidth", Integer.toString(thumbWidth));
921 node.setAttribute("thumbHeight", Integer.toString(thumbHeight));
922 return node;
973 JFIFThumbRGB(Node node) throws IIOInvalidTreeException {
974 super(node, "JFIFthumbRGB");
1041 JFIFThumbPalette(Node node) throws IIOInvalidTreeException {
1042 super(node, "JFIFThumbPalette");
1145 JFIFThumbJPEG(Node node) throws IIOInvalidTreeException {
1146 if (node.getChildNodes().getLength() > 1) {
1148 ("JFIFThumbJPEG node must have 0 or 1 child", node);
1150 Node child = node.getFirstChild();
1155 ("JFIFThumbJPEG child must be a markerSequence node",
1156 node);
1197 // If there is no app0jfif node, the image is bad
1203 // remove the app0jfif node
1291 IIOMetadataNode node = new IIOMetadataNode("JFIFthumbJPEG");
1293 node.appendChild(thumbMetadata.getNativeTree());
1295 return node;
1437 ICCMarkerSegment(Node node) throws IIOInvalidTreeException {
1439 if (node instanceof IIOMetadataNode) {
1440 IIOMetadataNode ourNode = (IIOMetadataNode) node;
1545 IIOMetadataNode node = new IIOMetadataNode("app2ICC");
1547 node.setUserObject(ICC_Profile.getInstance(profile));
1549 return node;