📄 standardmetadataformat.java
字号:
"Dimension", DATATYPE_FLOAT); // root -> Dimension -> HorizontalPosition addSingleAttributeElement("HorizontalPosition", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> VerticalPosition addSingleAttributeElement("VerticalPosition", "Dimension", DATATYPE_FLOAT); // root -> Dimension -> HorizontalPixelOffset addSingleAttributeElement("HorizontalPixelOffset", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> VerticalPixelOffset addSingleAttributeElement("VerticalPixelOffset", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> HorizontalScreenSize addSingleAttributeElement("HorizontalScreenSize", "Dimension", DATATYPE_INTEGER); // root -> Dimension -> VerticalScreenSize addSingleAttributeElement("VerticalScreenSize", "Dimension", DATATYPE_INTEGER); // root -> Document addElement("Document", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Document -> FormatVersion addElement("FormatVersion", "Document", CHILD_POLICY_EMPTY); addAttribute("FormatVersion", "value", DATATYPE_STRING, true, null); // root -> Document -> SubimageInterpretation addElement("SubimageInterpretation", "Document", CHILD_POLICY_EMPTY); values = new ArrayList(); values.add("Standalone"); values.add("SinglePage"); values.add("FullResolution"); values.add("ReducedResolution"); values.add("PyramidLayer"); values.add("Preview"); values.add("VolumeSlice"); values.add("ObjectView"); values.add("Panorama"); values.add("AnimationFrame"); values.add("TransparencyMask"); values.add("CompositingLayer"); values.add("SpectralSlice"); values.add("Unknown"); addAttribute("SubimageInterpretation", "value", DATATYPE_STRING, true, null, values); // root -> Document -> ImageCreationTime addElement("ImageCreationTime", "Document", CHILD_POLICY_EMPTY); addAttribute("ImageCreationTime", "year", DATATYPE_INTEGER, true, null); addAttribute("ImageCreationTime", "month", DATATYPE_INTEGER, true, null, "1", "12", true, true); addAttribute("ImageCreationTime", "day", DATATYPE_INTEGER, true, null, "1", "31", true, true); addAttribute("ImageCreationTime", "hour", DATATYPE_INTEGER, false, "0", "0", "23", true, true); addAttribute("ImageCreationTime", "minute", DATATYPE_INTEGER, false, "0", "0", "59", true, true); // second = 60 denotes leap second addAttribute("ImageCreationTime", "second", DATATYPE_INTEGER, false, "0", "0", "60", true, true); // root -> Document -> ImageModificationTime addElement("ImageModificationTime", "Document", CHILD_POLICY_EMPTY); addAttribute("ImageModificationTime", "year", DATATYPE_INTEGER, true, null); addAttribute("ImageModificationTime", "month", DATATYPE_INTEGER, true, null, "1", "12", true, true); addAttribute("ImageModificationTime", "day", DATATYPE_INTEGER, true, null, "1", "31", true, true); addAttribute("ImageModificationTime", "hour", DATATYPE_INTEGER, false, "0", "0", "23", true, true); addAttribute("ImageModificationTime", "minute", DATATYPE_INTEGER, false, "0", "0", "59", true, true); // second = 60 denotes leap second addAttribute("ImageModificationTime", "second", DATATYPE_INTEGER, false, "0", "0", "60", true, true); // root -> Text addElement("Text", standardMetadataFormatName, 0, Integer.MAX_VALUE); // root -> Text -> TextEntry addElement("TextEntry", "Text", CHILD_POLICY_EMPTY); addAttribute("TextEntry", "keyword", DATATYPE_STRING, false, null); addAttribute("TextEntry", "value", DATATYPE_STRING, true, null); addAttribute("TextEntry", "language", DATATYPE_STRING, false, null); addAttribute("TextEntry", "encoding", DATATYPE_STRING, false, null); values = new ArrayList(); values.add("none"); values.add("lzw"); values.add("zip"); values.add("bzip"); values.add("other"); addAttribute("TextEntry", "compression", DATATYPE_STRING, false, "none", values); // root -> Transparency addElement("Transparency", standardMetadataFormatName, CHILD_POLICY_SOME); // root -> Transparency -> Alpha addElement("Alpha", "Transparency", CHILD_POLICY_EMPTY); values = new ArrayList(); values.add("none"); values.add("premultiplied"); values.add("nonpremultiplied"); addAttribute("Alpha", "value", DATATYPE_STRING, false, "none", values); // root -> Transparency -> TransparentIndex addSingleAttributeElement("TransparentIndex", "Transparency", DATATYPE_INTEGER); // root -> Transparency -> TransparentColor addElement("TransparentColor", "Transparency", CHILD_POLICY_EMPTY); addAttribute("TransparentColor", "value", DATATYPE_INTEGER, true, 0, Integer.MAX_VALUE); // root -> Transparency -> TileTransparencies addElement("TileTransparencies", "Transparency", 0, Integer.MAX_VALUE); // root -> Transparency -> TileTransparencies -> TransparentTile addElement("TransparentTile", "TileTransparencies", CHILD_POLICY_EMPTY); addAttribute("TransparentTile", "x", DATATYPE_INTEGER, true, null); addAttribute("TransparentTile", "y", DATATYPE_INTEGER, true, null); // root -> Transparency -> TileOpacities addElement("TileOpacities", "Transparency", 0, Integer.MAX_VALUE); // root -> Transparency -> TileOpacities -> OpaqueTile addElement("OpaqueTile", "TileOpacities", CHILD_POLICY_EMPTY); addAttribute("OpaqueTile", "x", DATATYPE_INTEGER, true, null); addAttribute("OpaqueTile", "y", DATATYPE_INTEGER, true, null); } public boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType) { return true; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -