From 11d563570e995ee11f105c4206c3e1a7c84a0d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Tue, 3 Nov 2020 14:03:22 +0100 Subject: [PATCH] fix gitignore, remove chart io vector package --- chart/build.gradle | 3 + chart/src/main/java/module-info.java | 1 + .../java/org/xbib/graphics/chart/Chart.java | 12 +- .../graphics/chart/io/vector/Document.java | 13 - .../chart/io/vector/EPSGraphics2D.java | 42 - .../chart/io/vector/GraphicsState.java | 275 --- .../chart/io/vector/PDFGraphics2D.java | 38 - .../chart/io/vector/ProcessingPipeline.java | 53 - .../graphics/chart/io/vector/Processor.java | 9 - .../chart/io/vector/SVGGraphics2D.java | 36 - .../chart/io/vector/SizedDocument.java | 19 - .../chart/io/vector/VectorGraphics2D.java | 894 --------- .../graphics/chart/io/vector/VectorHints.java | 83 - .../chart/io/vector/eps/EPSDocument.java | 476 ----- .../chart/io/vector/eps/EPSProcessor.java | 23 - .../vector/intermediate/CommandHandler.java | 8 - .../commands/AffineTransformCommand.java | 10 - .../vector/intermediate/commands/Command.java | 31 - .../intermediate/commands/CreateCommand.java | 10 - .../intermediate/commands/DisposeCommand.java | 10 - .../commands/DrawImageCommand.java | 58 - .../commands/DrawShapeCommand.java | 12 - .../commands/DrawStringCommand.java | 30 - .../commands/FillShapeCommand.java | 12 - .../vector/intermediate/commands/Group.java | 16 - .../intermediate/commands/RotateCommand.java | 38 - .../intermediate/commands/ScaleCommand.java | 31 - .../commands/SetBackgroundCommand.java | 10 - .../intermediate/commands/SetClipCommand.java | 10 - .../commands/SetColorCommand.java | 10 - .../commands/SetCompositeCommand.java | 10 - .../intermediate/commands/SetFontCommand.java | 10 - .../intermediate/commands/SetHintCommand.java | 24 - .../commands/SetPaintCommand.java | 10 - .../commands/SetStrokeCommand.java | 10 - .../commands/SetTransformCommand.java | 10 - .../commands/SetXORModeCommand.java | 10 - .../intermediate/commands/ShearCommand.java | 31 - .../intermediate/commands/StateCommand.java | 8 - .../commands/TransformCommand.java | 17 - .../commands/TranslateCommand.java | 31 - .../AbsoluteToRelativeTransformsFilter.java | 63 - .../FillPaintedShapeAsImageFilter.java | 70 - .../vector/intermediate/filters/Filter.java | 48 - .../intermediate/filters/GroupingFilter.java | 47 - .../intermediate/filters/OptimizeFilter.java | 57 - .../filters/StateChangeGroupingFilter.java | 18 - .../chart/io/vector/pdf/GeneratedPayload.java | 30 - .../chart/io/vector/pdf/PDFDocument.java | 647 ------- .../chart/io/vector/pdf/PDFObject.java | 22 - .../chart/io/vector/pdf/PDFProcessor.java | 25 - .../graphics/chart/io/vector/pdf/Payload.java | 50 - .../chart/io/vector/pdf/Resources.java | 99 - .../chart/io/vector/pdf/SizePayload.java | 28 - .../chart/io/vector/svg/SVGDocument.java | 552 ------ .../chart/io/vector/svg/SVGProcessor.java | 21 - .../io/vector/util/ASCII85EncodeStream.java | 102 - .../chart/io/vector/util/AlphaToMaskOp.java | 101 - .../io/vector/util/Base64EncodeStream.java | 83 - .../chart/io/vector/util/DataUtils.java | 240 --- .../io/vector/util/FlateEncodeStream.java | 11 - .../io/vector/util/FormattingWriter.java | 66 - .../chart/io/vector/util/GraphicsUtils.java | 411 ---- .../chart/io/vector/util/ImageDataStream.java | 131 -- .../io/vector/util/LineWrapOutputStream.java | 37 - .../chart/io/vector/util/PageSize.java | 48 - .../chart/io/vector/GraphicsStateTest.java | 63 - .../graphics/chart/io/vector/TestUtils.java | 267 --- .../chart/io/vector/TestUtilsTest.java | 191 -- .../chart/io/vector/VectorGraphics2DTest.java | 63 - .../chart/io/vector/eps/EPSProcessorTest.java | 70 - ...bsoluteToRelativeTransformsFilterTest.java | 91 - .../FillPaintedShapeAsImageFilterTest.java | 54 - .../intermediate/filters/FilterTest.java | 98 - .../filters/GroupingFilterTest.java | 56 - .../chart/io/vector/pdf/PDFProcessorTest.java | 114 -- .../chart/io/vector/svg/SVGProcessorTest.java | 70 - .../vector/util/ASCII85EncodeStreamTest.java | 53 - .../vector/util/Base64EncodeStreamTest.java | 63 - .../chart/io/vector/util/DataUtilsTest.java | 28 - .../io/vector/util/GraphicsUtilsTest.java | 142 -- .../chart/io/vector/visual/AbstractTest.java | 170 -- .../chart/io/vector/visual/CharacterTest.java | 40 - .../chart/io/vector/visual/ClippingTest.java | 33 - .../chart/io/vector/visual/ColorTest.java | 28 - .../chart/io/vector/visual/EmptyFileTest.java | 10 - .../chart/io/vector/visual/FontTest.java | 47 - .../chart/io/vector/visual/ImageTest.java | 29 - .../chart/io/vector/visual/PaintTest.java | 37 - .../chart/io/vector/visual/ShapesTest.java | 127 -- .../chart/io/vector/visual/StrokeTest.java | 90 - .../io/vector/visual/SwingExportTest.java | 24 - .../chart/io/vector/visual/TestBrowser.java | 263 --- .../chart/io/vector/visual/TransformTest.java | 59 - .../build/docs/javadoc/allclasses-index.html | 372 ---- .../build/docs/javadoc/allpackages-index.html | 120 -- .../build/docs/javadoc/constant-values.html | 111 -- .../build/docs/javadoc/deprecated-list.html | 80 - io-vector/build/docs/javadoc/element-list | 8 - io-vector/build/docs/javadoc/help-doc.html | 185 -- io-vector/build/docs/javadoc/index-all.html | 1081 ----------- io-vector/build/docs/javadoc/index.html | 25 - .../docs/javadoc/jquery-ui.overrides.css | 34 - .../build/docs/javadoc/member-search-index.js | 1 - .../build/docs/javadoc/module-search-index.js | 1 - .../module-summary.html | 138 -- .../org/xbib/graphics/io/vector/Command.html | 252 --- .../graphics/io/vector/GraphicsState.html | 656 ------- .../org/xbib/graphics/io/vector/PageSize.html | 406 ---- .../xbib/graphics/io/vector/Processor.html | 185 -- .../graphics/io/vector/ProcessorResult.html | 215 --- .../graphics/io/vector/VectorGraphics2D.html | 1664 ----------------- .../io/vector/VectorGraphicsFormat.html | 291 --- .../commands/AffineTransformCommand.html | 188 -- .../io/vector/commands/CreateCommand.html | 184 -- .../io/vector/commands/DisposeCommand.html | 184 -- .../io/vector/commands/DrawImageCommand.html | 305 --- .../io/vector/commands/DrawShapeCommand.html | 182 -- .../io/vector/commands/DrawStringCommand.html | 253 --- .../io/vector/commands/FillShapeCommand.html | 182 -- .../graphics/io/vector/commands/Group.html | 223 --- .../io/vector/commands/RotateCommand.html | 268 --- .../io/vector/commands/ScaleCommand.html | 255 --- .../vector/commands/SetBackgroundCommand.html | 184 -- .../io/vector/commands/SetClipCommand.html | 184 -- .../io/vector/commands/SetColorCommand.html | 184 -- .../vector/commands/SetCompositeCommand.html | 184 -- .../io/vector/commands/SetFontCommand.html | 184 -- .../io/vector/commands/SetHintCommand.html | 242 --- .../io/vector/commands/SetPaintCommand.html | 184 -- .../io/vector/commands/SetStrokeCommand.html | 184 -- .../vector/commands/SetTransformCommand.html | 184 -- .../io/vector/commands/SetXORModeCommand.html | 184 -- .../io/vector/commands/ShearCommand.html | 255 --- .../io/vector/commands/StateCommand.html | 186 -- .../io/vector/commands/TransformCommand.html | 227 --- .../io/vector/commands/TranslateCommand.html | 255 --- .../io/vector/commands/package-summary.html | 195 -- .../io/vector/commands/package-tree.html | 126 -- .../graphics/io/vector/eps/EPSGraphics2D.html | 217 --- .../graphics/io/vector/eps/EPSProcessor.html | 232 --- .../io/vector/eps/EPSProcessorResult.html | 263 --- .../io/vector/eps/package-summary.html | 114 -- .../graphics/io/vector/eps/package-tree.html | 107 -- .../AbsoluteToRelativeTransformsFilter.html | 254 --- .../FillPaintedShapeAsImageFilter.html | 254 --- .../graphics/io/vector/filters/Filter.html | 293 --- .../io/vector/filters/GroupingFilter.html | 286 --- .../io/vector/filters/OptimizeFilter.html | 271 --- .../filters/StateChangeGroupingFilter.html | 242 --- .../io/vector/filters/package-summary.html | 123 -- .../io/vector/filters/package-tree.html | 104 -- .../graphics/io/vector/package-summary.html | 159 -- .../xbib/graphics/io/vector/package-tree.html | 125 -- .../io/vector/pdf/GeneratedPayload.html | 277 --- .../graphics/io/vector/pdf/PDFGraphics2D.html | 217 --- .../graphics/io/vector/pdf/PDFObject.html | 259 --- .../graphics/io/vector/pdf/PDFProcessor.html | 242 --- .../io/vector/pdf/PDFProcessorResult.html | 298 --- .../xbib/graphics/io/vector/pdf/Payload.html | 309 --- .../graphics/io/vector/pdf/Resources.html | 253 --- .../graphics/io/vector/pdf/SizePayload.html | 248 --- .../io/vector/pdf/package-summary.html | 134 -- .../graphics/io/vector/pdf/package-tree.html | 125 -- .../graphics/io/vector/svg/SVGGraphics2D.html | 217 --- .../graphics/io/vector/svg/SVGProcessor.html | 229 --- .../io/vector/svg/SVGProcessorResult.html | 275 --- .../io/vector/svg/package-summary.html | 114 -- .../graphics/io/vector/svg/package-tree.html | 107 -- .../io/vector/util/ASCII85EncodeStream.html | 284 --- .../io/vector/util/AlphaToMaskOp.html | 314 ---- .../io/vector/util/Base64EncodeStream.html | 270 --- .../graphics/io/vector/util/DataUtils.html | 497 ----- .../io/vector/util/FlateEncodeStream.html | 208 --- .../io/vector/util/FormattingWriter.html | 363 ---- .../io/vector/util/GraphicsUtils.html | 375 ---- .../util/ImageDataStream.Interleaving.html | 305 --- .../io/vector/util/ImageDataStream.html | 283 --- .../io/vector/util/LineWrapOutputStream.html | 301 --- .../io/vector/util/VectorHints.Key.html | 259 --- .../io/vector/util/VectorHints.Value.html | 263 --- .../graphics/io/vector/util/VectorHints.html | 314 ---- .../io/vector/util/package-summary.html | 171 -- .../graphics/io/vector/util/package-tree.html | 138 -- .../build/docs/javadoc/overview-tree.html | 235 --- .../docs/javadoc/package-search-index.js | 1 - .../build/docs/javadoc/resources/glass.png | Bin 499 -> 0 bytes io-vector/build/docs/javadoc/resources/x.png | Bin 394 -> 0 bytes .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 335 -> 0 bytes .../images/ui-bg_glass_65_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 332 -> 0 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 280 -> 0 bytes .../images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes .../images/ui-icons_2e83ff_256x240.png | Bin 4549 -> 0 bytes .../images/ui-icons_454545_256x240.png | Bin 6992 -> 0 bytes .../images/ui-icons_888888_256x240.png | Bin 6999 -> 0 bytes .../images/ui-icons_cd0a0a_256x240.png | Bin 4549 -> 0 bytes .../javadoc/script-dir/jquery-3.5.1.min.js | 2 - .../docs/javadoc/script-dir/jquery-ui.min.css | 7 - .../docs/javadoc/script-dir/jquery-ui.min.js | 6 - .../script-dir/jquery-ui.structure.min.css | 5 - io-vector/build/docs/javadoc/script.js | 103 - io-vector/build/docs/javadoc/search.js | 378 ---- io-vector/build/docs/javadoc/stylesheet.css | 792 -------- .../build/docs/javadoc/tag-search-index.js | 1 - .../build/docs/javadoc/type-search-index.js | 1 - .../build/libs/io-vector-3.0.0-javadoc.jar | Bin 261 -> 0 bytes .../build/libs/io-vector-3.0.0-sources.jar | Bin 60307 -> 0 bytes io-vector/build/libs/io-vector-3.0.0.jar | Bin 109577 -> 108221 bytes ...bsoluteToRelativeTransformsFilterTest.html | 106 -- ...ers.FillPaintedShapeAsImageFilterTest.html | 101 - ...g.xbib.graphics.io.filters.FilterTest.html | 106 -- ...raphics.io.filters.GroupingFilterTest.html | 96 - ....graphics.io.vector.GraphicsStateTest.html | 106 -- ...xbib.graphics.io.vector.TestUtilsTest.html | 131 -- ...aphics.io.vector.VectorGraphics2DTest.html | 106 -- ...aphics.io.vector.eps.EPSProcessorTest.html | 96 - ...aphics.io.vector.pdf.PDFProcessorTest.html | 96 - ...aphics.io.vector.svg.SVGProcessorTest.html | 106 -- ...o.vector.util.ASCII85EncodeStreamTest.html | 106 -- ...io.vector.util.Base64EncodeStreamTest.html | 106 -- ...graphics.io.vector.util.DataUtilsTest.html | 106 -- ...hics.io.vector.util.GraphicsUtilsTest.html | 111 -- .../reports/tests/test/css/base-style.css | 179 -- .../build/reports/tests/test/css/style.css | 84 - io-vector/build/reports/tests/test/index.html | 313 ---- .../build/reports/tests/test/js/report.js | 194 -- .../org.xbib.graphics.io.filters.html | 133 -- .../org.xbib.graphics.io.vector.eps.html | 103 - .../packages/org.xbib.graphics.io.vector.html | 123 -- .../org.xbib.graphics.io.vector.pdf.html | 103 - .../org.xbib.graphics.io.vector.svg.html | 103 - .../org.xbib.graphics.io.vector.util.html | 133 -- ...AbsoluteToRelativeTransformsFilterTest.xml | 9 - ...ters.FillPaintedShapeAsImageFilterTest.xml | 8 - ...rg.xbib.graphics.io.filters.FilterTest.xml | 9 - ...graphics.io.filters.GroupingFilterTest.xml | 7 - ...b.graphics.io.vector.GraphicsStateTest.xml | 9 - ....xbib.graphics.io.vector.TestUtilsTest.xml | 14 - ...raphics.io.vector.VectorGraphics2DTest.xml | 9 - ...raphics.io.vector.eps.EPSProcessorTest.xml | 7 - ...raphics.io.vector.pdf.PDFProcessorTest.xml | 7 - ...raphics.io.vector.svg.SVGProcessorTest.xml | 9 - ...io.vector.util.ASCII85EncodeStreamTest.xml | 9 - ....io.vector.util.Base64EncodeStreamTest.xml | 9 - ....graphics.io.vector.util.DataUtilsTest.xml | 9 - ...phics.io.vector.util.GraphicsUtilsTest.xml | 10 - .../build/test-results/test/binary/output.bin | 0 .../test-results/test/binary/output.bin.idx | Bin 1 -> 0 bytes .../test-results/test/binary/results.bin | Bin 3972 -> 0 bytes .../compileJava/source-classes-mapping.txt | 100 +- .../source-classes-mapping.txt | 70 - io-vector/build/tmp/javadoc/javadoc.options | 69 - io-vector/build/tmp/javadocJar/MANIFEST.MF | 2 - io-vector/build/tmp/sourcesJar/MANIFEST.MF | 2 - .../graphics/io/vector/VectorGraphics2D.java | 2 +- .../services/javax.imageio.spi.ImageWriterSpi | 1 - .../compileJava/source-classes-mapping.txt | 234 --- .../source-classes-mapping.txt | 19 - 261 files changed, 61 insertions(+), 34756 deletions(-) create mode 100644 chart/build.gradle delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/Document.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/EPSGraphics2D.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/GraphicsState.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/PDFGraphics2D.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/ProcessingPipeline.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/Processor.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/SVGGraphics2D.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/SizedDocument.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorGraphics2D.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorHints.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSDocument.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessor.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/CommandHandler.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/AffineTransformCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Command.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/CreateCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DisposeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawImageCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawShapeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawStringCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/FillShapeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Group.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/RotateCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ScaleCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetBackgroundCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetClipCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetColorCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetCompositeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetFontCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetHintCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetPaintCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetStrokeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetTransformCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetXORModeCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ShearCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/StateCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TransformCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TranslateCommand.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/Filter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/OptimizeFilter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/StateChangeGroupingFilter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/GeneratedPayload.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFDocument.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFObject.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessor.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Payload.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Resources.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/SizePayload.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGDocument.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessor.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStream.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/AlphaToMaskOp.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStream.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/DataUtils.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FlateEncodeStream.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FormattingWriter.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtils.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ImageDataStream.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/LineWrapOutputStream.java delete mode 100644 chart/src/main/java/org/xbib/graphics/chart/io/vector/util/PageSize.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/GraphicsStateTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtils.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtilsTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/VectorGraphics2DTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessorTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilterTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilterTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FilterTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilterTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessorTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessorTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStreamTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStreamTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/util/DataUtilsTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtilsTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/AbstractTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/CharacterTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ClippingTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ColorTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/EmptyFileTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/FontTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ImageTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/PaintTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ShapesTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/StrokeTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/SwingExportTest.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TestBrowser.java delete mode 100644 chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TransformTest.java delete mode 100644 io-vector/build/docs/javadoc/allclasses-index.html delete mode 100644 io-vector/build/docs/javadoc/allpackages-index.html delete mode 100644 io-vector/build/docs/javadoc/constant-values.html delete mode 100644 io-vector/build/docs/javadoc/deprecated-list.html delete mode 100644 io-vector/build/docs/javadoc/element-list delete mode 100644 io-vector/build/docs/javadoc/help-doc.html delete mode 100644 io-vector/build/docs/javadoc/index-all.html delete mode 100644 io-vector/build/docs/javadoc/index.html delete mode 100644 io-vector/build/docs/javadoc/jquery-ui.overrides.css delete mode 100644 io-vector/build/docs/javadoc/member-search-index.js delete mode 100644 io-vector/build/docs/javadoc/module-search-index.js delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/module-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Command.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/GraphicsState.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/PageSize.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Processor.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/ProcessorResult.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphics2D.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphicsFormat.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/AffineTransformCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/CreateCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DisposeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawImageCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawShapeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawStringCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/FillShapeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/Group.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/RotateCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ScaleCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetBackgroundCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetClipCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetColorCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetCompositeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetFontCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetHintCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetPaintCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetStrokeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetTransformCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetXORModeCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ShearCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/StateCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TransformCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TranslateCommand.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSGraphics2D.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessor.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessorResult.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/Filter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/GroupingFilter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/OptimizeFilter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/GeneratedPayload.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFGraphics2D.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFObject.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessor.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessorResult.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Payload.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Resources.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/SizePayload.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGGraphics2D.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessor.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessorResult.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ASCII85EncodeStream.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/AlphaToMaskOp.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/Base64EncodeStream.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/DataUtils.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FlateEncodeStream.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FormattingWriter.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/GraphicsUtils.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.Interleaving.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/LineWrapOutputStream.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Key.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Value.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-summary.html delete mode 100644 io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-tree.html delete mode 100644 io-vector/build/docs/javadoc/overview-tree.html delete mode 100644 io-vector/build/docs/javadoc/package-search-index.js delete mode 100644 io-vector/build/docs/javadoc/resources/glass.png delete mode 100644 io-vector/build/docs/javadoc/resources/x.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-icons_222222_256x240.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-icons_454545_256x240.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-icons_888888_256x240.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png delete mode 100644 io-vector/build/docs/javadoc/script-dir/jquery-3.5.1.min.js delete mode 100644 io-vector/build/docs/javadoc/script-dir/jquery-ui.min.css delete mode 100644 io-vector/build/docs/javadoc/script-dir/jquery-ui.min.js delete mode 100644 io-vector/build/docs/javadoc/script-dir/jquery-ui.structure.min.css delete mode 100644 io-vector/build/docs/javadoc/script.js delete mode 100644 io-vector/build/docs/javadoc/search.js delete mode 100644 io-vector/build/docs/javadoc/stylesheet.css delete mode 100644 io-vector/build/docs/javadoc/tag-search-index.js delete mode 100644 io-vector/build/docs/javadoc/type-search-index.js delete mode 100644 io-vector/build/libs/io-vector-3.0.0-javadoc.jar delete mode 100644 io-vector/build/libs/io-vector-3.0.0-sources.jar delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FilterTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.GroupingFilterTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.GraphicsStateTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.TestUtilsTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.VectorGraphics2DTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.eps.EPSProcessorTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.pdf.PDFProcessorTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.svg.SVGProcessorTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.DataUtilsTest.html delete mode 100644 io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.GraphicsUtilsTest.html delete mode 100644 io-vector/build/reports/tests/test/css/base-style.css delete mode 100644 io-vector/build/reports/tests/test/css/style.css delete mode 100644 io-vector/build/reports/tests/test/index.html delete mode 100644 io-vector/build/reports/tests/test/js/report.js delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.filters.html delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.eps.html delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.html delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.pdf.html delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.svg.html delete mode 100644 io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.util.html delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FilterTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.GroupingFilterTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.GraphicsStateTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.TestUtilsTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.VectorGraphics2DTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.eps.EPSProcessorTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.pdf.PDFProcessorTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.svg.SVGProcessorTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.DataUtilsTest.xml delete mode 100644 io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.GraphicsUtilsTest.xml delete mode 100644 io-vector/build/test-results/test/binary/output.bin delete mode 100644 io-vector/build/test-results/test/binary/output.bin.idx delete mode 100644 io-vector/build/test-results/test/binary/results.bin delete mode 100644 io-vector/build/tmp/compileTestJava/source-classes-mapping.txt delete mode 100644 io-vector/build/tmp/javadoc/javadoc.options delete mode 100644 io-vector/build/tmp/javadocJar/MANIFEST.MF delete mode 100644 io-vector/build/tmp/sourcesJar/MANIFEST.MF delete mode 100644 png/build/resources/main/META-INF/services/javax.imageio.spi.ImageWriterSpi delete mode 100644 png/build/tmp/compileJava/source-classes-mapping.txt delete mode 100644 png/build/tmp/compileTestJava/source-classes-mapping.txt diff --git a/chart/build.gradle b/chart/build.gradle new file mode 100644 index 0000000..de21c53 --- /dev/null +++ b/chart/build.gradle @@ -0,0 +1,3 @@ +dependencies { + implementation project(':io-vector') +} \ No newline at end of file diff --git a/chart/src/main/java/module-info.java b/chart/src/main/java/module-info.java index f256da4..a02d3cb 100644 --- a/chart/src/main/java/module-info.java +++ b/chart/src/main/java/module-info.java @@ -13,5 +13,6 @@ module org.xbib.graphics.chart { exports org.xbib.graphics.chart.style; exports org.xbib.graphics.chart.theme; exports org.xbib.graphics.chart.xy; + requires org.xbib.graphics.io.vector; requires transitive java.desktop; } diff --git a/chart/src/main/java/org/xbib/graphics/chart/Chart.java b/chart/src/main/java/org/xbib/graphics/chart/Chart.java index 4f26cd2..a1e0844 100644 --- a/chart/src/main/java/org/xbib/graphics/chart/Chart.java +++ b/chart/src/main/java/org/xbib/graphics/chart/Chart.java @@ -9,10 +9,10 @@ import org.xbib.graphics.chart.legend.Legend; import org.xbib.graphics.chart.plot.Plot; import org.xbib.graphics.chart.series.Series; import org.xbib.graphics.chart.style.Styler; -import org.xbib.graphics.chart.io.vector.EPSGraphics2D; -import org.xbib.graphics.chart.io.vector.PDFGraphics2D; -import org.xbib.graphics.chart.io.vector.ProcessingPipeline; -import org.xbib.graphics.chart.io.vector.SVGGraphics2D; +import org.xbib.graphics.io.vector.VectorGraphics2D; +import org.xbib.graphics.io.vector.eps.EPSGraphics2D; +import org.xbib.graphics.io.vector.pdf.PDFGraphics2D; +import org.xbib.graphics.io.vector.svg.SVGGraphics2D; import java.awt.Graphics2D; import java.awt.RenderingHints; @@ -306,7 +306,7 @@ public abstract class Chart { * @throws IIOInvalidTreeException if setting fails */ private static void setDPI(IIOMetadata metadata, int DPI) throws IIOInvalidTreeException { - // for PNG, it's dots per millimeter + // for PNG, it's dots per millimeter? double dotsPerMilli = 1.0 * DPI / 10 / 2.54; IIOMetadataNode horiz = new IIOMetadataNode("HorizontalPixelSize"); horiz.setAttribute("value", Double.toString(dotsPerMilli)); @@ -368,7 +368,7 @@ public abstract class Chart { public void write(OutputStream outputStream, VectorGraphicsFormat vectorGraphicsFormat) throws IOException { - ProcessingPipeline g = null; + VectorGraphics2D g = null; switch (vectorGraphicsFormat) { case EPS: g = new EPSGraphics2D(0.0, 0.0, getWidth(), getHeight()); diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/Document.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/Document.java deleted file mode 100644 index 49f183f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/Document.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.intermediate.CommandHandler; - -import java.io.IOException; -import java.io.OutputStream; - -public interface Document extends CommandHandler { - void write(OutputStream out) throws IOException; - - void close(); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/EPSGraphics2D.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/EPSGraphics2D.java deleted file mode 100644 index 8c0eb34..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/EPSGraphics2D.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.eps.EPSProcessor; - -import java.awt.BasicStroke; -import java.awt.Color; - -/** - * {@code Graphics2D} implementation that saves all operations to a string - * in the Encapsulated PostScript® (EPS) format. - */ -public class EPSGraphics2D extends ProcessingPipeline { - - private final Processor processor; - - /** - * Initializes a new VectorGraphics2D pipeline for translating Graphics2D - * commands to EPS data. The document dimensions must be specified as - * parameters. - * - * @param x Left offset. - * @param y Top offset - * @param width Width. - * @param height Height. - */ - public EPSGraphics2D(double x, double y, double width, double height) { - super(x, y, width, height); - processor = new EPSProcessor(); - /* - * The following are the default settings for the graphics state in an EPS file. - * Although they currently appear in the document output, they do not have to be set explicitly. - */ - // TODO: Default graphics state does not need to be printed in the document - setColor(Color.BLACK); - setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, null, 0f)); - } - - @Override - protected Processor getProcessor() { - return processor; - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/GraphicsState.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/GraphicsState.java deleted file mode 100644 index d418b6a..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/GraphicsState.java +++ /dev/null @@ -1,275 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; - -import java.awt.AlphaComposite; -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Composite; -import java.awt.Font; -import java.awt.Paint; -import java.awt.RenderingHints; -import java.awt.Shape; -import java.awt.Stroke; -import java.awt.geom.AffineTransform; -import java.awt.geom.NoninvertibleTransformException; -import java.awt.geom.Rectangle2D; -import java.util.Objects; - -public class GraphicsState implements Cloneable { - /** - * Default background color. - */ - public static final Color DEFAULT_BACKGROUND = Color.BLACK; - /** - * Default color. - */ - public static final Color DEFAULT_COLOR = Color.WHITE; - /** - * Default clipping shape. - */ - public static final Shape DEFAULT_CLIP = null; - /** - * Default composite mode. - */ - public static final Composite DEFAULT_COMPOSITE = AlphaComposite.SrcOver; - /** - * Default font. - */ - public static final Font DEFAULT_FONT = Font.decode(null); - /** - * Default paint. - */ - public static final Color DEFAULT_PAINT = DEFAULT_COLOR; - /** - * Default stroke. - */ - public static final Stroke DEFAULT_STROKE = new BasicStroke(); - /** - * Default transformation. - */ - public static final AffineTransform DEFAULT_TRANSFORM = - new AffineTransform(); - /** - * Default XOR mode. - */ - public static final Color DEFAULT_XOR_MODE = Color.BLACK; - - /** - * Rendering hints. - */ - private RenderingHints hints; - /** - * Current background color. - */ - private Color background; - /** - * Current foreground color. - */ - private Color color; - /** - * Shape used for clipping paint operations. - */ - private Shape clip; - /** - * Method used for compositing. - */ - private Composite composite; - /** - * Current font. - */ - private Font font; - /** - * Paint used to fill shapes. - */ - private Paint paint; - /** - * Stroke used for drawing shapes. - */ - private Stroke stroke; - /** - * Current transformation matrix. - */ - private AffineTransform transform; - /** - * XOR mode used for rendering. - */ - private Color xorMode; - - public GraphicsState() { - hints = new RenderingHints(null); - background = DEFAULT_BACKGROUND; - color = DEFAULT_COLOR; - clip = DEFAULT_CLIP; - composite = DEFAULT_COMPOSITE; - font = DEFAULT_FONT; - paint = DEFAULT_PAINT; - stroke = DEFAULT_STROKE; - transform = new AffineTransform(DEFAULT_TRANSFORM); - xorMode = DEFAULT_XOR_MODE; - } - - private static Shape transformShape(Shape s, AffineTransform tx) { - if (s == null) { - return null; - } - if (tx == null || tx.isIdentity()) { - return GraphicsUtils.clone(s); - } - boolean isRectangle = s instanceof Rectangle2D; - int nonRectlinearTxMask = AffineTransform.TYPE_GENERAL_TRANSFORM | - AffineTransform.TYPE_GENERAL_ROTATION; - boolean isRectlinearTx = (tx.getType() & nonRectlinearTxMask) == 0; - if (isRectangle && isRectlinearTx) { - Rectangle2D rect = (Rectangle2D) s; - double[] corners = new double[]{ - rect.getMinX(), rect.getMinY(), - rect.getMaxX(), rect.getMaxY() - }; - tx.transform(corners, 0, corners, 0, 2); - rect = new Rectangle2D.Double(); - rect.setFrameFromDiagonal(corners[0], corners[1], corners[2], - corners[3]); - return rect; - } - return tx.createTransformedShape(s); - } - - private static Shape untransformShape(Shape s, AffineTransform tx) { - if (s == null) { - return null; - } - try { - AffineTransform inverse = tx.createInverse(); - return transformShape(s, inverse); - } catch (NoninvertibleTransformException e) { - return null; - } - } - - @Override - public Object clone() throws CloneNotSupportedException { - GraphicsState clone = (GraphicsState) super.clone(); - clone.hints = (RenderingHints) hints.clone(); - clone.clip = GraphicsUtils.clone(clip); - clone.transform = new AffineTransform(transform); - return clone; - } - - public Shape transformShape(Shape shape) { - return transformShape(shape, transform); - } - - public Shape untransformShape(Shape shape) { - return untransformShape(shape, transform); - } - - public RenderingHints getHints() { - return hints; - } - - public Color getBackground() { - return background; - } - - public void setBackground(Color background) { - this.background = background; - } - - public Color getColor() { - return color; - } - - public void setColor(Color color) { - this.color = color; - } - - public Shape getClip() { - return untransformShape(clip); - } - - public void setClip(Shape clip) { - this.clip = transformShape(clip); - } - - public Composite getComposite() { - return composite; - } - - public void setComposite(Composite composite) { - this.composite = composite; - } - - public Font getFont() { - return font; - } - - public void setFont(Font font) { - this.font = font; - } - - public Paint getPaint() { - return paint; - } - - public void setPaint(Paint paint) { - this.paint = paint; - } - - public Stroke getStroke() { - return stroke; - } - - public void setStroke(Stroke stroke) { - this.stroke = stroke; - } - - public AffineTransform getTransform() { - return new AffineTransform(transform); - } - - public void setTransform(AffineTransform tx) { - transform.setTransform(tx); - } - - public Color getXorMode() { - return xorMode; - } - - public void setXorMode(Color xorMode) { - this.xorMode = xorMode; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (!(obj instanceof GraphicsState)) { - return false; - } - GraphicsState o = (GraphicsState) obj; - return !(!hints.equals(o.hints) || !background.equals(o.background) || - !color.equals(o.color) || !composite.equals(o.composite) || - !font.equals(o.font) || !paint.equals(o.paint) || - !stroke.equals(o.stroke) || !transform.equals(o.transform) || - !xorMode.equals(o.xorMode) || - ((clip == null || o.clip == null) && clip != o.clip) || - (clip != null && !clip.equals(o.clip))); - } - - @Override - public int hashCode() { - return Objects.hash(hints, background, color, composite, font, paint, - stroke, transform, xorMode, clip); - } - - public boolean isDefault() { - return hints.isEmpty() && background.equals(DEFAULT_BACKGROUND) && - color.equals(DEFAULT_COLOR) && composite.equals(DEFAULT_COMPOSITE) && - font.equals(DEFAULT_FONT) && paint.equals(DEFAULT_PAINT) && - stroke.equals(DEFAULT_STROKE) && transform.equals(DEFAULT_TRANSFORM) && - xorMode.equals(DEFAULT_XOR_MODE) && clip == DEFAULT_CLIP; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/PDFGraphics2D.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/PDFGraphics2D.java deleted file mode 100644 index 9a0a8d2..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/PDFGraphics2D.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.pdf.PDFProcessor; - -import java.awt.BasicStroke; -import java.awt.Color; - -/** - * {@code Graphics2D} implementation that saves all operations to a string - * in the Portable Document Format (PDF). - */ -public class PDFGraphics2D extends ProcessingPipeline { - private final Processor processor; - - /** - * Initializes a new VectorGraphics2D pipeline for translating Graphics2D - * commands to PDF data. The document dimensions must be specified as - * parameters. - * - * @param x Left offset. - * @param y Top offset - * @param width Width. - * @param height Height. - */ - public PDFGraphics2D(double x, double y, double width, double height) { - super(x, y, width, height); - processor = new PDFProcessor(); - - // TODO: Default graphics state does not need to be printed in the document - setColor(Color.BLACK); - setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, null, 0f)); - } - - @Override - protected Processor getProcessor() { - return processor; - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/ProcessingPipeline.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/ProcessingPipeline.java deleted file mode 100644 index 300b779..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/ProcessingPipeline.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; - -/** - * Base class for convenience implementations of {@code VectorGraphics2D}. - */ -public abstract class ProcessingPipeline extends VectorGraphics2D { - private final PageSize pageSize; - - /** - * Initializes a processing pipeline. - * - * @param x Left offset. - * @param y Top offset - * @param width Width. - * @param height Height. - */ - public ProcessingPipeline(double x, double y, double width, double height) { - pageSize = new PageSize(x, y, width, height); - } - - public PageSize getPageSize() { - return pageSize; - } - - protected abstract Processor getProcessor(); - - public void writeTo(OutputStream out) throws IOException { - Document doc = getProcessor().process(getCommands(), getPageSize()); - doc.write(out); - } - - public byte[] getBytes() { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - try { - writeTo(out); - } catch (IOException e) { - throw new RuntimeException(e); - } finally { - try { - out.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - return out.toByteArray(); - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/Processor.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/Processor.java deleted file mode 100644 index c2e40d9..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/Processor.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -public interface Processor { - Document process(Iterable> commands, PageSize pageSize); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/SVGGraphics2D.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/SVGGraphics2D.java deleted file mode 100644 index bd2084f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/SVGGraphics2D.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.svg.SVGProcessor; - -import java.awt.Color; - -/** - * {@code Graphics2D} implementation that saves all operations to a string - * in the Scaled Vector Graphics (SVG) format. - */ -public class SVGGraphics2D extends ProcessingPipeline { - private final Processor processor; - - /** - * Initializes a new VectorGraphics2D pipeline for translating Graphics2D - * commands to SVG data. The document dimensions must be specified as - * parameters. - * - * @param x Left offset. - * @param y Top offset - * @param width Width. - * @param height Height. - */ - public SVGGraphics2D(double x, double y, double width, double height) { - super(x, y, width, height); - processor = new SVGProcessor(); - - // Make graphics state match default state of Graphics2D - setColor(Color.BLACK); - } - - @Override - protected Processor getProcessor() { - return processor; - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/SizedDocument.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/SizedDocument.java deleted file mode 100644 index 016cea3..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/SizedDocument.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.util.PageSize; - -public abstract class SizedDocument implements Document { - private final PageSize pageSize; - - public SizedDocument(PageSize pageSize) { - this.pageSize = pageSize; - } - - public PageSize getPageSize() { - return pageSize; - } - - public void close() { - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorGraphics2D.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorGraphics2D.java deleted file mode 100644 index 845bba0..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorGraphics2D.java +++ /dev/null @@ -1,894 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawStringCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.RotateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.ScaleCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetBackgroundCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetClipCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetCompositeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetFontCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetHintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetXORModeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.ShearCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TranslateCommand; -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; - -import java.awt.AlphaComposite; -import java.awt.Color; -import java.awt.Composite; -import java.awt.Font; -import java.awt.FontMetrics; -import java.awt.Graphics; -import java.awt.Graphics2D; -import java.awt.GraphicsConfiguration; -import java.awt.Image; -import java.awt.Paint; -import java.awt.Polygon; -import java.awt.Rectangle; -import java.awt.RenderingHints; -import java.awt.RenderingHints.Key; -import java.awt.Shape; -import java.awt.Stroke; -import java.awt.font.FontRenderContext; -import java.awt.font.GlyphVector; -import java.awt.font.TextLayout; -import java.awt.geom.AffineTransform; -import java.awt.geom.Arc2D; -import java.awt.geom.Area; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.Path2D; -import java.awt.geom.Rectangle2D; -import java.awt.geom.RoundRectangle2D; -import java.awt.image.AffineTransformOp; -import java.awt.image.BufferedImage; -import java.awt.image.BufferedImageOp; -import java.awt.image.ImageObserver; -import java.awt.image.RenderedImage; -import java.awt.image.renderable.RenderableImage; -import java.text.AttributedCharacterIterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -/** - * Base for classes that want to implement vector export. - */ -public class VectorGraphics2D extends Graphics2D implements Cloneable { - /** - * List of operations that were performed on this graphics object and its - * derived objects. - */ - private final List> commands; - /** - * Device configuration settings. - */ - //private final GraphicsConfiguration deviceConfig; - /** - * Context settings used to render fonts. - */ - private final FontRenderContext fontRenderContext; - /** - * Flag that tells whether this graphics object has been disposed. - */ - private boolean disposed; - - private GraphicsState state; - - private Graphics2D _debug_validate_graphics; - - public VectorGraphics2D() { - commands = new LinkedList>(); - emit(new CreateCommand(this)); - fontRenderContext = new FontRenderContext(null, false, true); - - state = new GraphicsState(); - - BufferedImage _debug_validate_bimg = new BufferedImage(200, 250, BufferedImage.TYPE_INT_ARGB); - _debug_validate_graphics = (Graphics2D) _debug_validate_bimg.getGraphics(); - _debug_validate_graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - } - - private static Shape intersectShapes(Shape s1, Shape s2) { - if (s1 instanceof Rectangle2D && s2 instanceof Rectangle2D) { - Rectangle2D r1 = (Rectangle2D) s1; - Rectangle2D r2 = (Rectangle2D) s2; - double x1 = Math.max(r1.getMinX(), r2.getMinX()); - double y1 = Math.max(r1.getMinY(), r2.getMinY()); - double x2 = Math.min(r1.getMaxX(), r2.getMaxX()); - double y2 = Math.min(r1.getMaxY(), r2.getMaxY()); - - Rectangle2D intersection = new Rectangle2D.Double(); - if ((x2 < x1) || (y2 < y1)) { - intersection.setFrameFromDiagonal(0, 0, 0, 0); - } else { - intersection.setFrameFromDiagonal(x1, y1, x2, y2); - } - return intersection; - } else { - Area intersection = new Area(s1); - intersection.intersect(new Area(s2)); - return intersection; - } - } - - @Override - public Object clone() throws CloneNotSupportedException { - try { - VectorGraphics2D clone = (VectorGraphics2D) super.clone(); - clone.state = (GraphicsState) state.clone(); - return clone; - } catch (CloneNotSupportedException e) { - return null; - } - } - - @Override - public void addRenderingHints(Map hints) { - if (isDisposed()) { - return; - } - for (Entry entry : hints.entrySet()) { - setRenderingHint((Key) entry.getKey(), entry.getValue()); - } - } - - @Override - public void clip(Shape s) { - _debug_validate_graphics.clip(s); - Shape clipOld = getClip(); - - Shape clip = getClip(); - if ((clip != null) && (s != null)) { - s = intersectShapes(clip, s); - } - setClip(s); - - Shape clipNew = getClip(); - if ((clipNew == null || _debug_validate_graphics.getClip() == null) && clipNew != _debug_validate_graphics.getClip()) { - System.err.println("clip() validation failed: clip(" + clipOld + ", " + s + ") => " + clipNew + " != " + _debug_validate_graphics.getClip()); - } - if (clipNew != null && !GraphicsUtils.equals(clipNew, _debug_validate_graphics.getClip())) { - System.err.println("clip() validation failed: clip(" + clipOld + ", " + s + ") => " + clipNew + " != " + _debug_validate_graphics.getClip()); - } - } - - @Override - public void draw(Shape s) { - if (isDisposed() || s == null) { - return; - } - emit(new DrawShapeCommand(s)); - - _debug_validate_graphics.draw(s); - } - - @Override - public void drawGlyphVector(GlyphVector g, float x, float y) { - Shape s = g.getOutline(x, y); - draw(s); - } - - @Override - public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) { - BufferedImage bimg = getTransformedImage(img, xform); - return drawImage(bimg, bimg.getMinX(), bimg.getMinY(), - bimg.getWidth(), bimg.getHeight(), null, null); - } - - /** - * Returns a transformed version of an image. - * - * @param image Image to be transformed - * @param xform Affine transform to be applied - * @return Image with transformed content - */ - private BufferedImage getTransformedImage(Image image, - AffineTransform xform) { - Integer interpolationType = - (Integer) getRenderingHint(RenderingHints.KEY_INTERPOLATION); - if (RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR - .equals(interpolationType)) { - interpolationType = AffineTransformOp.TYPE_NEAREST_NEIGHBOR; - } else if (RenderingHints.VALUE_INTERPOLATION_BILINEAR - .equals(interpolationType)) { - interpolationType = AffineTransformOp.TYPE_BILINEAR; - } else { - interpolationType = AffineTransformOp.TYPE_BICUBIC; - } - AffineTransformOp op = new AffineTransformOp(xform, interpolationType); - BufferedImage bufferedImage = GraphicsUtils.toBufferedImage(image); - return op.filter(bufferedImage, null); - } - - @Override - public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y) { - if (op != null) { - img = op.filter(img, null); - } - drawImage(img, x, y, img.getWidth(), img.getHeight(), null, null); - } - - @Override - public void drawRenderableImage(RenderableImage img, AffineTransform xform) { - drawRenderedImage(img.createDefaultRendering(), xform); - } - - @Override - public void drawRenderedImage(RenderedImage img, AffineTransform xform) { - BufferedImage bimg = GraphicsUtils.toBufferedImage(img); - drawImage(bimg, xform, null); - } - - @Override - public void drawString(String str, int x, int y) { - drawString(str, (float) x, (float) y); - } - - @Override - public void drawString(String str, float x, float y) { - if (isDisposed() || str == null || str.trim().length() == 0) { - return; - } - boolean isTextAsVectors = false; - if (isTextAsVectors) { - TextLayout layout = new TextLayout(str, getFont(), - getFontRenderContext()); - Shape s = layout.getOutline( - AffineTransform.getTranslateInstance(x, y)); - fill(s); - } else { - emit(new DrawStringCommand(str, x, y)); - - _debug_validate_graphics.drawString(str, x, y); - } - - } - - @Override - public void drawString(AttributedCharacterIterator iterator, int x, int y) { - drawString(iterator, (float) x, (float) y); - } - - @Override - public void drawString(AttributedCharacterIterator iterator, float x, - float y) { - // TODO Draw styled text - StringBuilder buf = new StringBuilder(); - for (char c = iterator.first(); c != AttributedCharacterIterator.DONE; - c = iterator.next()) { - buf.append(c); - } - drawString(buf.toString(), x, y); - } - - @Override - public void fill(Shape s) { - if (isDisposed() || s == null) { - return; - } - emit(new FillShapeCommand(s)); - - _debug_validate_graphics.fill(s); - } - - @Override - public Color getBackground() { - return state.getBackground(); - } - - @Override - public void setBackground(Color color) { - if (isDisposed() || color == null || getColor().equals(color)) { - return; - } - emit(new SetBackgroundCommand(color)); - state.setBackground(color); - - _debug_validate_graphics.setBackground(color); - if (!getBackground().equals(_debug_validate_graphics.getBackground())) { - System.err.println("setBackground() validation failed"); - } - } - - @Override - public Composite getComposite() { - return state.getComposite(); - } - - @Override - public void setComposite(Composite comp) { - if (isDisposed()) { - return; - } - if (comp == null) { - throw new IllegalArgumentException("Cannot set a null composite."); - } - emit(new SetCompositeCommand(comp)); - state.setComposite(comp); - - _debug_validate_graphics.setComposite(comp); - if (!getComposite().equals(_debug_validate_graphics.getComposite())) { - System.err.println("setComposite() validation failed"); - } - } - - @Override - public GraphicsConfiguration getDeviceConfiguration() { - throw new UnsupportedOperationException(); - } - - @Override - public FontRenderContext getFontRenderContext() { - return fontRenderContext; - } - - @Override - public Paint getPaint() { - return state.getPaint(); - } - - @Override - public void setPaint(Paint paint) { - if (isDisposed() || paint == null) { - return; - } - if (paint instanceof Color) { - setColor((Color) paint); - return; - } - if (getPaint().equals(paint)) { - return; - } - emit(new SetPaintCommand(paint)); - state.setPaint(paint); - - _debug_validate_graphics.setPaint(paint); - if (!getPaint().equals(_debug_validate_graphics.getPaint())) { - System.err.println("setPaint() validation failed"); - } - } - - @Override - public Object getRenderingHint(Key hintKey) { - if (RenderingHints.KEY_ANTIALIASING.equals(hintKey)) { - return RenderingHints.VALUE_ANTIALIAS_OFF; - } else if (RenderingHints.KEY_TEXT_ANTIALIASING.equals(hintKey)) { - return RenderingHints.VALUE_TEXT_ANTIALIAS_OFF; - } else if (RenderingHints.KEY_FRACTIONALMETRICS.equals(hintKey)) { - return RenderingHints.VALUE_FRACTIONALMETRICS_ON; - } - return state.getHints().get(hintKey); - } - - @Override - public RenderingHints getRenderingHints() { - return (RenderingHints) state.getHints().clone(); - } - - @Override - public void setRenderingHints(Map hints) { - if (isDisposed()) { - return; - } - state.getHints().clear(); - for (Entry hint : hints.entrySet()) { - setRenderingHint((Key) hint.getKey(), hint.getValue()); - } - } - - @Override - public Stroke getStroke() { - return state.getStroke(); - } - - @Override - public void setStroke(Stroke s) { - if (isDisposed()) { - return; - } - if (s == null) { - throw new IllegalArgumentException("Cannot set a null stroke."); - } - emit(new SetStrokeCommand(s)); - state.setStroke(s); - - _debug_validate_graphics.setStroke(s); - if (!getStroke().equals(_debug_validate_graphics.getStroke())) { - System.err.println("setStroke() validation failed"); - } - } - - @Override - public boolean hit(Rectangle rect, Shape s, boolean onStroke) { - Shape hitShape = s; - if (onStroke) { - hitShape = getStroke().createStrokedShape(hitShape); - } - hitShape = state.transformShape(hitShape); - boolean hit = hitShape.intersects(rect); - - boolean _debug_hit = _debug_validate_graphics.hit(rect, s, onStroke); - if (hit != _debug_hit) { - System.err.println("setClip() validation failed"); - } - - return hit; - } - - @Override - public void setRenderingHint(Key hintKey, Object hintValue) { - if (isDisposed()) { - return; - } - state.getHints().put(hintKey, hintValue); - emit(new SetHintCommand(hintKey, hintValue)); - } - - @Override - public AffineTransform getTransform() { - return new AffineTransform(state.getTransform()); - } - - @Override - public void setTransform(AffineTransform tx) { - if (isDisposed() || tx == null || state.getTransform().equals(tx)) { - return; - } - emit(new SetTransformCommand(tx)); - state.setTransform(tx); - - _debug_validate_graphics.setTransform(tx); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("setTransform() validation failed"); - } - } - - @Override - public void shear(double shx, double shy) { - if (shx == 0.0 && shy == 0.0) { - return; - } - AffineTransform txNew = getTransform(); - txNew.shear(shx, shy); - emit(new ShearCommand(shx, shy)); - state.setTransform(txNew); - - _debug_validate_graphics.shear(shx, shy); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("shear() validation failed"); - } - } - - @Override - public void transform(AffineTransform tx) { - if (tx.isIdentity()) { - return; - } - AffineTransform txNew = getTransform(); - txNew.concatenate(tx); - emit(new TransformCommand(tx)); - state.setTransform(txNew); - - _debug_validate_graphics.transform(tx); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("transform() validation failed"); - } - } - - @Override - public void translate(int x, int y) { - translate((double) x, (double) y); - } - - @Override - public void translate(double tx, double ty) { - if (tx == 0.0 && ty == 0.0) { - return; - } - AffineTransform txNew = getTransform(); - txNew.translate(tx, ty); - emit(new TranslateCommand(tx, ty)); - state.setTransform(txNew); - - _debug_validate_graphics.translate(tx, ty); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("translate() validation failed"); - } - } - - @Override - public void rotate(double theta) { - rotate(theta, 0.0, 0.0); - } - - @Override - public void rotate(double theta, double x, double y) { - if (theta == 0.0) { - return; - } - - AffineTransform txNew = getTransform(); - if (x == 0.0 && y == 0.0) { - txNew.rotate(theta); - } else { - txNew.rotate(theta, x, y); - } - - emit(new RotateCommand(theta, x, y)); - state.setTransform(txNew); - - if (x == 0.0 && y == 0.0) { - _debug_validate_graphics.rotate(theta); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("rotate(theta) validation failed"); - } - } else { - _debug_validate_graphics.rotate(theta, x, y); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("rotate(theta,x,y) validation failed"); - } - } - } - - @Override - public void scale(double sx, double sy) { - if (sx == 1.0 && sy == 1.0) { - return; - } - AffineTransform txNew = getTransform(); - txNew.scale(sx, sy); - emit(new ScaleCommand(sx, sy)); - state.setTransform(txNew); - - _debug_validate_graphics.scale(sx, sy); - if (!getTransform().equals(_debug_validate_graphics.getTransform())) { - System.err.println("scale() validation failed"); - } - } - - @Override - public void clearRect(int x, int y, int width, int height) { - Color colorOld = getColor(); - setColor(getBackground()); - fillRect(x, y, width, height); - setColor(colorOld); - } - - @Override - public void clipRect(int x, int y, int width, int height) { - clip(new Rectangle(x, y, width, height)); - } - - @Override - public void copyArea(int x, int y, int width, int height, int dx, int dy) { - // TODO Implement - //throw new UnsupportedOperationException("copyArea() isn't supported by VectorGraphics2D."); - } - - @Override - public Graphics create() { - if (isDisposed()) { - return null; - } - VectorGraphics2D clone = null; - try { - clone = (VectorGraphics2D) this.clone(); - emit(new CreateCommand(clone)); - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - - if (clone != null) { - clone._debug_validate_graphics = (Graphics2D) _debug_validate_graphics.create(); - } - - return clone; - } - - @Override - public void dispose() { - if (isDisposed()) { - return; - } - - emit(new DisposeCommand(this)); - - disposed = true; - - _debug_validate_graphics.dispose(); - } - - @Override - public void drawArc(int x, int y, int width, int height, int startAngle, - int arcAngle) { - draw(new Arc2D.Double(x, y, width, height, - startAngle, arcAngle, Arc2D.OPEN)); - } - - @Override - public boolean drawImage(Image img, int x, int y, ImageObserver observer) { - return drawImage(img, x, y, img.getWidth(observer), - img.getHeight(observer), null, observer); - } - - @Override - public boolean drawImage(Image img, int x, int y, Color bgcolor, - ImageObserver observer) { - return drawImage(img, x, y, img.getWidth(observer), - img.getHeight(observer), bgcolor, observer); - } - - @Override - public boolean drawImage(Image img, int x, int y, int width, int height, - ImageObserver observer) { - return drawImage(img, x, y, width, height, null, observer); - } - - @Override - public boolean drawImage(Image img, int x, int y, int width, int height, - Color bgcolor, ImageObserver observer) { - if (isDisposed() || img == null) { - return true; - } - - int imageWidth = img.getWidth(observer); - int imageHeight = img.getHeight(observer); - Rectangle bounds = new Rectangle(x, y, width, height); - - if (bgcolor != null) { - // Fill rectangle with bgcolor - Color bgcolorOld = getColor(); - setColor(bgcolor); - fill(bounds); - setColor(bgcolorOld); - } - - emit(new DrawImageCommand(img, imageWidth, imageHeight, x, y, width, height)); - - _debug_validate_graphics.drawImage(img, x, y, width, height, bgcolor, observer); - - return true; - } - - @Override - public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, - int sx1, int sy1, int sx2, int sy2, ImageObserver observer) { - return drawImage(img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, null, - observer); - } - - @Override - public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, - int sx1, int sy1, int sx2, int sy2, Color bgcolor, - ImageObserver observer) { - if (img == null) { - return true; - } - - int sx = Math.min(sx1, sx2); - int sy = Math.min(sy1, sy2); - int sw = Math.abs(sx2 - sx1); - int sh = Math.abs(sy2 - sy1); - int dx = Math.min(dx1, dx2); - int dy = Math.min(dy1, dy2); - int dw = Math.abs(dx2 - dx1); - int dh = Math.abs(dy2 - dy1); - - // Draw image on rectangle - BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); - Image cropped = bufferedImg.getSubimage(sx, sy, sw, sh); - return drawImage(cropped, dx, dy, dw, dh, bgcolor, observer); - } - - @Override - public void drawLine(int x1, int y1, int x2, int y2) { - draw(new Line2D.Double(x1, y1, x2, y2)); - } - - @Override - public void drawOval(int x, int y, int width, int height) { - draw(new Ellipse2D.Double(x, y, width, height)); - } - - @Override - public void drawPolygon(Polygon p) { - draw(p); - } - - @Override - public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) { - draw(new Polygon(xPoints, yPoints, nPoints)); - } - - @Override - public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) { - Path2D p = new Path2D.Float(); - for (int i = 0; i < nPoints; i++) { - if (i > 0) { - p.lineTo(xPoints[i], yPoints[i]); - } else { - p.moveTo(xPoints[i], yPoints[i]); - } - } - draw(p); - } - - @Override - public void drawRect(int x, int y, int width, int height) { - draw(new Rectangle(x, y, width, height)); - } - - @Override - public void drawRoundRect(int x, int y, int width, int height, - int arcWidth, int arcHeight) { - draw(new RoundRectangle2D.Double(x, y, width, height, - arcWidth, arcHeight)); - } - - @Override - public void fillArc(int x, int y, int width, int height, - int startAngle, int arcAngle) { - fill(new Arc2D.Double(x, y, width, height, - startAngle, arcAngle, Arc2D.PIE)); - } - - @Override - public void fillOval(int x, int y, int width, int height) { - fill(new Ellipse2D.Double(x, y, width, height)); - } - - @Override - public void fillPolygon(Polygon p) { - fill(p); - } - - @Override - public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { - fill(new Polygon(xPoints, yPoints, nPoints)); - } - - @Override - public void fillRect(int x, int y, int width, int height) { - fill(new Rectangle(x, y, width, height)); - } - - @Override - public void fillRoundRect(int x, int y, int width, int height, - int arcWidth, int arcHeight) { - fill(new RoundRectangle2D.Double(x, y, width, height, - arcWidth, arcHeight)); - } - - @Override - public Shape getClip() { - return state.getClip(); - } - - @Override - public void setClip(Shape clip) { - if (isDisposed()) { - return; - } - emit(new SetClipCommand(clip)); - state.setClip(clip); - - _debug_validate_graphics.setClip(clip); - if (getClip() == null) { - if (_debug_validate_graphics.getClip() != null) { - System.err.printf("setClip() validation failed: clip=null, validation=%s\n", _debug_validate_graphics.getClip()); - } - } else if (!GraphicsUtils.equals(getClip(), _debug_validate_graphics.getClip())) { - System.err.printf("setClip() validation failed: clip=%s, validation=%s\n", getClip(), _debug_validate_graphics.getClip()); - } - } - - @Override - public Rectangle getClipBounds() { - if (getClip() == null) { - return null; - } - return getClip().getBounds(); - } - - @Override - public Color getColor() { - return state.getColor(); - } - - @Override - public void setColor(Color c) { - if (isDisposed() || c == null || getColor().equals(c)) { - return; - } - emit(new SetColorCommand(c)); - state.setColor(c); - state.setPaint(c); - - _debug_validate_graphics.setColor(c); - if (!getColor().equals(_debug_validate_graphics.getColor())) { - System.err.println("setColor() validation failed"); - } - } - - @Override - public Font getFont() { - return state.getFont(); - } - - @Override - public void setFont(Font font) { - if (isDisposed() || (font != null && getFont().equals(font))) { - return; - } - emit(new SetFontCommand(font)); - state.setFont(font); - - _debug_validate_graphics.setFont(font); - if (!getFont().equals(_debug_validate_graphics.getFont())) { - System.err.println("setFont() validation failed"); - } - } - - @Override - public FontMetrics getFontMetrics(Font f) { - BufferedImage bi = - new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB_PRE); - Graphics g = bi.getGraphics(); - FontMetrics fontMetrics = g.getFontMetrics(getFont()); - g.dispose(); - return fontMetrics; - } - - @Override - public void setClip(int x, int y, int width, int height) { - setClip(new Rectangle(x, y, width, height)); - } - - @Override - public void setPaintMode() { - setComposite(AlphaComposite.SrcOver); - - _debug_validate_graphics.setPaintMode(); - } - - public Color getXORMode() { - return state.getXorMode(); - } - - @Override - public void setXORMode(Color c1) { - if (isDisposed() || c1 == null) { - return; - } - emit(new SetXORModeCommand(c1)); - state.setXorMode(c1); - - _debug_validate_graphics.setXORMode(c1); - } - - private void emit(Command command) { - commands.add(command); - } - - protected Iterable> getCommands() { - return commands; - } - - protected boolean isDisposed() { - return disposed; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorHints.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorHints.java deleted file mode 100644 index 8e8ae9f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/VectorHints.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import java.awt.RenderingHints; -import java.util.HashSet; -import java.util.Set; - -public abstract class VectorHints { - public static final Key KEY_EXPORT = new Key(0, "Vector export mode"); - public static final Object VALUE_EXPORT_READABILITY = new Value(KEY_EXPORT, 0, "Maximize readability for humans"); - public static final Object VALUE_EXPORT_QUALITY = new Value(KEY_EXPORT, 1, "Maximize render quality"); - public static final Object VALUE_EXPORT_SIZE = new Value(KEY_EXPORT, 2, "Minimize data size"); - public static final Key KEY_TEXT = new Key(1, "Text export mode"); - public static final Object VALUE_TEXT_DEFAULT = new Value(KEY_TEXT, 0, "Keep text"); - public static final Object VALUE_TEXT_VECTOR = new Value(KEY_TEXT, 1, "Convert text to vector shapes"); - - protected VectorHints() { - throw new UnsupportedOperationException(); - } - - public static class Key extends RenderingHints.Key { - private final String description; - - public Key(int privateKey, String description) { - super(privateKey); - this.description = description; - } - - public int getIndex() { - return intKey(); - } - - @Override - public boolean isCompatibleValue(Object val) { - return val instanceof Value && ((Value) val).isCompatibleKey(this); - } - - @Override - public String toString() { - return description; - } - } - - public static class Value { - private static final Set values = new HashSet(); - private final Key key; - private final int index; - private final String description; - - public Value(Key key, int index, String description) { - this.key = key; - this.index = index; - this.description = description; - register(this); - } - - private synchronized static void register(Value value) { - String id = value.getId(); - if (values.contains(id)) { - throw new ExceptionInInitializerError( - "Duplicate index: " + value.getIndex()); - } - values.add(id); - } - - public boolean isCompatibleKey(RenderingHints.Key key) { - return this.key == key; - } - - public int getIndex() { - return index; - } - - public String getId() { - return key.getIndex() + ":" + getIndex(); - } - - @Override - public String toString() { - return description; - } - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSDocument.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSDocument.java deleted file mode 100644 index 1ab1d44..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSDocument.java +++ /dev/null @@ -1,476 +0,0 @@ -package org.xbib.graphics.chart.io.vector.eps; - -import org.xbib.graphics.chart.io.vector.GraphicsState; -import org.xbib.graphics.chart.io.vector.SizedDocument; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawStringCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.RotateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.ScaleCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetClipCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetCompositeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetFontCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.ShearCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TranslateCommand; -import org.xbib.graphics.chart.io.vector.util.ASCII85EncodeStream; -import org.xbib.graphics.chart.io.vector.util.AlphaToMaskOp; -import org.xbib.graphics.chart.io.vector.util.DataUtils; -import org.xbib.graphics.chart.io.vector.util.FlateEncodeStream; -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; -import org.xbib.graphics.chart.io.vector.util.ImageDataStream; -import org.xbib.graphics.chart.io.vector.util.ImageDataStream.Interleaving; -import org.xbib.graphics.chart.io.vector.util.LineWrapOutputStream; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Font; -import java.awt.Image; -import java.awt.Shape; -import java.awt.Stroke; -import java.awt.geom.Arc2D; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.PathIterator; -import java.awt.geom.Rectangle2D; -import java.awt.image.BufferedImage; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.OutputStreamWriter; -import java.util.Arrays; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class EPSDocument extends SizedDocument { - /** - * Constant to convert values from millimeters to PostScript® units - * (1/72th inch). - */ - private static final double UNITS_PER_MM = 72.0 / 25.4; - private static final String CHARSET = "ISO-8859-1"; - private static final String EOL = "\n"; - private static final int MAX_LINE_WIDTH = 255; - private static final Pattern ELEMENT_SEPARATION_PATTERN = Pattern.compile("(.{1," + MAX_LINE_WIDTH + "})(\\s+|$)"); - - /** - * Mapping of stroke endcap values from Java to PostScript®. - */ - private static final Map STROKE_ENDCAPS = DataUtils.map( - new Integer[]{BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE}, - new Integer[]{0, 1, 2} - ); - - /** - * Mapping of line join values for path drawing from Java to - * PostScript®. - */ - private static final Map STROKE_LINEJOIN = DataUtils.map( - new Integer[]{BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL}, - new Integer[]{0, 1, 2} - ); - - private static final String FONT_LATIN1_SUFFIX = "Lat"; - - private final List elements; - - public EPSDocument(PageSize pageSize) { - super(pageSize); - elements = new LinkedList(); - addHeader(); - } - - private static String getOutput(Color c) { - // TODO Handle transparency - return String.valueOf(c.getRed() / 255.0) + " " + c.getGreen() / 255.0 + " " + c.getBlue() / 255.0 + " rgb"; - } - - private static String getOutput(Shape s) { - StringBuilder out = new StringBuilder(); - out.append("newpath "); - if (s instanceof Line2D) { - Line2D l = (Line2D) s; - out.append(l.getX1()).append(" ").append(l.getY1()).append(" M ") - .append(l.getX2()).append(" ").append(l.getY2()).append(" L"); - } else if (s instanceof Rectangle2D) { - Rectangle2D r = (Rectangle2D) s; - out.append(r.getX()).append(" ").append(r.getY()).append(" ") - .append(r.getWidth()).append(" ").append(r.getHeight()) - .append(" rect Z"); - } else if (s instanceof Ellipse2D) { - Ellipse2D e = (Ellipse2D) s; - double x = e.getX() + e.getWidth() / 2.0; - double y = e.getY() + e.getHeight() / 2.0; - double rx = e.getWidth() / 2.0; - double ry = e.getHeight() / 2.0; - out.append(x).append(" ").append(y).append(" ") - .append(rx).append(" ").append(ry).append(" ") - .append(360.0).append(" ").append(0.0) - .append(" ellipse Z"); - } else if (s instanceof Arc2D) { - Arc2D e = (Arc2D) s; - double x = (e.getX() + e.getWidth() / 2.0); - double y = (e.getY() + e.getHeight() / 2.0); - double rx = e.getWidth() / 2.0; - double ry = e.getHeight() / 2.0; - double startAngle = -e.getAngleStart(); - double endAngle = -(e.getAngleStart() + e.getAngleExtent()); - out.append(x).append(" ").append(y).append(" ") - .append(rx).append(" ").append(ry).append(" ") - .append(startAngle).append(" ").append(endAngle) - .append(" ellipse"); - if (e.getArcType() == Arc2D.CHORD) { - out.append(" Z"); - } else if (e.getArcType() == Arc2D.PIE) { - out.append(" ").append(x).append(" ").append(y).append(" L Z"); - } - } else { - PathIterator segments = s.getPathIterator(null); - double[] coordsCur = new double[6]; - double[] pointPrev = new double[2]; - for (int i = 0; !segments.isDone(); i++, segments.next()) { - if (i > 0) { - out.append(" "); - } - int segmentType = segments.currentSegment(coordsCur); - switch (segmentType) { - case PathIterator.SEG_MOVETO: - out.append(coordsCur[0]).append(" ").append(coordsCur[1]) - .append(" M"); - pointPrev[0] = coordsCur[0]; - pointPrev[1] = coordsCur[1]; - break; - case PathIterator.SEG_LINETO: - out.append(coordsCur[0]).append(" ").append(coordsCur[1]) - .append(" L"); - pointPrev[0] = coordsCur[0]; - pointPrev[1] = coordsCur[1]; - break; - case PathIterator.SEG_CUBICTO: - out.append(coordsCur[0]).append(" ").append(coordsCur[1]) - .append(" ").append(coordsCur[2]).append(" ") - .append(coordsCur[3]).append(" ").append(coordsCur[4]) - .append(" ").append(coordsCur[5]).append(" C"); - pointPrev[0] = coordsCur[4]; - pointPrev[1] = coordsCur[5]; - break; - case PathIterator.SEG_QUADTO: - double x1 = pointPrev[0] + 2.0 / 3.0 * (coordsCur[0] - pointPrev[0]); - double y1 = pointPrev[1] + 2.0 / 3.0 * (coordsCur[1] - pointPrev[1]); - double x2 = coordsCur[0] + 1.0 / 3.0 * (coordsCur[2] - coordsCur[0]); - double y2 = coordsCur[1] + 1.0 / 3.0 * (coordsCur[3] - coordsCur[1]); - double x3 = coordsCur[2]; - double y3 = coordsCur[3]; - out.append(x1).append(" ").append(y1).append(" ") - .append(x2).append(" ").append(y2).append(" ") - .append(x3).append(" ").append(y3).append(" C"); - pointPrev[0] = x3; - pointPrev[1] = y3; - break; - case PathIterator.SEG_CLOSE: - out.append("Z"); - break; - default: - throw new IllegalStateException("Unknown path operation."); - } - } - } - return out.toString(); - } - - private static String getOutput(Image image, int imageWidth, int imageHeight, - double x, double y, double width, double height) { - StringBuilder out = new StringBuilder(); - - BufferedImage bufferedImage = GraphicsUtils.toBufferedImage(image); - int bands = bufferedImage.getSampleModel().getNumBands(); - int bitsPerSample = DataUtils.max(bufferedImage.getSampleModel().getSampleSize()); - bitsPerSample = (int) (Math.ceil(bitsPerSample / 8.0) * 8.0); - if (bands > 3) { - bands = 3; - } - - out.append("gsave").append(EOL); - if (x != 0.0 || y != 0.0) { - out.append(x).append(" ").append(y).append(" translate").append(EOL); - } - if (width != 1.0 || height != 1.0) { - out.append(width).append(" ").append(height).append(" scale").append(EOL); - } - - int decodeScale = 1; - if (bufferedImage.getColorModel().hasAlpha()) { - // TODO Use different InterleaveType (2 or 3) for more efficient compression - out.append("<< /ImageType 3 /InterleaveType 1 ") - .append("/MaskDict ") - .append(imageWidth).append(" ").append(imageHeight).append(" ") - .append(1).append(" ").append(bitsPerSample).append(" ").append(decodeScale).append(" ") - .append(false).append(" ").append(0).append(" imgdict ") - .append("/DataDict ") - .append(imageWidth).append(" ").append(imageHeight).append(" ") - .append(bands).append(" ").append(bitsPerSample).append(" ").append(decodeScale).append(" ") - .append(true).append(" currentfile /ASCII85Decode filter ") - .append("<< /BitsPerComponent ").append(bitsPerSample).append(" >> ") - .append("/FlateDecode filter ") - .append("imgdict ") - .append(">> image").append(EOL); - - // Convert alpha values to binary mask - // FIXME Do alpha conversion in a preprocessing step on commands - bufferedImage = new AlphaToMaskOp(true).filter(bufferedImage, null); - output(bufferedImage, out); - } else { - if (bands == 1) { - out.append("/DeviceGray setcolorspace").append(EOL); - } - if (bufferedImage.getType() == BufferedImage.TYPE_BYTE_BINARY) { - decodeScale = 255; - } - out.append(imageWidth).append(" ").append(imageHeight).append(" ") - .append(bands).append(" ").append(bitsPerSample).append(" ").append(decodeScale).append(" ") - .append(true).append(" currentfile /ASCII85Decode filter ") - .append("<< /BitsPerComponent ").append(bitsPerSample).append(" >> ") - .append("/FlateDecode filter ") - .append("imgdict ") - .append("image").append(EOL); - output(bufferedImage, out); - } - - out.append("grestore"); - return out.toString(); - } - - private static void output(BufferedImage image, StringBuilder out) { - InputStream imageDataStream = - new ImageDataStream(image, Interleaving.SAMPLE); - ByteArrayOutputStream outBytes = new ByteArrayOutputStream(); - OutputStream compressionStream = new FlateEncodeStream( - new ASCII85EncodeStream( - new LineWrapOutputStream(outBytes, 80))); - try { - DataUtils.transfer(imageDataStream, compressionStream, 1024); - compressionStream.close(); - String compressed = outBytes.toString(CHARSET); - out.append(compressed).append(EOL); - } catch (IOException e) { - // TODO Handle exception - e.printStackTrace(); - } - } - - private static String getOutput(String str, double x, double y) { - - return "gsave 1 -1 scale " + x + " " + -y + " M " + getOutput(str) + " show " + "grestore"; - } - - private static StringBuilder getOutput(String str) { - StringBuilder out = new StringBuilder(); - - // Escape text - str = str.replaceAll("\\\\", "\\\\\\\\") - .replaceAll("\t", "\\\\t") - .replaceAll("\b", "\\\\b") - .replaceAll("\f", "\\\\f") - .replaceAll("\\(", "\\\\(") - .replaceAll("\\)", "\\\\)") - .replaceAll("[\r\n]", ""); - - out.append("(").append(str).append(")"); - - return out; - } - - private static String getOutput(Stroke s) { - StringBuilder out = new StringBuilder(); - if (s instanceof BasicStroke) { - BasicStroke bs = (BasicStroke) s; - out.append(bs.getLineWidth()).append(" setlinewidth ") - .append(STROKE_LINEJOIN.get(bs.getLineJoin())).append(" setlinejoin ") - .append(STROKE_ENDCAPS.get(bs.getEndCap())).append(" setlinecap ") - .append("[").append(DataUtils.join(" ", bs.getDashArray())).append("] ") - .append(bs.getDashPhase()).append(" setdash"); - } else { - out.append("% Custom strokes aren't supported at the moment"); - } - return out.toString(); - } - - private static String getOutput(Font font) { - StringBuilder out = new StringBuilder(); - font = GraphicsUtils.getPhysicalFont(font); - String fontName = font.getPSName(); - - // Convert font to ISO-8859-1 encoding - String fontNameLatin1 = fontName + FONT_LATIN1_SUFFIX; - out.append("/").append(fontNameLatin1).append(" ") - .append("/").append(font.getPSName()).append(" latinize "); - - // Use encoded font - out.append("/").append(fontNameLatin1).append(" ") - .append(font.getSize2D()).append(" selectfont"); - - return out.toString(); - } - - private void addHeader() { - double x = getPageSize().x * UNITS_PER_MM, - y = getPageSize().y * UNITS_PER_MM, - width = getPageSize().width * UNITS_PER_MM, - height = getPageSize().height * UNITS_PER_MM; - elements.addAll(Arrays.asList( - "%!PS-Adobe-3.0 EPSF-3.0", - "%%BoundingBox: " + ((int) Math.floor(x)) + " " + ((int) Math.floor(y)) + " " + ((int) Math.ceil(x + width)) + " " + ((int) Math.ceil(y + height)), - "%%HiResBoundingBox: " + x + " " + y + " " + (x + width) + " " + (y + height), - "%%LanguageLevel: 3", - "%%Pages: 1", - "%%EndComments", - "%%Page: 1 1", - "/M /moveto load def", - "/L /lineto load def", - "/C /curveto load def", - "/Z /closepath load def", - "/RL /rlineto load def", - "/rgb /setrgbcolor load def", - "/rect { /height exch def /width exch def /y exch def /x exch def x y M width 0 RL 0 height RL width neg 0 RL } bind def", - "/ellipse { /endangle exch def /startangle exch def /ry exch def /rx exch def /y exch def /x exch def /savematrix matrix currentmatrix def x y translate rx ry scale 0 0 1 startangle endangle arcn savematrix setmatrix } bind def", - "/imgdict { /datastream exch def /hasdata exch def /decodeScale exch def /bits exch def /bands exch def /imgheight exch def /imgwidth exch def << /ImageType 1 /Width imgwidth /Height imgheight /BitsPerComponent bits /Decode [bands {0 decodeScale} repeat] /ImageMatrix [imgwidth 0 0 imgheight 0 0] hasdata { /DataSource datastream } if >> } bind def", - "/latinize { /fontName exch def /fontNameNew exch def fontName findfont 0 dict copy begin /Encoding ISOLatin1Encoding def fontNameNew /FontName def currentdict end dup /FID undef fontNameNew exch definefont pop } bind def", - getOutput(GraphicsState.DEFAULT_FONT), - "gsave", - "clipsave", - "/DeviceRGB setcolorspace", - "0 " + height + " translate", - UNITS_PER_MM + " " + (-UNITS_PER_MM) + " scale", - "/basematrix matrix currentmatrix def" - )); - } - - public void write(OutputStream out) throws IOException { - OutputStreamWriter o = new OutputStreamWriter(out, CHARSET); - for (String element : elements) { - if (element == null) { - continue; - } - - // Write current element in lines of 255 bytes (excluding line terminators) - // Numbers must not be separated by line breaks or errors will occur - // TODO: Integrate functionality into LineWrapOutputStream - Matcher chunkMatcher = ELEMENT_SEPARATION_PATTERN.matcher(element); - - boolean chunkFound = false; - while (chunkMatcher.find()) { - chunkFound = true; - String chunk = chunkMatcher.group(); - o.write(chunk, 0, chunk.length()); - o.append(EOL); - } - if (!chunkFound) { - // TODO: Exception, if no whitespace can be found in the chunk - System.err.println("Unable to divide eps element into lines: " + element); - } - } - o.append("%%EOF"); - o.flush(); - } - - public void handle(Command command) { - if (command instanceof SetClipCommand) { - SetClipCommand c = (SetClipCommand) command; - Shape clip = c.getValue(); - elements.add("cliprestore"); - if (clip != null) { - elements.add(getOutput(clip) + " clip"); - } - } else if (command instanceof SetColorCommand) { - SetColorCommand c = (SetColorCommand) command; - elements.add(getOutput(c.getValue())); - } else if (command instanceof SetCompositeCommand) { - SetCompositeCommand c = (SetCompositeCommand) command; - // TODO Implement composite rendering for EPS - elements.add("% composite not yet implemented: " + c.getValue()); - } else if (command instanceof SetFontCommand) { - SetFontCommand c = (SetFontCommand) command; - elements.add(getOutput(c.getValue())); - } else if (command instanceof SetPaintCommand) { - SetPaintCommand c = (SetPaintCommand) command; - // TODO Implement paint rendering for EPS - elements.add("% paint not yet implemented: " + c.getValue()); - } else if (command instanceof SetStrokeCommand) { - SetStrokeCommand c = (SetStrokeCommand) command; - elements.add(getOutput(c.getValue())); - } else if (command instanceof SetTransformCommand) { - SetTransformCommand c = (SetTransformCommand) command; - StringBuilder e = new StringBuilder(); - double[] matrix = new double[6]; - c.getValue().getMatrix(matrix); - e.append("basematrix setmatrix [") - .append(DataUtils.join(" ", matrix)).append("] concat"); - elements.add(e.toString()); - } else if (command instanceof RotateCommand) { - RotateCommand c = (RotateCommand) command; - StringBuilder e = new StringBuilder(); - double x = c.getCenterX(); - double y = c.getCenterY(); - boolean translated = x != 0.0 || y != 0.0; - if (translated) { - e.append(x).append(" ").append(y).append(" translate "); - } - e.append(Math.toDegrees(c.getTheta())).append(" rotate"); - if (translated) { - e.append(" "); - e.append(-x).append(" ").append(-y).append(" translate"); - } - elements.add(e.toString()); - } else if (command instanceof ScaleCommand) { - ScaleCommand c = (ScaleCommand) command; - elements.add(DataUtils.format(c.getScaleX()) + " " + DataUtils.format(c.getScaleY()) + " scale"); - } else if (command instanceof ShearCommand) { - ShearCommand c = (ShearCommand) command; - elements.add("[1 " + DataUtils.format(c.getShearY()) + " " + DataUtils.format(c.getShearX()) + " 1 0 0] concat"); - } else if (command instanceof TransformCommand) { - TransformCommand c = (TransformCommand) command; - StringBuilder e = new StringBuilder(); - double[] matrix = new double[6]; - c.getValue().getMatrix(matrix); - e.append("[").append(DataUtils.join(" ", matrix)) - .append("] concat"); - elements.add(e.toString()); - } else if (command instanceof TranslateCommand) { - TranslateCommand c = (TranslateCommand) command; - elements.add(String.valueOf(c.getDeltaX()) + " " + c.getDeltaY() + " translate"); - } else if (command instanceof DrawImageCommand) { - DrawImageCommand c = (DrawImageCommand) command; - String e = getOutput(c.getValue(), - c.getImageWidth(), c.getImageHeight(), - c.getX(), c.getY(), c.getWidth(), c.getHeight()); - elements.add(e); - } else if (command instanceof DrawShapeCommand) { - DrawShapeCommand c = (DrawShapeCommand) command; - elements.add(getOutput(c.getValue()) + " stroke"); - } else if (command instanceof DrawStringCommand) { - DrawStringCommand c = (DrawStringCommand) command; - elements.add(getOutput(c.getValue(), c.getX(), c.getY())); - } else if (command instanceof FillShapeCommand) { - FillShapeCommand c = (FillShapeCommand) command; - elements.add(getOutput(c.getValue()) + " fill"); - } else if (command instanceof CreateCommand) { - elements.add("gsave"); - } else if (command instanceof DisposeCommand) { - elements.add("grestore"); - } - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessor.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessor.java deleted file mode 100644 index 65fa2b3..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessor.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.xbib.graphics.chart.io.vector.eps; - -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.Processor; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.filters.FillPaintedShapeAsImageFilter; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -public class EPSProcessor implements Processor { - public Document process(Iterable> commands, PageSize pageSize) { - // TODO Apply rotate(theta,x,y) => translate-rotate-translate filter - // TODO Apply image transparency => image mask filter - // TODO Apply optimization filter - FillPaintedShapeAsImageFilter paintedShapeAsImageFilter = new FillPaintedShapeAsImageFilter(commands); - EPSDocument doc = new EPSDocument(pageSize); - for (Command command : paintedShapeAsImageFilter) { - doc.handle(command); - } - doc.close(); - return doc; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/CommandHandler.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/CommandHandler.java deleted file mode 100644 index ee0500c..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/CommandHandler.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; - -public interface CommandHandler { - void handle(Command command); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/AffineTransformCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/AffineTransformCommand.java deleted file mode 100644 index bcfa6c5..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/AffineTransformCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; - -public abstract class AffineTransformCommand extends StateCommand { - public AffineTransformCommand(AffineTransform transform) { - super(transform); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Command.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Command.java deleted file mode 100644 index e1858fd..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Command.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.util.Locale; - -public abstract class Command { - private final T value; - - public Command(T value) { - this.value = value; - } - - public T getValue() { - return value; - } - - @Override - public String toString() { - return String.format((Locale) null, "%s[value=%s]", - getClass().getName(), getValue()); - } - - @Override - public boolean equals(Object obj) { - if (obj == null || !getClass().equals(obj.getClass())) { - return false; - } - Command o = (Command) obj; - return value == o.value || value.equals(o.value); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/CreateCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/CreateCommand.java deleted file mode 100644 index a48e9bb..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/CreateCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import org.xbib.graphics.chart.io.vector.VectorGraphics2D; - -public class CreateCommand extends StateCommand { - public CreateCommand(VectorGraphics2D graphics) { - super(graphics); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DisposeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DisposeCommand.java deleted file mode 100644 index d9c20b9..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DisposeCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import org.xbib.graphics.chart.io.vector.VectorGraphics2D; - -public class DisposeCommand extends StateCommand { - public DisposeCommand(VectorGraphics2D graphics) { - super(graphics); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawImageCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawImageCommand.java deleted file mode 100644 index 60c8ac1..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawImageCommand.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Image; -import java.util.Locale; - -public class DrawImageCommand extends Command { - private final int imageWidth; - private final int imageHeight; - private final double x; - private final double y; - private final double width; - private final double height; - - public DrawImageCommand(Image image, int imageWidth, int imageHeight, - double x, double y, double width, double height) { - super(image); - this.imageWidth = imageWidth; - this.imageHeight = imageHeight; - this.x = x; - this.y = y; - this.width = width; - this.height = height; - } - - public int getImageWidth() { - return imageWidth; - } - - public int getImageHeight() { - return imageHeight; - } - - public double getX() { - return x; - } - - public double getY() { - return y; - } - - public double getWidth() { - return width; - } - - public double getHeight() { - return height; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[value=%s, imageWidth=%d, imageHeight=%d, x=%f, y=%f, width=%f, height=%f]", - getClass().getName(), getValue(), - getImageWidth(), getImageHeight(), - getX(), getY(), getWidth(), getHeight()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawShapeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawShapeCommand.java deleted file mode 100644 index 7757989..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawShapeCommand.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; - -import java.awt.Shape; - -public class DrawShapeCommand extends Command { - public DrawShapeCommand(Shape shape) { - super(GraphicsUtils.clone(shape)); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawStringCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawStringCommand.java deleted file mode 100644 index 1bb81a0..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/DrawStringCommand.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.util.Locale; - - -public class DrawStringCommand extends Command { - private final double x; - private final double y; - - public DrawStringCommand(String string, double x, double y) { - super(string); - this.x = x; - this.y = y; - } - - public double getX() { - return x; - } - - public double getY() { - return y; - } - - @Override - public String toString() { - return String.format((Locale) null, "%s[value=%s, x=%f, y=%f]", - getClass().getName(), getValue(), getX(), getY()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/FillShapeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/FillShapeCommand.java deleted file mode 100644 index d8abbeb..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/FillShapeCommand.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; - -import java.awt.Shape; - -public class FillShapeCommand extends Command { - public FillShapeCommand(Shape shape) { - super(GraphicsUtils.clone(shape)); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Group.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Group.java deleted file mode 100644 index 0b67f65..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/Group.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.util.LinkedList; -import java.util.List; - -public class Group extends Command>> { - public Group() { - super(new LinkedList>()); - } - - public void add(Command command) { - List> group = getValue(); - group.add(command); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/RotateCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/RotateCommand.java deleted file mode 100644 index e05a203..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/RotateCommand.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; -import java.util.Locale; - -public class RotateCommand extends AffineTransformCommand { - private final double theta; - private final double centerX; - private final double centerY; - - public RotateCommand(double theta, double centerX, double centerY) { - super(AffineTransform.getRotateInstance(theta, centerX, centerY)); - this.theta = theta; - this.centerX = centerX; - this.centerY = centerY; - } - - public double getTheta() { - return theta; - } - - public double getCenterX() { - return centerX; - } - - public double getCenterY() { - return centerY; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[theta=%f, centerX=%f, centerY=%f, value=%s]", - getClass().getName(), getTheta(), getCenterX(), getCenterY(), - getValue()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ScaleCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ScaleCommand.java deleted file mode 100644 index 2d61a6b..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ScaleCommand.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; -import java.util.Locale; - -public class ScaleCommand extends AffineTransformCommand { - private final double scaleX; - private final double scaleY; - - public ScaleCommand(double scaleX, double scaleY) { - super(AffineTransform.getScaleInstance(scaleX, scaleY)); - this.scaleX = scaleX; - this.scaleY = scaleY; - } - - public double getScaleX() { - return scaleX; - } - - public double getScaleY() { - return scaleY; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[scaleX=%f, scaleY=%f, value=%s]", getClass().getName(), - getScaleX(), getScaleY(), getValue()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetBackgroundCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetBackgroundCommand.java deleted file mode 100644 index 79baa1f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetBackgroundCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Color; - -public class SetBackgroundCommand extends StateCommand { - public SetBackgroundCommand(Color color) { - super(color); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetClipCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetClipCommand.java deleted file mode 100644 index 4d865da..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetClipCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Shape; - -public class SetClipCommand extends StateCommand { - public SetClipCommand(Shape shape) { - super(shape); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetColorCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetColorCommand.java deleted file mode 100644 index d5d3fc1..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetColorCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Color; - -public class SetColorCommand extends StateCommand { - public SetColorCommand(Color color) { - super(color); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetCompositeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetCompositeCommand.java deleted file mode 100644 index bddd414..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetCompositeCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Composite; - -public class SetCompositeCommand extends StateCommand { - public SetCompositeCommand(Composite composite) { - super(composite); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetFontCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetFontCommand.java deleted file mode 100644 index 4e4d331..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetFontCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Font; - -public class SetFontCommand extends StateCommand { - public SetFontCommand(Font font) { - super(font); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetHintCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetHintCommand.java deleted file mode 100644 index 6a50801..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetHintCommand.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.util.Locale; - -public class SetHintCommand extends StateCommand { - private final Object key; - - public SetHintCommand(Object hintKey, Object hintValue) { - super(hintValue); - key = hintKey; - } - - public Object getKey() { - return key; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[key=%s, value=%s]", getClass().getName(), - getKey(), getValue()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetPaintCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetPaintCommand.java deleted file mode 100644 index b258680..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetPaintCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Paint; - -public class SetPaintCommand extends StateCommand { - public SetPaintCommand(Paint paint) { - super(paint); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetStrokeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetStrokeCommand.java deleted file mode 100644 index 1489e3f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetStrokeCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Stroke; - -public class SetStrokeCommand extends StateCommand { - public SetStrokeCommand(Stroke stroke) { - super(stroke); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetTransformCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetTransformCommand.java deleted file mode 100644 index 6730a8c..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetTransformCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; - -public class SetTransformCommand extends StateCommand { - public SetTransformCommand(AffineTransform transform) { - super(new AffineTransform(transform)); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetXORModeCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetXORModeCommand.java deleted file mode 100644 index 69239b8..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/SetXORModeCommand.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.Color; - -public class SetXORModeCommand extends StateCommand { - public SetXORModeCommand(Color mode) { - super(mode); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ShearCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ShearCommand.java deleted file mode 100644 index 0efd918..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/ShearCommand.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; -import java.util.Locale; - -public class ShearCommand extends AffineTransformCommand { - private final double shearX; - private final double shearY; - - public ShearCommand(double shearX, double shearY) { - super(AffineTransform.getShearInstance(shearX, shearY)); - this.shearX = shearX; - this.shearY = shearY; - } - - public double getShearX() { - return shearX; - } - - public double getShearY() { - return shearY; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[shearX=%f, shearY=%f, value=%s]", getClass().getName(), - getShearX(), getShearY(), getValue()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/StateCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/StateCommand.java deleted file mode 100644 index fec7cae..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/StateCommand.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -public abstract class StateCommand extends Command { - public StateCommand(T value) { - super(value); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TransformCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TransformCommand.java deleted file mode 100644 index deb6a27..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TransformCommand.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; - -public class TransformCommand extends AffineTransformCommand { - private final AffineTransform transform; - - public TransformCommand(AffineTransform transform) { - super(transform); - this.transform = new AffineTransform(transform); - } - - public AffineTransform getTransform() { - return transform; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TranslateCommand.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TranslateCommand.java deleted file mode 100644 index a58f092..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/commands/TranslateCommand.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.commands; - -import java.awt.geom.AffineTransform; -import java.util.Locale; - -public class TranslateCommand extends AffineTransformCommand { - private final double deltaX; - private final double deltaY; - - public TranslateCommand(double x, double y) { - super(AffineTransform.getTranslateInstance(x, y)); - this.deltaX = x; - this.deltaY = y; - } - - public double getDeltaX() { - return deltaX; - } - - public double getDeltaY() { - return deltaY; - } - - @Override - public String toString() { - return String.format((Locale) null, - "%s[deltaX=%f, deltaY=%f, value=%s]", getClass().getName(), - getDeltaX(), getDeltaY(), getValue()); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilter.java deleted file mode 100644 index 95a2e63..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilter.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.AffineTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TransformCommand; - -import java.awt.geom.AffineTransform; -import java.awt.geom.NoninvertibleTransformException; -import java.util.Arrays; -import java.util.List; -import java.util.Stack; - -public class AbsoluteToRelativeTransformsFilter extends Filter { - private Stack transforms; - - public AbsoluteToRelativeTransformsFilter(Iterable> stream) { - super(stream); - transforms = new Stack(); - } - - @Override - public Command next() { - Command nextCommand = super.next(); - if (nextCommand instanceof AffineTransformCommand) { - AffineTransformCommand affineTransformCommand = (AffineTransformCommand) nextCommand; - getCurrentTransform().concatenate(affineTransformCommand.getValue()); - } else if (nextCommand instanceof CreateCommand) { - AffineTransform newTransform = transforms.isEmpty() ? new AffineTransform() : new AffineTransform(getCurrentTransform()); - transforms.push(newTransform); - } else if (nextCommand instanceof DisposeCommand) { - transforms.pop(); - } - - return nextCommand; - } - - @Override - protected List> filter(Command command) { - if (command instanceof SetTransformCommand) { - SetTransformCommand setTransformCommand = (SetTransformCommand) command; - AffineTransform absoluteTransform = setTransformCommand.getValue(); - AffineTransform relativeTransform = new AffineTransform(); - try { - AffineTransform invertedOldTransformation = getCurrentTransform().createInverse(); - relativeTransform.concatenate(invertedOldTransformation); - } catch (NoninvertibleTransformException e) { - e.printStackTrace(); - } - relativeTransform.concatenate(absoluteTransform); - TransformCommand transformCommand = new TransformCommand(relativeTransform); - return Arrays.>asList(transformCommand); - } - return Arrays.>asList(command); - } - - private AffineTransform getCurrentTransform() { - return transforms.peek(); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilter.java deleted file mode 100644 index ba43f32..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilter.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; - -import java.awt.Graphics2D; -import java.awt.RenderingHints; -import java.awt.Shape; -import java.awt.geom.Rectangle2D; -import java.awt.image.BufferedImage; -import java.util.Arrays; -import java.util.List; - -public class FillPaintedShapeAsImageFilter extends Filter { - private SetPaintCommand lastSetPaintCommand; - - public FillPaintedShapeAsImageFilter(Iterable> stream) { - super(stream); - } - - @Override - public Command next() { - Command nextCommand = super.next(); - - if (nextCommand instanceof SetPaintCommand) { - lastSetPaintCommand = (SetPaintCommand) nextCommand; - } else if (nextCommand instanceof DisposeCommand) { - lastSetPaintCommand = null; - } - - return nextCommand; - } - - private DrawImageCommand getDrawImageCommand(FillShapeCommand shapeCommand, SetPaintCommand paintCommand) { - Shape shape = shapeCommand.getValue(); - Rectangle2D shapeBounds = shape.getBounds2D(); - double x = shapeBounds.getX(); - double y = shapeBounds.getY(); - double width = shapeBounds.getWidth(); - double height = shapeBounds.getHeight(); - int imageWidth = (int) Math.round(width); - int imageHeight = (int) Math.round(height); - BufferedImage image = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_ARGB); - Graphics2D imageGraphics = (Graphics2D) image.getGraphics(); - imageGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - imageGraphics.scale(imageWidth / width, imageHeight / height); - imageGraphics.translate(-shapeBounds.getX(), -shapeBounds.getY()); - imageGraphics.setPaint(paintCommand.getValue()); - imageGraphics.fill(shape); - imageGraphics.dispose(); - - DrawImageCommand drawImageCommand = new DrawImageCommand(image, imageWidth, imageHeight, x, y, width, height); - return drawImageCommand; - } - - @Override - protected List> filter(Command command) { - if (lastSetPaintCommand != null && command instanceof FillShapeCommand) { - FillShapeCommand fillShapeCommand = (FillShapeCommand) command; - DrawImageCommand drawImageCommand = getDrawImageCommand(fillShapeCommand, lastSetPaintCommand); - return Arrays.>asList(drawImageCommand); - } - - return Arrays.>asList(command); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/Filter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/Filter.java deleted file mode 100644 index c937df7..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/Filter.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; - -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -public abstract class Filter implements Iterable>, Iterator> { - private final Queue> buffer; - private final Iterator> iterator; - - public Filter(Iterable> stream) { - buffer = new LinkedList>(); - iterator = stream.iterator(); - } - - public Iterator> iterator() { - return this; - } - - public boolean hasNext() { - findNextCommand(); - return !buffer.isEmpty(); - } - - private void findNextCommand() { - while (buffer.isEmpty() && iterator.hasNext()) { - Command command = iterator.next(); - List> commands = filter(command); - if (commands != null) { - buffer.addAll(commands); - } - } - } - - public Command next() { - findNextCommand(); - return buffer.poll(); - } - - public void remove() { - } - - protected abstract List> filter(Command command); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilter.java deleted file mode 100644 index a0e60dc..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilter.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Group; - -import java.util.Arrays; -import java.util.List; - - -public abstract class GroupingFilter extends Filter { - private Group group; - - public GroupingFilter(Iterable> stream) { - super(stream); - } - - @Override - public boolean hasNext() { - return group != null || super.hasNext(); - } - - @Override - public Command next() { - if (group == null) { - return super.next(); - } - Group g = group; - group = null; - return g; - } - - @Override - protected List> filter(Command command) { - boolean grouped = isGrouped(command); - if (grouped) { - if (group == null) { - group = new Group(); - } - group.add(command); - return null; - } - return Arrays.>asList(command); - } - - protected abstract boolean isGrouped(Command command); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/OptimizeFilter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/OptimizeFilter.java deleted file mode 100644 index 82cf1c7..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/OptimizeFilter.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.AffineTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetHintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.StateCommand; - -import java.util.Arrays; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -public class OptimizeFilter extends Filter { - private final Queue> buffer; - - public OptimizeFilter(Iterable> stream) { - super(stream); - buffer = new LinkedList>(); - } - - private static boolean isStateChange(Command command) { - return (command instanceof StateCommand) && - !(command instanceof AffineTransformCommand) && - !(command instanceof SetHintCommand); - } - - @Override - public boolean hasNext() { - return super.hasNext(); - } - - @Override - public Command next() { - if (buffer.isEmpty()) { - return super.next(); - } - return buffer.poll(); - } - - @Override - protected List> filter(Command command) { - if (!isStateChange(command)) { - return Arrays.>asList(command); - } - Iterator> i = buffer.iterator(); - Class cls = command.getClass(); - while (i.hasNext()) { - if (cls.equals(i.next().getClass())) { - i.remove(); - } - } - buffer.add(command); - return null; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/StateChangeGroupingFilter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/StateChangeGroupingFilter.java deleted file mode 100644 index fe64a15..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/intermediate/filters/StateChangeGroupingFilter.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.StateCommand; - - -public class StateChangeGroupingFilter extends GroupingFilter { - - public StateChangeGroupingFilter(Iterable> stream) { - super(stream); - } - - @Override - protected boolean isGrouped(Command command) { - return command instanceof StateCommand; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/GeneratedPayload.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/GeneratedPayload.java deleted file mode 100644 index ef063af..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/GeneratedPayload.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import java.io.IOException; - -public abstract class GeneratedPayload extends Payload { - - public GeneratedPayload(boolean stream) { - super(stream); - } - - @Override - public byte[] getBytes() { - try { - for (byte b : generatePayload()) { - super.write(b); - } - } catch (IOException e) { - throw new RuntimeException(e); - } - return super.getBytes(); - } - - @Override - public void write(int b) throws IOException { - throw new UnsupportedOperationException("Payload will be calculated and is read only."); - } - - protected abstract byte[] generatePayload(); -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFDocument.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFDocument.java deleted file mode 100644 index e5f4cce..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFDocument.java +++ /dev/null @@ -1,647 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.xbib.graphics.chart.io.vector.GraphicsState; -import org.xbib.graphics.chart.io.vector.SizedDocument; -import org.xbib.graphics.chart.io.vector.intermediate.commands.AffineTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawStringCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Group; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetBackgroundCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetClipCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetFontCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetHintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.util.DataUtils; -import org.xbib.graphics.chart.io.vector.util.FlateEncodeStream; -import org.xbib.graphics.chart.io.vector.util.FormattingWriter; -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; -import org.xbib.graphics.chart.io.vector.util.ImageDataStream; -import org.xbib.graphics.chart.io.vector.util.ImageDataStream.Interleaving; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Font; -import java.awt.Image; -import java.awt.Shape; -import java.awt.Stroke; -import java.awt.geom.AffineTransform; -import java.awt.geom.PathIterator; -import java.awt.image.BufferedImage; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; -import java.lang.reflect.InvocationTargetException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Stack; - -public class PDFDocument extends SizedDocument { - private static final String EOL = "\n"; - private static final String CHARSET = "ISO-8859-1"; - private static final String HEADER = "%PDF-1.4"; - private static final String FOOTER = "%%EOF"; - - /** - * Constant to convert values from millimeters to PDF units (1/72th inch). - */ - private static final double MM_IN_UNITS = 72.0 / 25.4; - - /** - * Mapping of stroke endcap values from Java to PDF. - */ - private static final Map STROKE_ENDCAPS = DataUtils.map( - new Integer[]{BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE}, - new Integer[]{0, 1, 2} - ); - - /** - * Mapping of line join values for path drawing from Java to PDF. - */ - private static final Map STROKE_LINEJOIN = DataUtils.map( - new Integer[]{BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL}, - new Integer[]{0, 1, 2} - ); - - private final List objects; - private final Map xref; - private final Map images; - private final Stack states; - private int objectIdCounter; - private PDFObject contents; - private Resources resources; - private boolean transformed; - - private boolean compressed; - - public PDFDocument(PageSize pageSize) { - super(pageSize); - states = new Stack<>(); - states.push(new GraphicsState()); - objects = new LinkedList<>(); - objectIdCounter = 1; - xref = new HashMap<>(); - images = new HashMap<>(); - initPage(); - } - - public static String toString(PDFObject obj) { - StringBuilder out = new StringBuilder(); - out.append(obj.id).append(" ").append(obj.version).append(" obj") - .append(EOL); - if (!obj.dict.isEmpty()) { - out.append(serialize(obj.dict)).append(EOL); - } - if (obj.payload != null) { - String content; - try { - content = new String(obj.payload.getBytes(), CHARSET); - } catch (UnsupportedEncodingException e) { - content = ""; - } - if (content.length() > 0) { - if (obj.payload.isStream()) { - out.append("stream").append(EOL); - } - out.append(content); - if (obj.payload.isStream()) { - out.append("endstream"); - } - out.append(EOL); - } - } - out.append("endobj"); - return out.toString(); - } - - private static String serialize(Object obj) { - if (obj instanceof String) { - return "/" + obj.toString(); - } else if (obj instanceof float[]) { - return serialize(DataUtils.asList((float[]) obj)); - } else if (obj instanceof double[]) { - return serialize(DataUtils.asList((double[]) obj)); - } else if (obj instanceof Object[]) { - return serialize(Arrays.asList((Object[]) obj)); - } else if (obj instanceof List) { - List list = (List) obj; - StringBuilder out = new StringBuilder(); - out.append("["); - int i = 0; - for (Object elem : list) { - if (i++ > 0) { - out.append(" "); - } - out.append(serialize(elem)); - } - out.append("]"); - return out.toString(); - } else if (obj instanceof Map) { - Map dict = (Map) obj; - StringBuilder out = new StringBuilder(); - out.append("<<").append(EOL); - for (Map.Entry entry : dict.entrySet()) { - String key = entry.getKey().toString(); - out.append(serialize(key)).append(" "); - - Object value = entry.getValue(); - out.append(serialize(value)).append(EOL); - } - out.append(">>"); - return out.toString(); - } else if (obj instanceof PDFObject) { - PDFObject pdfObj = (PDFObject) obj; - return String.valueOf(pdfObj.id) + " " + pdfObj.version + " R"; - } else { - return DataUtils.format(obj); - } - } - - private static String getOutput(Color c) { - StringBuilder out = new StringBuilder(); - String r = serialize(c.getRed() / 255.0); - String g = serialize(c.getGreen() / 255.0); - String b = serialize(c.getBlue() / 255.0); - out.append(r).append(" ").append(g).append(" ").append(b).append(" rg ") - .append(r).append(" ").append(g).append(" ").append(b).append(" RG"); - return out.toString(); - } - - private static String getOutput(Shape s) { - StringBuilder out = new StringBuilder(); - PathIterator segments = s.getPathIterator(null); - double[] coordsCur = new double[6]; - double[] pointPrev = new double[2]; - for (int i = 0; !segments.isDone(); i++, segments.next()) { - if (i > 0) { - out.append(" "); - } - int segmentType = segments.currentSegment(coordsCur); - switch (segmentType) { - case PathIterator.SEG_MOVETO: - out.append(serialize(coordsCur[0])).append(" ") - .append(serialize(coordsCur[1])).append(" m"); - pointPrev[0] = coordsCur[0]; - pointPrev[1] = coordsCur[1]; - break; - case PathIterator.SEG_LINETO: - out.append(serialize(coordsCur[0])).append(" ") - .append(serialize(coordsCur[1])).append(" l"); - pointPrev[0] = coordsCur[0]; - pointPrev[1] = coordsCur[1]; - break; - case PathIterator.SEG_CUBICTO: - out.append(serialize(coordsCur[0])).append(" ") - .append(serialize(coordsCur[1])).append(" ") - .append(serialize(coordsCur[2])).append(" ") - .append(serialize(coordsCur[3])).append(" ") - .append(serialize(coordsCur[4])).append(" ") - .append(serialize(coordsCur[5])).append(" c"); - pointPrev[0] = coordsCur[4]; - pointPrev[1] = coordsCur[5]; - break; - case PathIterator.SEG_QUADTO: - double x1 = pointPrev[0] + 2.0 / 3.0 * (coordsCur[0] - pointPrev[0]); - double y1 = pointPrev[1] + 2.0 / 3.0 * (coordsCur[1] - pointPrev[1]); - double x2 = coordsCur[0] + 1.0 / 3.0 * (coordsCur[2] - coordsCur[0]); - double y2 = coordsCur[1] + 1.0 / 3.0 * (coordsCur[3] - coordsCur[1]); - double x3 = coordsCur[2]; - double y3 = coordsCur[3]; - out.append(serialize(x1)).append(" ") - .append(serialize(y1)).append(" ") - .append(serialize(x2)).append(" ") - .append(serialize(y2)).append(" ") - .append(serialize(x3)).append(" ") - .append(serialize(y3)).append(" c"); - pointPrev[0] = x3; - pointPrev[1] = y3; - break; - case PathIterator.SEG_CLOSE: - out.append("h"); - break; - default: - throw new IllegalStateException("Unknown path operation."); - } - } - - return out.toString(); - } - - private static String getOutput(GraphicsState state, Resources resources, boolean first) { - StringBuilder out = new StringBuilder(); - - if (!first) { - out.append("Q").append(EOL); - } - out.append("q").append(EOL); - - if (!state.getColor().equals(GraphicsState.DEFAULT_COLOR)) { - if (state.getColor().getAlpha() != GraphicsState.DEFAULT_COLOR.getAlpha()) { - double a = state.getColor().getAlpha() / 255.0; - String resourceId = resources.getId(a); - out.append("/").append(resourceId).append(" gs").append(EOL); - } - out.append(getOutput(state.getColor())).append(EOL); - } - if (!state.getTransform().equals(GraphicsState.DEFAULT_TRANSFORM)) { - out.append(getOutput(state.getTransform())).append(" cm").append(EOL); - } - if (!state.getStroke().equals(GraphicsState.DEFAULT_STROKE)) { - out.append(getOutput(state.getStroke())).append(EOL); - } - if (state.getClip() != GraphicsState.DEFAULT_CLIP) { - out.append(getOutput(state.getClip())).append(" W n").append(EOL); - } - if (!state.getFont().equals(GraphicsState.DEFAULT_FONT)) { - Font font = state.getFont(); - String fontResourceId = resources.getId(font); - float fontSize = font.getSize2D(); - out.append("/").append(fontResourceId).append(" ").append(fontSize) - .append(" Tf").append(EOL); - } - - return DataUtils.stripTrailing(out.toString(), EOL); - } - - private static String getOutput(Stroke s) { - StringBuilder out = new StringBuilder(); - if (s instanceof BasicStroke) { - BasicStroke strokeDefault = (BasicStroke) GraphicsState.DEFAULT_STROKE; - BasicStroke strokeNew = (BasicStroke) s; - if (strokeNew.getLineWidth() != strokeDefault.getLineWidth()) { - out.append(serialize(strokeNew.getLineWidth())) - .append(" w").append(EOL); - } - if (strokeNew.getLineJoin() == BasicStroke.JOIN_MITER && strokeNew.getMiterLimit() != strokeDefault.getMiterLimit()) { - out.append(serialize(strokeNew.getMiterLimit())) - .append(" M").append(EOL); - } - if (strokeNew.getLineJoin() != strokeDefault.getLineJoin()) { - out.append(serialize(STROKE_LINEJOIN.get(strokeNew.getLineJoin()))) - .append(" j").append(EOL); - } - if (strokeNew.getEndCap() != strokeDefault.getEndCap()) { - out.append(serialize(STROKE_ENDCAPS.get(strokeNew.getEndCap()))) - .append(" J").append(EOL); - } - if (strokeNew.getDashArray() != strokeDefault.getDashArray()) { - if (strokeNew.getDashArray() != null) { - out.append(serialize(strokeNew.getDashArray())).append(" ") - .append(serialize(strokeNew.getDashPhase())) - .append(" d").append(EOL); - } else { - out.append(EOL).append("[] 0 d").append(EOL); - } - } - } - return out.toString(); - } - - private static String getOutput(AffineTransform transform) { - double[] matrix = new double[6]; - transform.getMatrix(matrix); - return DataUtils.join(" ", matrix); - } - - private static String getOutput(String str, double x, double y) { - - // Save current graphics state - // Undo swapping of y axis - // Render text - // Restore previous graphics state - - return "q " + "1 0 0 -1 " + x + " " + y + " cm " + "BT " + getOutput(str) + " Tj ET " + "Q"; - } - - private static StringBuilder getOutput(String str) { - StringBuilder out = new StringBuilder(); - - // Escape string - str = str.replaceAll("\\\\", "\\\\\\\\") - .replaceAll("\t", "\\\\t") - .replaceAll("\b", "\\\\b") - .replaceAll("\f", "\\\\f") - .replaceAll("\\(", "\\\\(") - .replaceAll("\\)", "\\\\)") - .replaceAll("[\r\n]", ""); - - out.append("(").append(str).append(")"); - - return out; - } - - private static String getOutput(PDFObject image, double x, double y, - double width, double height, Resources resources) { - // Query image resource id - String resourceId = resources.getId(image); - - // Save graphics state - // Move image to correct position and scale it to (width, height) - // Swap y axis - // Draw image - // Restore old graphics state - - return "q " + width + " 0 0 " + height + " " + x + " " + y + " cm " + "1 0 0 -1 0 1 cm " + "/" + resourceId + " Do " + "Q"; - } - - private GraphicsState getCurrentState() { - return states.peek(); - } - - private void initPage() { - Map dict; - - // Catalog - dict = DataUtils.map( - new String[]{"Type"}, - new Object[]{"Catalog"} - ); - PDFObject catalog = addObject(dict, null); - - // Pages - List pagesKids = new LinkedList<>(); - dict = DataUtils.map( - new String[]{"Type", "Kids", "Count"}, - new Object[]{"Pages", pagesKids, 1} - ); - PDFObject pages = addObject(dict, null); - catalog.dict.put("Pages", pages); - - // Page - double x = getPageSize().x * MM_IN_UNITS; - double y = getPageSize().y * MM_IN_UNITS; - double width = getPageSize().width * MM_IN_UNITS; - double height = getPageSize().height * MM_IN_UNITS; - dict = DataUtils.map( - new String[]{"Type", "Parent", "MediaBox"}, - new Object[]{"Page", pages, new double[]{x, y, width, height}} - ); - PDFObject page = addObject(dict, null); - pagesKids.add(page); - - // Contents - Payload contentsPayload = new Payload(true); - contents = addObject(null, contentsPayload); - page.dict.put("Contents", contents); - - // Compression - if (compressed) { - try { - contentsPayload.addFilter(FlateEncodeStream.class); - contents.dict.put("Filter", new Object[]{"FlateDecode"}); - } catch (NoSuchMethodException | InstantiationException | InvocationTargetException | IllegalAccessException e) { - // ignore - } - } - - // Initial content - try { - contentsPayload.write(DataUtils.join("", new Object[]{ - "q", EOL, - getOutput(getCurrentState().getColor()), EOL, - MM_IN_UNITS, " 0 0 ", -MM_IN_UNITS, " 0 ", height, " cm", EOL - }).getBytes(CHARSET)); - } catch (IOException e) { - throw new RuntimeException(e); - } - - // Content length - Payload contentLengthPayload = new SizePayload(contents, CHARSET, false); - PDFObject contentLength = addObject(null, contentLengthPayload); - contents.dict.put("Length", contentLength); - - // Resources - resources = new Resources(objectIdCounter++, 0); - objects.add(resources); - page.dict.put("Resources", resources); - - // Create initial font - Font font = getCurrentState().getFont(); - String fontResourceId = resources.getId(font); - float fontSize = font.getSize2D(); - StringBuilder out = new StringBuilder(); - out.append("/").append(fontResourceId).append(" ").append(fontSize).append(" Tf").append(EOL); - try { - contentsPayload.write(out.toString().getBytes(CHARSET)); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - private PDFObject addObject(Map dict, Payload payload) { - final int id = objectIdCounter++; - final int version = 0; - PDFObject object = new PDFObject(id, version, dict, payload); - objects.add(object); - return object; - } - - private PDFObject addObject(Image image) { - BufferedImage bufferedImage = GraphicsUtils.toBufferedImage(image); - - int width = bufferedImage.getWidth(); - int height = bufferedImage.getHeight(); - int bitsPerSample = DataUtils.max(bufferedImage.getSampleModel().getSampleSize()); - int bands = bufferedImage.getSampleModel().getNumBands(); - String colorSpaceName = (bands == 1) ? "DeviceGray" : "DeviceRGB"; - - Payload imagePayload = new Payload(true); - - // Compression - String[] imageFilters = {}; - if (compressed) { - try { - imagePayload.addFilter(FlateEncodeStream.class); - imageFilters = new String[]{"FlateDecode"}; - } catch (NoSuchMethodException | InstantiationException | InvocationTargetException | IllegalAccessException e) { - // ignore - } - } - - InputStream imageDataStream = - new ImageDataStream(bufferedImage, Interleaving.WITHOUT_ALPHA); - - try { - DataUtils.transfer(imageDataStream, imagePayload, 1024); - imagePayload.close(); - } catch (IOException e) { - throw new RuntimeException(e); - } - - int length = imagePayload.getBytes().length; - - Map imageDict = DataUtils.map( - new String[]{"Type", "Subtype", "Width", "Height", "ColorSpace", - "BitsPerComponent", "Length", "Filter"}, - new Object[]{"XObject", "Image", width, height, colorSpaceName, - bitsPerSample, length, imageFilters} - ); - - PDFObject imageObject = addObject(imageDict, imagePayload); - - boolean hasAlpha = bufferedImage.getColorModel().hasAlpha(); - if (hasAlpha) { - BufferedImage mask = GraphicsUtils.getAlphaImage(bufferedImage); - - PDFObject maskObject = addObject(mask); - - boolean isBitmask = mask.getSampleModel().getSampleSize(0) == 1; - if (isBitmask) { - maskObject.dict.put("ImageMask", true); - maskObject.dict.remove("ColorSpace"); - imageObject.dict.put("Mask", maskObject); - } else { - imageObject.dict.put("SMask", maskObject); - } - } - - return imageObject; - } - - public void write(OutputStream out) throws IOException { - FormattingWriter o = new FormattingWriter(out, CHARSET, EOL); - - o.writeln(HEADER); - - for (PDFObject obj : objects) { - xref.put(obj, o.tell()); - o.writeln(toString(obj)); - o.flush(); - } - - long xrefPos = o.tell(); - o.writeln("xref"); - o.write(0).write(" ").writeln(objects.size() + 1); - o.format("%010d %05d f ", 0, 65535).writeln(); - for (PDFObject obj : objects) { - o.format("%010d %05d n ", xref.get(obj), 0).writeln(); - } - o.flush(); - - o.writeln("trailer"); - o.writeln(serialize(DataUtils.map( - new String[]{"Size", "Root"}, - new Object[]{objects.size() + 1, objects.get(0)} - ))); - - o.writeln("startxref"); - o.writeln(xrefPos); - - o.writeln(FOOTER); - o.flush(); - } - - public void handle(Command command) { - String s = ""; - if (command instanceof Group) { - Group c = (Group) command; - applyStateCommands(c.getValue()); - s = getOutput(getCurrentState(), resources, !transformed); - transformed = true; - } else if (command instanceof DrawShapeCommand) { - DrawShapeCommand c = (DrawShapeCommand) command; - s = getOutput(c.getValue()) + " S"; - } else if (command instanceof FillShapeCommand) { - FillShapeCommand c = (FillShapeCommand) command; - s = getOutput(c.getValue()) + " f"; - } else if (command instanceof DrawStringCommand) { - DrawStringCommand c = (DrawStringCommand) command; - s = getOutput(c.getValue(), c.getX(), c.getY()); - } else if (command instanceof DrawImageCommand) { - DrawImageCommand c = (DrawImageCommand) command; - // Create object for image data - Image image = c.getValue(); - PDFObject imageObject = images.get(image.hashCode()); - if (imageObject == null) { - imageObject = addObject(image); - images.put(image.hashCode(), imageObject); - } - s = getOutput(imageObject, c.getX(), c.getY(), - c.getWidth(), c.getHeight(), resources); - } - - try { - Payload contentsPayload = contents.payload; - contentsPayload.write(s.getBytes(CHARSET)); - contentsPayload.write(EOL.getBytes(CHARSET)); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - private void applyStateCommands(List> commands) { - for (Command command : commands) { - if (command instanceof SetHintCommand) { - SetHintCommand c = (SetHintCommand) command; - getCurrentState().getHints().put(c.getKey(), c.getValue()); - } else if (command instanceof SetBackgroundCommand) { - SetBackgroundCommand c = (SetBackgroundCommand) command; - getCurrentState().setBackground(c.getValue()); - } else if (command instanceof SetColorCommand) { - SetColorCommand c = (SetColorCommand) command; - getCurrentState().setColor(c.getValue()); - } else if (command instanceof SetPaintCommand) { - SetPaintCommand c = (SetPaintCommand) command; - getCurrentState().setPaint(c.getValue()); - } else if (command instanceof SetStrokeCommand) { - SetStrokeCommand c = (SetStrokeCommand) command; - getCurrentState().setStroke(c.getValue()); - } else if (command instanceof SetFontCommand) { - SetFontCommand c = (SetFontCommand) command; - getCurrentState().setFont(c.getValue()); - } else if (command instanceof SetTransformCommand) { - throw new UnsupportedOperationException("The PDF format has no means of setting the transformation matrix."); - } else if (command instanceof AffineTransformCommand) { - AffineTransformCommand c = (AffineTransformCommand) command; - AffineTransform stateTransform = getCurrentState().getTransform(); - AffineTransform transformToBeApplied = c.getValue(); - stateTransform.concatenate(transformToBeApplied); - getCurrentState().setTransform(stateTransform); - } else if (command instanceof SetClipCommand) { - SetClipCommand c = (SetClipCommand) command; - getCurrentState().setClip(c.getValue()); - } else if (command instanceof CreateCommand) { - try { - states.push((GraphicsState) getCurrentState().clone()); - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - } else if (command instanceof DisposeCommand) { - states.pop(); - } - } - } - - @Override - public void close() { - try { - String footer = "Q" + EOL; - if (transformed) { - footer += "Q" + EOL; - } - Payload contentsPayload = contents.payload; - contentsPayload.write(footer.getBytes(CHARSET)); - contentsPayload.close(); - } catch (IOException e) { - throw new RuntimeException(e); - } - super.close(); - } - - public void setCompressed(boolean compressed) { - this.compressed = compressed; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFObject.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFObject.java deleted file mode 100644 index 6b49f3f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFObject.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import java.util.LinkedHashMap; -import java.util.Map; - -public class PDFObject { - public final int id; - public final int version; - public final Map dict; - public final Payload payload; - - public PDFObject(int id, int version, Map dict, Payload payload) { - this.dict = new LinkedHashMap<>(); - this.id = id; - this.version = version; - this.payload = payload; - if (dict != null) { - this.dict.putAll(dict); - } - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessor.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessor.java deleted file mode 100644 index e259855..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessor.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.Processor; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.filters.AbsoluteToRelativeTransformsFilter; -import org.xbib.graphics.chart.io.vector.intermediate.filters.FillPaintedShapeAsImageFilter; -import org.xbib.graphics.chart.io.vector.intermediate.filters.StateChangeGroupingFilter; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -public class PDFProcessor implements Processor { - - public Document process(Iterable> commands, PageSize pageSize) { - AbsoluteToRelativeTransformsFilter absoluteToRelativeTransformsFilter = new AbsoluteToRelativeTransformsFilter(commands); - FillPaintedShapeAsImageFilter paintedShapeAsImageFilter = new FillPaintedShapeAsImageFilter(absoluteToRelativeTransformsFilter); - Iterable> filtered = new StateChangeGroupingFilter(paintedShapeAsImageFilter); - PDFDocument doc = new PDFDocument(pageSize); - for (Command command : filtered) { - doc.handle(command); - } - doc.close(); - return doc; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Payload.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Payload.java deleted file mode 100644 index 13f9d20..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Payload.java +++ /dev/null @@ -1,50 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.xbib.graphics.chart.io.vector.util.FlateEncodeStream; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.lang.reflect.InvocationTargetException; - -public class Payload extends OutputStream { - private final ByteArrayOutputStream byteStream; - private final boolean stream; - private OutputStream filteredStream; - private boolean empty; - - public Payload(boolean stream) { - byteStream = new ByteArrayOutputStream(); - filteredStream = byteStream; - this.stream = stream; - empty = true; - } - - public byte[] getBytes() { - return byteStream.toByteArray(); - } - - public boolean isStream() { - return stream; - } - - @Override - public void write(int b) throws IOException { - filteredStream.write(b); - empty = false; - } - - @Override - public void close() throws IOException { - super.close(); - filteredStream.close(); - } - - public void addFilter(Class filterClass) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - if (!empty) { - throw new IllegalStateException("unable to add filter after writing to payload"); - } - filteredStream = filterClass.getConstructor(OutputStream.class).newInstance(filteredStream); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Resources.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Resources.java deleted file mode 100644 index 7532871..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/Resources.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.xbib.graphics.chart.io.vector.util.DataUtils; -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; - -import java.awt.Font; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.concurrent.atomic.AtomicInteger; - -public class Resources extends PDFObject { - - private static final String KEY_PROC_SET = "ProcSet"; - private static final String KEY_TRANSPARENCY = "ExtGState"; - private static final String KEY_FONT = "Font"; - private static final String KEY_IMAGE = "XObject"; - - private static final String[] VALUE_PROC_SET = {"PDF", "Text", "ImageB", "ImageC", "ImageI"}; - - private static final String PREFIX_FONT = "Fnt"; - private static final String PREFIX_IMAGE = "Img"; - private static final String PREFIX_TRANSPARENCY = "Trp"; - - private final Map fonts; - private final Map images; - private final Map transparencies; - - private final AtomicInteger currentFontId = new AtomicInteger(); - private final AtomicInteger currentImageId = new AtomicInteger(); - private final AtomicInteger currentTransparencyId = new AtomicInteger(); - - public Resources(int id, int version) { - super(id, version, null, null); - fonts = new HashMap<>(); - images = new HashMap<>(); - transparencies = new HashMap<>(); - dict.put(KEY_PROC_SET, VALUE_PROC_SET); - } - - private String getResourceId(Map resources, T resource, - String idPrefix, AtomicInteger idCounter) { - String id = resources.get(resource); - if (id == null) { - id = String.format("%s%d", idPrefix, idCounter.getAndIncrement()); - resources.put(resource, id); - } - return id; - } - - @SuppressWarnings("unchecked") - public String getId(Font font) { - Map> dictEntry = - (Map>) dict.get(KEY_FONT); - if (dictEntry == null) { - dictEntry = new LinkedHashMap<>(); - dict.put(KEY_FONT, dictEntry); - } - font = GraphicsUtils.getPhysicalFont(font); - String resourceId = getResourceId(fonts, font, PREFIX_FONT, currentFontId); - String fontName = font.getPSName(); - // TODO: Determine font encoding (e.g. MacRomanEncoding, MacExpertEncoding, WinAnsiEncoding) - String fontEncoding = "WinAnsiEncoding"; - dictEntry.put(resourceId, DataUtils.map( - new String[]{"Type", "Subtype", "Encoding", "BaseFont"}, - new Object[]{"Font", "TrueType", fontEncoding, fontName} - )); - return resourceId; - } - - @SuppressWarnings("unchecked") - public String getId(PDFObject image) { - Map dictEntry = (Map) dict.get(KEY_IMAGE); - if (dictEntry == null) { - dictEntry = new LinkedHashMap<>(); - dict.put(KEY_IMAGE, dictEntry); - } - String resourceId = getResourceId(images, image, PREFIX_IMAGE, currentImageId); - dictEntry.put(resourceId, image); - return resourceId; - } - - @SuppressWarnings("unchecked") - public String getId(Double transparency) { - Map> dictEntry = - (Map>) dict.get(KEY_TRANSPARENCY); - if (dictEntry == null) { - dictEntry = new LinkedHashMap<>(); - dict.put(KEY_TRANSPARENCY, dictEntry); - } - String resourceId = getResourceId(transparencies, transparency, - PREFIX_TRANSPARENCY, currentTransparencyId); - dictEntry.put(resourceId, DataUtils.map( - new String[]{"Type", "ca", "CA"}, - new Object[]{"ExtGState", transparency, transparency} - )); - return resourceId; - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/SizePayload.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/SizePayload.java deleted file mode 100644 index 1d3c156..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/pdf/SizePayload.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.xbib.graphics.chart.io.vector.util.DataUtils; - -import java.io.IOException; - -public class SizePayload extends GeneratedPayload { - private final PDFObject object; - private final String charset; - - public SizePayload(PDFObject object, String charset, boolean stream) { - super(stream); - this.object = object; - this.charset = charset; - } - - @Override - protected byte[] generatePayload() { - try { - object.payload.close(); - String content = DataUtils.format(object.payload.getBytes().length); - return content.getBytes(charset); - } catch (IOException e) { - throw new RuntimeException(e); - } - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGDocument.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGDocument.java deleted file mode 100644 index 82fe7a7..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGDocument.java +++ /dev/null @@ -1,552 +0,0 @@ -package org.xbib.graphics.chart.io.vector.svg; - -import org.w3c.dom.DOMImplementation; -import org.w3c.dom.Document; -import org.w3c.dom.DocumentType; -import org.w3c.dom.Element; -import org.xbib.graphics.chart.io.vector.GraphicsState; -import org.xbib.graphics.chart.io.vector.SizedDocument; -import org.xbib.graphics.chart.io.vector.VectorHints; -import org.xbib.graphics.chart.io.vector.intermediate.commands.AffineTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawStringCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Group; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetBackgroundCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetClipCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetCompositeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetFontCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetHintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.util.Base64EncodeStream; -import org.xbib.graphics.chart.io.vector.util.DataUtils; -import org.xbib.graphics.chart.io.vector.util.GraphicsUtils; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import javax.imageio.ImageIO; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.OutputKeys; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerException; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.StreamResult; -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Font; -import java.awt.Image; -import java.awt.Shape; -import java.awt.Stroke; -import java.awt.geom.AffineTransform; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.PathIterator; -import java.awt.geom.Rectangle2D; -import java.awt.geom.RoundRectangle2D; -import java.awt.image.BufferedImage; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.Stack; - -public class SVGDocument extends SizedDocument { - private static final String SVG_DOCTYPE_QNAME = "svg"; - private static final String SVG_DOCTYPE_PUBLIC_ID = "-//W3C//DTD SVG 1.1//EN"; - private static final String SVG_DOCTYPE_SYSTEM_ID = "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"; - private static final String SVG_NAMESPACE_URI = "http://www.w3.org/2000/svg"; - private static final String XLINK_NAMESPACE = "xlink"; - private static final String XLINK_NAMESPACE_URI = "http://www.w3.org/1999/xlink"; - - private static final String PREFIX_CLIP = "clip"; - - private static final String CHARSET = "UTF-8"; - - private static final double DOTS_PER_MM = 2.834646; // 72 dpi - //private static final double DOTS_PER_MM = 11.811024; // 300 dpi - - /** - * Mapping of stroke endcap values from Java to SVG. - */ - private static final Map STROKE_ENDCAPS = - DataUtils.map(new Integer[]{BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE}, - new String[]{"butt", "round", "square"} - ); - /** - * Mapping of line join values for path drawing from Java to SVG. - */ - private static final Map STROKE_LINEJOIN = - DataUtils.map(new Integer[]{BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL}, - new String[]{"miter", "round", "bevel"} - ); - private final Stack states; - private final Document doc; - private final Element root; - private final Map clippingPathElements; - private Element group; - private boolean groupAdded; - private Element defs; - - public SVGDocument(PageSize pageSize) { - super(pageSize); - - states = new Stack(); - states.push(new GraphicsState()); - clippingPathElements = new HashMap(); - - // Prepare DOM - DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); - docFactory.setValidating(false); - DocumentBuilder docBuilder; - try { - docBuilder = docFactory.newDocumentBuilder(); - } catch (ParserConfigurationException e) { - throw new IllegalStateException("Could not create XML builder."); - } - - // Create XML document with DOCTYPE - DOMImplementation domImpl = docBuilder.getDOMImplementation(); - DocumentType docType = domImpl.createDocumentType(SVG_DOCTYPE_QNAME, SVG_DOCTYPE_PUBLIC_ID, SVG_DOCTYPE_SYSTEM_ID); - doc = domImpl.createDocument(SVG_NAMESPACE_URI, "svg", docType); - // FIXME: Some XML parsers don't support setting standalone to "false" - try { - doc.setXmlStandalone(false); - } catch (AbstractMethodError e) { - System.err.println("Your XML parser does not support standalone XML documents."); - } - - root = doc.getDocumentElement(); - initRoot(); - - group = root; - } - - private static void appendStyle(StringBuilder style, String attribute, Object value) { - style.append(attribute).append(":") - .append(DataUtils.format(value)).append(";"); - } - - private static String getOutput(AffineTransform tx) { - StringBuilder out = new StringBuilder(); - // FIXME: Use tx.getType() to check for transformation components - if (AffineTransform.getTranslateInstance(tx.getTranslateX(), - tx.getTranslateY()).equals(tx)) { - out.append("translate(") - .append(DataUtils.format(tx.getTranslateX())).append(" ") - .append(DataUtils.format(tx.getTranslateY())).append(")"); - } else { - double[] matrix = new double[6]; - tx.getMatrix(matrix); - out.append("matrix(").append(DataUtils.join(" ", matrix)).append(")"); - } - return out.toString(); - } - - private static String getOutput(Color color) { - return String.format((Locale) null, "rgb(%d,%d,%d)", - color.getRed(), color.getGreen(), color.getBlue()); - } - - private static String getOutput(Shape shape) { - StringBuilder out = new StringBuilder(); - PathIterator segments = shape.getPathIterator(null); - double[] coords = new double[6]; - for (int i = 0; !segments.isDone(); i++, segments.next()) { - if (i > 0) { - out.append(" "); - } - int segmentType = segments.currentSegment(coords); - switch (segmentType) { - case PathIterator.SEG_MOVETO: - out.append("M").append(coords[0]).append(",").append(coords[1]); - break; - case PathIterator.SEG_LINETO: - out.append("L").append(coords[0]).append(",").append(coords[1]); - break; - case PathIterator.SEG_CUBICTO: - out.append("C") - .append(coords[0]).append(",").append(coords[1]).append(" ") - .append(coords[2]).append(",").append(coords[3]).append(" ") - .append(coords[4]).append(",").append(coords[5]); - break; - case PathIterator.SEG_QUADTO: - out.append("Q") - .append(coords[0]).append(",").append(coords[1]).append(" ") - .append(coords[2]).append(",").append(coords[3]); - break; - case PathIterator.SEG_CLOSE: - out.append("Z"); - break; - default: - throw new IllegalStateException("Unknown path operation."); - } - } - return out.toString(); - } - - private static String getOutput(Font font) { - StringBuilder out = new StringBuilder(); - if (!GraphicsState.DEFAULT_FONT.getFamily().equals(font.getFamily())) { - String physicalFamily = GraphicsUtils.getPhysicalFont(font).getFamily(); - out.append("font-family:\"").append(physicalFamily).append("\";"); - } - if (font.getSize2D() != GraphicsState.DEFAULT_FONT.getSize2D()) { - out.append("font-size:").append(DataUtils.format(font.getSize2D())).append("px;"); - } - if ((font.getStyle() & Font.ITALIC) != 0) { - out.append("font-style:italic;"); - } - if ((font.getStyle() & Font.BOLD) != 0) { - out.append("font-weight:bold;"); - } - return out.toString(); - } - - private static String getOutput(Image image, boolean lossyAllowed) { - BufferedImage bufferedImage = GraphicsUtils.toBufferedImage(image); - - String encoded = encodeImage(bufferedImage, "png"); - if (!GraphicsUtils.usesAlpha(bufferedImage) && lossyAllowed) { - String encodedLossy = encodeImage(bufferedImage, "jpeg"); - if (encodedLossy.length() > 0 && encodedLossy.length() < encoded.length()) { - encoded = encodedLossy; - } - } - - return encoded; - } - - private static String encodeImage(BufferedImage bufferedImage, String format) { - ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); - Base64EncodeStream encodeStream = new Base64EncodeStream(byteStream); - try { - ImageIO.write(bufferedImage, format, encodeStream); - encodeStream.close(); - String encoded = byteStream.toString("ISO-8859-1"); - return String.format("data:image/%s;base64,%s", format, encoded); - } catch (IOException e) { - return ""; - } - } - - private GraphicsState getCurrentState() { - return states.peek(); - } - - private void initRoot() { - double x = getPageSize().x; - double y = getPageSize().y; - double width = getPageSize().width; - double height = getPageSize().height; - - // Add svg element - root.setAttribute("xmlns:" + XLINK_NAMESPACE, XLINK_NAMESPACE_URI); - root.setAttribute("version", "1.1"); - root.setAttribute("x", DataUtils.format(x / DOTS_PER_MM) + "mm"); - root.setAttribute("y", DataUtils.format(y / DOTS_PER_MM) + "mm"); - root.setAttribute("width", DataUtils.format(width / DOTS_PER_MM) + "mm"); - root.setAttribute("height", DataUtils.format(height / DOTS_PER_MM) + "mm"); - root.setAttribute("viewBox", DataUtils.join(" ", new double[]{x, y, width, height})); - } - - public void write(OutputStream out) throws IOException { - TransformerFactory transformerFactory = TransformerFactory.newInstance(); - try { - Transformer transformer = transformerFactory.newTransformer(); - transformer.setOutputProperty(OutputKeys.INDENT, "yes"); - transformer.setOutputProperty(OutputKeys.STANDALONE, "no"); - transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); - transformer.setOutputProperty(OutputKeys.ENCODING, CHARSET); - transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, - doc.getDoctype().getPublicId()); - transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, - doc.getDoctype().getSystemId()); - transformer.transform(new DOMSource(doc), new StreamResult(out)); - } catch (TransformerException e) { - throw new IOException(e.getMessage()); - } - } - - @Override - public String toString() { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - try { - write(out); - return out.toString(CHARSET); - } catch (IOException e) { - return ""; - } - } - - private void newGroup() { - group = doc.createElement("g"); - groupAdded = false; - - Shape clip = getCurrentState().getClip(); - if (clip != GraphicsState.DEFAULT_CLIP) { - Element clipElem = getClipElement(clip); - String ref = "url(#" + clipElem.getAttribute("id") + ")"; - group.setAttribute("clip-path", ref); - } - - AffineTransform tx = getCurrentState().getTransform(); - if (!GraphicsState.DEFAULT_TRANSFORM.equals(tx)) { - group.setAttribute("transform", getOutput(tx)); - } - } - - private Element getClipElement(Shape clip) { - // Look for existing entries - Element path = clippingPathElements.get(clip.hashCode()); - if (path != null) { - return path; - } - - // Make sure exists - if (defs == null) { - defs = doc.createElement("defs"); - root.insertBefore(defs, root.getFirstChild()); - } - - // Store clipping path in without styling information - path = doc.createElement("clipPath"); - path.setAttribute("id", PREFIX_CLIP + clip.hashCode()); - Element shape = getElement(clip); - shape.removeAttribute("style"); - path.appendChild(shape); - defs.appendChild(path); - - // Register path - clippingPathElements.put(clip.hashCode(), path); - - return path; - } - - private void addToGroup(Element e) { - group.appendChild(e); - if (!groupAdded && group != root) { - root.appendChild(group); - groupAdded = true; - } - } - - public void handle(Command command) { - if (command instanceof Group) { - Group c = (Group) command; - applyStateCommands(c.getValue()); - if (containsGroupCommand(c.getValue())) { - newGroup(); - } - } else if (command instanceof DrawImageCommand) { - DrawImageCommand c = (DrawImageCommand) command; - Element e = getElement(c.getValue(), - c.getX(), c.getY(), c.getWidth(), c.getHeight()); - addToGroup(e); - } else if (command instanceof DrawShapeCommand) { - DrawShapeCommand c = (DrawShapeCommand) command; - Element e = getElement(c.getValue()); - e.setAttribute("style", getStyle(false)); - addToGroup(e); - } else if (command instanceof DrawStringCommand) { - DrawStringCommand c = (DrawStringCommand) command; - Element e = getElement(c.getValue(), c.getX(), c.getY()); - e.setAttribute("style", getStyle(getCurrentState().getFont())); - addToGroup(e); - } else if (command instanceof FillShapeCommand) { - FillShapeCommand c = (FillShapeCommand) command; - Element e = getElement(c.getValue()); - e.setAttribute("style", getStyle(true)); - addToGroup(e); - } - } - - private void applyStateCommands(List> commands) { - for (Command command : commands) { - GraphicsState state = getCurrentState(); - if (command instanceof SetBackgroundCommand) { - SetBackgroundCommand c = (SetBackgroundCommand) command; - state.setBackground(c.getValue()); - } else if (command instanceof SetClipCommand) { - SetClipCommand c = (SetClipCommand) command; - state.setClip(c.getValue()); - } else if (command instanceof SetColorCommand) { - SetColorCommand c = (SetColorCommand) command; - state.setColor(c.getValue()); - } else if (command instanceof SetCompositeCommand) { - SetCompositeCommand c = (SetCompositeCommand) command; - state.setComposite(c.getValue()); - } else if (command instanceof SetFontCommand) { - SetFontCommand c = (SetFontCommand) command; - state.setFont(c.getValue()); - } else if (command instanceof SetPaintCommand) { - SetPaintCommand c = (SetPaintCommand) command; - state.setPaint(c.getValue()); - } else if (command instanceof SetStrokeCommand) { - SetStrokeCommand c = (SetStrokeCommand) command; - state.setStroke(c.getValue()); - } else if (command instanceof SetTransformCommand) { - SetTransformCommand c = (SetTransformCommand) command; - state.setTransform(c.getValue()); - } else if (command instanceof AffineTransformCommand) { - AffineTransformCommand c = (AffineTransformCommand) command; - AffineTransform stateTransform = state.getTransform(); - AffineTransform transformToBeApplied = c.getValue(); - stateTransform.concatenate(transformToBeApplied); - state.setTransform(stateTransform); - } else if (command instanceof SetHintCommand) { - SetHintCommand c = (SetHintCommand) command; - state.getHints().put(c.getKey(), c.getValue()); - } else if (command instanceof CreateCommand) { - try { - states.push((GraphicsState) getCurrentState().clone()); - } catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - } else if (command instanceof DisposeCommand) { - states.pop(); - } - } - } - - private boolean containsGroupCommand(List> commands) { - for (Command command : commands) { - if ((command instanceof SetClipCommand) || - (command instanceof SetTransformCommand) || - (command instanceof AffineTransformCommand)) { - return true; - } - } - return false; - } - - private String getStyle(boolean filled) { - StringBuilder style = new StringBuilder(); - - Color color = getCurrentState().getColor(); - String colorOutput = getOutput(color); - double opacity = color.getAlpha() / 255.0; - - if (filled) { - appendStyle(style, "fill", colorOutput); - if (color.getAlpha() < 255) { - appendStyle(style, "fill-opacity", opacity); - } - } else { - appendStyle(style, "fill", "none"); - } - - if (!filled) { - appendStyle(style, "stroke", colorOutput); - if (color.getAlpha() < 255) { - appendStyle(style, "stroke-opacity", opacity); - } - Stroke stroke = getCurrentState().getStroke(); - if (stroke instanceof BasicStroke) { - BasicStroke bs = (BasicStroke) stroke; - if (bs.getLineWidth() != 1f) { - appendStyle(style, "stroke-width", bs.getLineWidth()); - } - if (bs.getMiterLimit() != 4f) { - appendStyle(style, "stroke-miterlimit", bs.getMiterLimit()); - } - if (bs.getEndCap() != BasicStroke.CAP_BUTT) { - appendStyle(style, "stroke-linecap", STROKE_ENDCAPS.get(bs.getEndCap())); - } - if (bs.getLineJoin() != BasicStroke.JOIN_MITER) { - appendStyle(style, "stroke-linejoin", STROKE_LINEJOIN.get(bs.getLineJoin())); - } - if (bs.getDashArray() != null) { - appendStyle(style, "stroke-dasharray", DataUtils.join(",", bs.getDashArray())); - if (bs.getDashPhase() != 0f) { - appendStyle(style, "stroke-dashoffset", bs.getDashPhase()); - } - } - } - } else { - appendStyle(style, "stroke", "none"); - } - - return style.toString(); - } - - private String getStyle(Font font) { - String style = getStyle(true); - if (!GraphicsState.DEFAULT_FONT.equals(font)) { - style += getOutput(font); - } - return style; - } - - private Element getElement(Shape shape) { - Element elem; - if (shape instanceof Line2D) { - Line2D s = (Line2D) shape; - elem = doc.createElement("line"); - elem.setAttribute("x1", DataUtils.format(s.getX1())); - elem.setAttribute("y1", DataUtils.format(s.getY1())); - elem.setAttribute("x2", DataUtils.format(s.getX2())); - elem.setAttribute("y2", DataUtils.format(s.getY2())); - } else if (shape instanceof Rectangle2D) { - Rectangle2D s = (Rectangle2D) shape; - elem = doc.createElement("rect"); - elem.setAttribute("x", DataUtils.format(s.getX())); - elem.setAttribute("y", DataUtils.format(s.getY())); - elem.setAttribute("width", DataUtils.format(s.getWidth())); - elem.setAttribute("height", DataUtils.format(s.getHeight())); - } else if (shape instanceof RoundRectangle2D) { - RoundRectangle2D s = (RoundRectangle2D) shape; - elem = doc.createElement("rect"); - elem.setAttribute("x", DataUtils.format(s.getX())); - elem.setAttribute("y", DataUtils.format(s.getY())); - elem.setAttribute("width", DataUtils.format(s.getWidth())); - elem.setAttribute("height", DataUtils.format(s.getHeight())); - elem.setAttribute("rx", DataUtils.format(s.getArcWidth() / 2.0)); - elem.setAttribute("ry", DataUtils.format(s.getArcHeight() / 2.0)); - } else if (shape instanceof Ellipse2D) { - Ellipse2D s = (Ellipse2D) shape; - elem = doc.createElement("ellipse"); - elem.setAttribute("cx", DataUtils.format(s.getCenterX())); - elem.setAttribute("cy", DataUtils.format(s.getCenterY())); - elem.setAttribute("rx", DataUtils.format(s.getWidth() / 2.0)); - elem.setAttribute("ry", DataUtils.format(s.getHeight() / 2.0)); - } else { - elem = doc.createElement("path"); - elem.setAttribute("d", getOutput(shape)); - } - return elem; - } - - private Element getElement(String text, double x, double y) { - Element elem = doc.createElement("text"); - elem.appendChild(doc.createTextNode(text)); - elem.setAttribute("x", DataUtils.format(x)); - elem.setAttribute("y", DataUtils.format(y)); - return elem; - } - - private Element getElement(Image image, double x, double y, double width, double height) { - Element elem = doc.createElement("image"); - elem.setAttribute("x", DataUtils.format(x)); - elem.setAttribute("y", DataUtils.format(y)); - elem.setAttribute("width", DataUtils.format(width)); - elem.setAttribute("height", DataUtils.format(height)); - elem.setAttribute("preserveAspectRatio", "none"); - boolean lossyAllowed = getCurrentState().getHints().get(VectorHints.KEY_EXPORT) == - VectorHints.VALUE_EXPORT_SIZE; - elem.setAttribute("xlink:href", getOutput(image, lossyAllowed)); - return elem; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessor.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessor.java deleted file mode 100644 index 90be452..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessor.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.xbib.graphics.chart.io.vector.svg; - -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.Processor; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.filters.FillPaintedShapeAsImageFilter; -import org.xbib.graphics.chart.io.vector.intermediate.filters.StateChangeGroupingFilter; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -public class SVGProcessor implements Processor { - public Document process(Iterable> commands, PageSize pageSize) { - FillPaintedShapeAsImageFilter shapesAsImages = new FillPaintedShapeAsImageFilter(commands); - Iterable> filtered = new StateChangeGroupingFilter(shapesAsImages); - SVGDocument doc = new SVGDocument(pageSize); - for (Command command : filtered) { - doc.handle(command); - } - doc.close(); - return doc; - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStream.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStream.java deleted file mode 100644 index 887bece..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStream.java +++ /dev/null @@ -1,102 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.FilterOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.charset.Charset; -import java.util.Arrays; - -public class ASCII85EncodeStream extends FilterOutputStream { - private static final Charset ISO88591 = Charset.forName("ISO-8859-1"); - private static final int BASE = 85; - private static final int[] POW_85 = - {BASE * BASE * BASE * BASE, BASE * BASE * BASE, BASE * BASE, BASE, 1}; - private static final char[] CHAR_MAP = - "!\"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstu" - .toCharArray(); - private final byte[] data; - private final byte[] prefixBytes; - private final byte[] suffixBytes; - private final byte[] encoded; - private boolean closed; - private int dataSize; - private boolean prefixDone; - - public ASCII85EncodeStream(OutputStream out, String prefix, String suffix) { - super(out); - prefixBytes = (prefix != null ? prefix : "").getBytes(ISO88591); - suffixBytes = (suffix != null ? suffix : "").getBytes(ISO88591); - data = new byte[4]; - encoded = new byte[5]; - } - - public ASCII85EncodeStream(OutputStream out) { - this(out, "", "~>"); - } - - private static long toUInt32(byte[] bytes, int size) { - long uint32 = 0L; - for (int i = 0; i < 4 && i < size; i++) { - uint32 |= (bytes[i] & 0xff) << (3 - i) * 8; - } - return toUnsignedInt(uint32); - } - - private static long toUnsignedInt(long x) { - return x & 0x00000000ffffffffL; - } - - @Override - public void write(int b) throws IOException { - if (closed) { - return; - } - if (!prefixDone) { - out.write(prefixBytes); - prefixDone = true; - } - if (dataSize == data.length) { - writeChunk(); - dataSize = 0; - } - data[dataSize++] = (byte) (b & 0xff); - } - - private void writeChunk() throws IOException { - if (dataSize == 0) { - return; - } - long uint32 = toUInt32(data, dataSize); - int padByteCount = data.length - dataSize; - int encodedSize = encodeChunk(uint32, padByteCount); - out.write(encoded, 0, encodedSize); - } - - private int encodeChunk(long uint32, int padByteCount) { - Arrays.fill(encoded, (byte) 0); - if (uint32 == 0L && padByteCount == 0) { - encoded[0] = 'z'; - return 1; - } - int size = encoded.length - padByteCount; - for (int i = 0; i < size; i++) { - encoded[i] = (byte) CHAR_MAP[(int) (uint32 / POW_85[i] % BASE)]; - } - return size; - } - - @Override - public void close() throws IOException { - if (closed) { - return; - } - - writeChunk(); - - out.write(suffixBytes); - - super.close(); - closed = true; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/AlphaToMaskOp.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/AlphaToMaskOp.java deleted file mode 100644 index 0e774d8..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/AlphaToMaskOp.java +++ /dev/null @@ -1,101 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.awt.RenderingHints; -import java.awt.geom.Point2D; -import java.awt.geom.Rectangle2D; -import java.awt.image.BufferedImage; -import java.awt.image.BufferedImageOp; -import java.awt.image.ColorModel; -import java.awt.image.Raster; -import java.awt.image.WritableRaster; -import java.util.Hashtable; - -public class AlphaToMaskOp implements BufferedImageOp { - private final boolean inverted; - - public AlphaToMaskOp(boolean inverted) { - this.inverted = inverted; - } - - public AlphaToMaskOp() { - this(false); - } - - public boolean isInverted() { - return inverted; - } - - public BufferedImage filter(BufferedImage src, BufferedImage dest) { - ColorModel cm = src.getColorModel(); - - if (dest == null) { - dest = createCompatibleDestImage(src, cm); - } else if (dest.getWidth() != src.getWidth() || dest.getHeight() != src.getHeight()) { - throw new IllegalArgumentException("Source and destination images have different dimensions."); - } else if (dest.getColorModel() != cm) { - throw new IllegalArgumentException("Color models don't match."); - } - - if (cm.hasAlpha()) { - Raster srcRaster = src.getRaster(); - WritableRaster destRaster = dest.getRaster(); - - for (int y = 0; y < srcRaster.getHeight(); y++) { - for (int x = 0; x < srcRaster.getWidth(); x++) { - int argb = cm.getRGB(srcRaster.getDataElements(x, y, null)); - int alpha = argb >>> 24; - if (alpha >= 127 && !isInverted() || alpha < 127 && isInverted()) { - argb |= 0xff000000; - } else { - argb &= 0x00ffffff; - } - destRaster.setDataElements(x, y, cm.getDataElements(argb, null)); - } - } - } - - return dest; - } - - public Rectangle2D getBounds2D(BufferedImage src) { - Rectangle2D bounds = new Rectangle2D.Double(); - bounds.setRect(src.getRaster().getBounds()); - return bounds; - } - - public BufferedImage createCompatibleDestImage(BufferedImage src, - ColorModel destCM) { - if (destCM == null) { - destCM = src.getColorModel(); - } - WritableRaster raster = destCM.createCompatibleWritableRaster( - src.getWidth(), src.getHeight()); - boolean isRasterPremultiplied = destCM.isAlphaPremultiplied(); - Hashtable properties = null; - if (src.getPropertyNames() != null) { - properties = new Hashtable(); - for (String key : src.getPropertyNames()) { - properties.put(key, src.getProperty(key)); - } - } - - BufferedImage bimage = new BufferedImage(destCM, raster, - isRasterPremultiplied, properties); - src.copyData(raster); - return bimage; - } - - public Point2D getPoint2D(Point2D srcPt, Point2D dstPt) { - if (dstPt == null) { - dstPt = new Point2D.Double(); - } - dstPt.setLocation(srcPt); - return dstPt; - } - - public RenderingHints getRenderingHints() { - return null; - } - -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStream.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStream.java deleted file mode 100644 index 81a6929..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStream.java +++ /dev/null @@ -1,83 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.FilterOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.util.Arrays; - -public class Base64EncodeStream extends FilterOutputStream { - private static final int BASE = 64; - private static final int[] POW_64 = - {BASE * BASE * BASE, BASE * BASE, BASE, 1}; - private static final char[] CHAR_MAP = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" - .toCharArray(); - private final byte[] data; - private final byte[] encoded; - private boolean closed; - private int dataSize; - - public Base64EncodeStream(OutputStream out) { - super(out); - data = new byte[3]; - encoded = new byte[4]; - } - - private static long toUInt32(byte[] bytes, int size) { - long uint32 = 0L; - int offset = (3 - size) * 8; - for (int i = size - 1; i >= 0; i--) { - uint32 |= (bytes[i] & 0xff) << offset; - offset += 8; - } - return toUnsignedInt(uint32); - } - - private static long toUnsignedInt(long x) { - return x & 0x00000000ffffffffL; - } - - @Override - public void write(int b) throws IOException { - if (closed) { - return; - } - if (dataSize == data.length) { - writeChunk(); - dataSize = 0; - } - data[dataSize++] = (byte) (b & 0xff); - } - - private void writeChunk() throws IOException { - if (dataSize == 0) { - return; - } - long uint32 = toUInt32(data, dataSize); - int padByteCount = data.length - dataSize; - int encodedSize = encodeChunk(uint32, padByteCount); - out.write(encoded, 0, encodedSize); - } - - private int encodeChunk(long uint32, int padByteCount) { - Arrays.fill(encoded, (byte) '='); - int size = encoded.length - padByteCount; - for (int i = 0; i < size; i++) { - encoded[i] = (byte) CHAR_MAP[(int) (uint32 / POW_64[i] % BASE)]; - } - return encoded.length; - } - - @Override - public void close() throws IOException { - if (closed) { - return; - } - - writeChunk(); - - super.close(); - closed = true; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/DataUtils.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/DataUtils.java deleted file mode 100644 index faa8a5f..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/DataUtils.java +++ /dev/null @@ -1,240 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.regex.Pattern; - -/** - * Abstract class that contains utility functions for working with data - * collections like maps or lists. - */ -public abstract class DataUtils { - /** - * Default constructor that prevents creation of class. - */ - protected DataUtils() { - throw new UnsupportedOperationException(); - } - - /** - * Creates a mapping from two arrays, one with keys, one with values. - * - * @param Data type of the keys. - * @param Data type of the values. - * @param keys Array containing the keys. - * @param values Array containing the values. - * @return Map with keys and values from the specified arrays. - */ - public static Map map(K[] keys, V[] values) { - // Check for valid parameters - if (keys.length != values.length) { - throw new IllegalArgumentException( - "Cannot create a Map: " + - "The number of keys and values differs."); - } - // Fill map with keys and values - Map map = new LinkedHashMap(keys.length); - for (int i = 0; i < keys.length; i++) { - K key = keys[i]; - V value = values[i]; - map.put(key, value); - } - return map; - } - - /** - * Returns a string containing all elements concatenated by a specified - * separator. - * - * @param separator Separator string. - * @param elements List of elements that should be concatenated. - * @return a concatenated string. - */ - public static String join(String separator, List elements) { - if (elements == null || elements.size() == 0) { - return ""; - } - StringBuilder sb = new StringBuilder(elements.size() * 3); - int i = 0; - for (Object elem : elements) { - if (separator.length() > 0 && i++ > 0) { - sb.append(separator); - } - sb.append(format(elem)); - } - return sb.toString(); - } - - /** - * Returns a string containing all elements concatenated by a specified - * separator. - * - * @param separator Separator string. - * @param elements Array of elements that should be concatenated. - * @return a concatenated string. - */ - public static String join(String separator, Object[] elements) { - if (elements == null || elements.length == 0) { - return ""; - } - return join(separator, Arrays.asList(elements)); - } - - /** - * Returns a string containing all double numbers concatenated by a - * specified separator. - * - * @param separator Separator string. - * @param elements Array of double numbers that should be concatenated. - * @return a concatenated string. - */ - public static String join(String separator, double[] elements) { - if (elements == null || elements.length == 0) { - return ""; - } - List list = new ArrayList(elements.length); - for (Double element : elements) { - list.add(element); - } - return join(separator, list); - } - - /** - * Returns a string containing all float numbers concatenated by a - * specified separator. - * - * @param separator Separator string. - * @param elements Array of float numbers that should be concatenated. - * @return a concatenated string. - */ - public static String join(String separator, float[] elements) { - if (elements == null || elements.length == 0) { - return ""; - } - List list = new ArrayList(elements.length); - for (Float element : elements) { - list.add(element); - } - return join(separator, list); - } - - /** - * Returns the largest of all specified values. - * - * @param values Several integer values. - * @return largest value. - */ - public static int max(int... values) { - int max = values[0]; - for (int i = 1; i < values.length; i++) { - if (values[i] > max) { - max = values[i]; - } - } - return max; - } - - /** - * Copies data from an input stream to an output stream using a buffer of - * specified size. - * - * @param in Input stream. - * @param out Output stream. - * @param bufferSize Size of the copy buffer. - * @throws IOException when an error occurs while copying. - */ - public static void transfer(InputStream in, OutputStream out, int bufferSize) - throws IOException { - byte[] buffer = new byte[bufferSize]; - int bytesRead; - while ((bytesRead = in.read(buffer)) != -1) { - out.write(buffer, 0, bytesRead); - } - } - - /** - * Returns a formatted string of the specified number. All trailing zeroes - * or decimal points will be stripped. - * - * @param number Number to convert to a string. - * @return A formatted string. - */ - public static String format(Number number) { - String formatted; - if (number instanceof Double || number instanceof Float) { - formatted = Double.toString(number.doubleValue()) - .replaceAll("\\.0+$", "") - .replaceAll("(\\.[0-9]*[1-9])0+$", "$1"); - } else { - formatted = number.toString(); - } - return formatted; - } - - /** - * Returns a formatted string of the specified object. - * - * @param obj Object to convert to a string. - * @return A formatted string. - */ - public static String format(Object obj) { - if (obj instanceof Number) { - return format((Number) obj); - } else { - return obj.toString(); - } - } - - /** - * Converts an array of {@code float} numbers to a list of {@code Float}s. - * The list will be empty if the array is empty or {@code null}. - * - * @param elements Array of float numbers. - * @return A list with all numbers as {@code Float}. - */ - public static List asList(float[] elements) { - int size = (elements != null) ? elements.length : 0; - List list = new ArrayList(size); - if (elements != null) { - for (Float elem : elements) { - list.add(elem); - } - } - return list; - } - - /** - * Converts an array of {@code double} numbers to a list of {@code Double}s. - * The list will be empty if the array is empty or {@code null}. - * - * @param elements Array of double numbers. - * @return A list with all numbers as {@code Double}. - */ - public static List asList(double[] elements) { - int size = (elements != null) ? elements.length : 0; - List list = new ArrayList(size); - if (elements != null) { - for (Double elem : elements) { - list.add(elem); - } - } - return list; - } - - /** - * Removes the specified trailing pattern from a string. - * - * @param s string. - * @param substr trailing pattern. - * @return A string without the trailing pattern. - */ - public static String stripTrailing(String s, String substr) { - return s.replaceAll("(" + Pattern.quote(substr) + ")+$", ""); - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FlateEncodeStream.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FlateEncodeStream.java deleted file mode 100644 index 7c4a756..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FlateEncodeStream.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.OutputStream; -import java.util.zip.DeflaterOutputStream; - -public class FlateEncodeStream extends DeflaterOutputStream { - public FlateEncodeStream(OutputStream out) { - super(out); - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FormattingWriter.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FormattingWriter.java deleted file mode 100644 index 386884d..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/FormattingWriter.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.Closeable; -import java.io.Flushable; -import java.io.IOException; -import java.io.OutputStream; - -public class FormattingWriter implements Closeable, Flushable { - private final OutputStream out; - private final String encoding; - private final String eolString; - private long position; - - public FormattingWriter(OutputStream out, String encoding, String eol) { - this.out = out; - this.encoding = encoding; - this.eolString = eol; - } - - public FormattingWriter write(String string) throws IOException { - byte[] bytes = string.getBytes(encoding); - out.write(bytes, 0, bytes.length); - position += bytes.length; - return this; - } - - public FormattingWriter write(Number number) throws IOException { - write(DataUtils.format(number)); - return this; - } - - public FormattingWriter writeln() throws IOException { - write(eolString); - return this; - } - - public FormattingWriter writeln(String string) throws IOException { - write(string); - write(eolString); - return this; - } - - public FormattingWriter writeln(Number number) throws IOException { - write(number); - write(eolString); - return this; - } - - public FormattingWriter format(String format, Object... args) throws IOException { - write(String.format(null, format, args)); - return this; - } - - public void flush() throws IOException { - out.flush(); - } - - public void close() throws IOException { - out.close(); - } - - public long tell() { - return position; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtils.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtils.java deleted file mode 100644 index 1b64667..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtils.java +++ /dev/null @@ -1,411 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import javax.swing.ImageIcon; -import java.awt.Font; -import java.awt.Graphics; -import java.awt.GraphicsConfiguration; -import java.awt.GraphicsDevice; -import java.awt.GraphicsEnvironment; -import java.awt.HeadlessException; -import java.awt.Image; -import java.awt.Polygon; -import java.awt.Rectangle; -import java.awt.Shape; -import java.awt.Transparency; -import java.awt.color.ColorSpace; -import java.awt.font.FontRenderContext; -import java.awt.font.TextLayout; -import java.awt.geom.Arc2D; -import java.awt.geom.CubicCurve2D; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.Path2D; -import java.awt.geom.PathIterator; -import java.awt.geom.QuadCurve2D; -import java.awt.geom.Rectangle2D; -import java.awt.geom.RoundRectangle2D; -import java.awt.image.BufferedImage; -import java.awt.image.ColorModel; -import java.awt.image.ComponentColorModel; -import java.awt.image.DataBuffer; -import java.awt.image.PixelGrabber; -import java.awt.image.Raster; -import java.awt.image.RenderedImage; -import java.awt.image.WritableRaster; -import java.util.Comparator; -import java.util.HashSet; -import java.util.Hashtable; -import java.util.PriorityQueue; -import java.util.Queue; -import java.util.Set; - -/** - * Abstract class that contains utility functions for working with graphics. - * For example, this includes font handling. - */ -public abstract class GraphicsUtils { - private static final FontRenderContext FONT_RENDER_CONTEXT = - new FontRenderContext(null, false, true); - private static final String FONT_TEST_STRING = - "Falsches Üben von Xylophonmusik quält jeden größeren Zwerg"; - private static final FontExpressivenessComparator FONT_EXPRESSIVENESS_COMPARATOR = - new FontExpressivenessComparator(); - - /** - * Default constructor that prevents creation of class. - */ - protected GraphicsUtils() { - throw new UnsupportedOperationException(); - } - - /** - * This method returns {@code true} if the specified image has the - * possibility to store transparent pixels. - * Inspired by http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html - * - * @param image Image that should be checked for alpha channel. - * @return {@code true} if the specified image can have transparent pixels, - * {@code false} otherwise - */ - public static boolean hasAlpha(Image image) { - ColorModel cm; - // If buffered image, the color model is readily available - if (image instanceof BufferedImage) { - BufferedImage bimage = (BufferedImage) image; - cm = bimage.getColorModel(); - } else { - // Use a pixel grabber to retrieve the image's color model; - // grabbing a single pixel is usually sufficient - PixelGrabber pg = new PixelGrabber(image, 0, 0, 1, 1, false); - try { - pg.grabPixels(); - } catch (InterruptedException e) { - return false; - } - // Get the image's color model - cm = pg.getColorModel(); - } - return cm.hasAlpha(); - } - - /** - * This method returns {@code true} if the specified image has at least one - * pixel that is not fully opaque. - * - * @param image Image that should be checked for non-opaque pixels. - * @return {@code true} if the specified image has transparent pixels, - * {@code false} otherwise - */ - public static boolean usesAlpha(Image image) { - if (image == null) { - return false; - } - BufferedImage bimage = toBufferedImage(image); - Raster alphaRaster = bimage.getAlphaRaster(); - if (alphaRaster == null) { - return false; - } - DataBuffer dataBuffer = alphaRaster.getDataBuffer(); - for (int i = 0; i < dataBuffer.getSize(); i++) { - int alpha = dataBuffer.getElem(i); - if (alpha < 255) { - return true; - } - } - return false; - } - - /** - * Converts an arbitrary image to a {@code BufferedImage}. - * - * @param image Image that should be converted. - * @return a buffered image containing the image pixels, or the original - * instance if the image already was of type {@code BufferedImage}. - */ - public static BufferedImage toBufferedImage(RenderedImage image) { - if (image instanceof BufferedImage) { - return (BufferedImage) image; - } - - ColorModel cm = image.getColorModel(); - WritableRaster raster = cm.createCompatibleWritableRaster( - image.getWidth(), image.getHeight()); - boolean isRasterPremultiplied = cm.isAlphaPremultiplied(); - Hashtable properties = null; - if (image.getPropertyNames() != null) { - properties = new Hashtable(); - for (String key : image.getPropertyNames()) { - properties.put(key, image.getProperty(key)); - } - } - - BufferedImage bimage = new BufferedImage(cm, raster, - isRasterPremultiplied, properties); - image.copyData(raster); - return bimage; - } - - /** - * This method returns a buffered image with the contents of an image. - * Taken from http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html - * - * @param image Image to be converted - * @return a buffered image with the contents of the specified image - */ - public static BufferedImage toBufferedImage(Image image) { - if (image instanceof BufferedImage) { - return (BufferedImage) image; - } - // This code ensures that all the pixels in the image are loaded - image = new ImageIcon(image).getImage(); - // Determine if the image has transparent pixels - boolean hasAlpha = hasAlpha(image); - - // Create a buffered image with a format that's compatible with the - // screen - BufferedImage bimage; - GraphicsEnvironment ge = GraphicsEnvironment - .getLocalGraphicsEnvironment(); - try { - // Determine the type of transparency of the new buffered image - int transparency = Transparency.OPAQUE; - if (hasAlpha) { - transparency = Transparency.TRANSLUCENT; - } - // Create the buffered image - GraphicsDevice gs = ge.getDefaultScreenDevice(); - GraphicsConfiguration gc = gs.getDefaultConfiguration(); - bimage = gc.createCompatibleImage( - image.getWidth(null), image.getHeight(null), transparency); - } catch (HeadlessException e) { - // The system does not have a screen - bimage = null; - } - if (bimage == null) { - // Create a buffered image using the default color model - int type = BufferedImage.TYPE_INT_RGB; - if (hasAlpha) { - type = BufferedImage.TYPE_INT_ARGB; - } - bimage = new BufferedImage( - image.getWidth(null), image.getHeight(null), type); - } - // Copy image to buffered image - Graphics g = bimage.createGraphics(); - // Paint the image onto the buffered image - g.drawImage(image, 0, 0, null); - g.dispose(); - return bimage; - } - - public static Shape clone(Shape shape) { - if (shape == null) { - return null; - } - Shape clone; - if (shape instanceof Line2D) { - clone = (shape instanceof Line2D.Float) ? - new Line2D.Float() : new Line2D.Double(); - ((Line2D) clone).setLine((Line2D) shape); - } else if (shape instanceof Rectangle) { - clone = new Rectangle((Rectangle) shape); - } else if (shape instanceof Rectangle2D) { - clone = (shape instanceof Rectangle2D.Float) ? - new Rectangle2D.Float() : new Rectangle2D.Double(); - ((Rectangle2D) clone).setRect((Rectangle2D) shape); - } else if (shape instanceof RoundRectangle2D) { - clone = (shape instanceof RoundRectangle2D.Float) ? - new RoundRectangle2D.Float() : new RoundRectangle2D.Double(); - ((RoundRectangle2D) clone).setRoundRect((RoundRectangle2D) shape); - } else if (shape instanceof Ellipse2D) { - clone = (shape instanceof Ellipse2D.Float) ? - new Ellipse2D.Float() : new Ellipse2D.Double(); - ((Ellipse2D) clone).setFrame(((Ellipse2D) shape).getFrame()); - } else if (shape instanceof Arc2D) { - clone = (shape instanceof Arc2D.Float) ? - new Arc2D.Float() : new Arc2D.Double(); - ((Arc2D) clone).setArc((Arc2D) shape); - } else if (shape instanceof Polygon) { - Polygon p = (Polygon) shape; - clone = new Polygon(p.xpoints, p.ypoints, p.npoints); - } else if (shape instanceof CubicCurve2D) { - clone = (shape instanceof CubicCurve2D.Float) ? - new CubicCurve2D.Float() : new CubicCurve2D.Double(); - ((CubicCurve2D) clone).setCurve((CubicCurve2D) shape); - } else if (shape instanceof QuadCurve2D) { - clone = (shape instanceof QuadCurve2D.Float) ? - new QuadCurve2D.Float() : new QuadCurve2D.Double(); - ((QuadCurve2D) clone).setCurve((QuadCurve2D) shape); - } else if (shape instanceof Path2D.Float) { - clone = new Path2D.Float(shape); - } else { - clone = new Path2D.Double(shape); - } - return clone; - } - - private static boolean isLogicalFontFamily(String family) { - return (Font.DIALOG.equals(family) || - Font.DIALOG_INPUT.equals(family) || - Font.SANS_SERIF.equals(family) || - Font.SERIF.equals(family) || - Font.MONOSPACED.equals(family)); - } - - /** - * Try to guess physical font from the properties of a logical font, like - * "Dialog", "Serif", "Monospaced" etc. - * - * @param logicalFont Logical font object. - * @param testText Text used to determine font properties. - * @return An object of the first matching physical font. The original font - * object is returned if it was a physical font or no font matched. - */ - public static Font getPhysicalFont(Font logicalFont, String testText) { - String logicalFamily = logicalFont.getFamily(); - if (!isLogicalFontFamily(logicalFamily)) { - return logicalFont; - } - - final TextLayout logicalLayout = - new TextLayout(testText, logicalFont, FONT_RENDER_CONTEXT); - - // Create a list of matches sorted by font expressiveness (in descending order) - Queue physicalFonts = - new PriorityQueue(1, FONT_EXPRESSIVENESS_COMPARATOR); - - Font[] allPhysicalFonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); - for (Font physicalFont : allPhysicalFonts) { - String physicalFamily = physicalFont.getFamily(); - // Skip logical fonts - if (isLogicalFontFamily(physicalFamily)) { - continue; - } - - // Derive identical variant of physical font - physicalFont = physicalFont.deriveFont( - logicalFont.getStyle(), logicalFont.getSize2D()); - TextLayout physicalLayout = - new TextLayout(testText, physicalFont, FONT_RENDER_CONTEXT); - - // Compare various properties of physical and logical font - if (physicalLayout.getBounds().equals(logicalLayout.getBounds()) && - physicalLayout.getAscent() == logicalLayout.getAscent() && - physicalLayout.getDescent() == logicalLayout.getDescent() && - physicalLayout.getLeading() == logicalLayout.getLeading() && - physicalLayout.getAdvance() == logicalLayout.getAdvance() && - physicalLayout.getVisibleAdvance() == logicalLayout.getVisibleAdvance()) { - // Store matching font in list - physicalFonts.add(physicalFont); - } - } - - // Return a valid font even when no matching font could be found - if (physicalFonts.isEmpty()) { - return logicalFont; - } - - return physicalFonts.poll(); - } - - public static Font getPhysicalFont(Font logicalFont) { - return getPhysicalFont(logicalFont, FONT_TEST_STRING); - } - - public static BufferedImage getAlphaImage(BufferedImage image) { - WritableRaster alphaRaster = image.getAlphaRaster(); - int width = image.getWidth(); - int height = image.getHeight(); - - ColorModel cm; - WritableRaster raster; - // TODO Handle bitmap masks (work on ImageDataStream is necessary) - /* - if (image.getTransparency() == BufferedImage.BITMASK) { - byte[] arr = {(byte) 0, (byte) 255}; - - cm = new IndexColorModel(1, 2, arr, arr, arr); - raster = Raster.createPackedRaster(DataBuffer.TYPE_BYTE, - width, height, 1, 1, null); - } else {*/ - ColorSpace colorSpace = ColorSpace.getInstance(ColorSpace.CS_GRAY); - int[] bits = {8}; - cm = new ComponentColorModel(colorSpace, bits, false, true, - Transparency.OPAQUE, DataBuffer.TYPE_BYTE); - raster = cm.createCompatibleWritableRaster(width, height); - //} - - BufferedImage alphaImage = new BufferedImage(cm, raster, false, null); - - int[] alphaValues = new int[image.getWidth() * alphaRaster.getNumBands()]; - for (int y = 0; y < image.getHeight(); y++) { - alphaRaster.getPixels(0, y, image.getWidth(), 1, alphaValues); - // FIXME Don't force 8-bit alpha channel (see TODO above) - if (image.getTransparency() == BufferedImage.BITMASK) { - for (int i = 0; i < alphaValues.length; i++) { - if (alphaValues[i] > 0) { - alphaValues[i] = 255; - } - } - } - alphaImage.getRaster().setPixels(0, y, image.getWidth(), 1, alphaValues); - } - - return alphaImage; - } - - public static boolean equals(Shape shapeA, Shape shapeB) { - PathIterator pathAIterator = shapeA.getPathIterator(null); - PathIterator pathBIterator = shapeB.getPathIterator(null); - - if (pathAIterator.getWindingRule() != pathBIterator.getWindingRule()) { - return false; - } - double[] pathASegment = new double[6]; - double[] pathBSegment = new double[6]; - while (!pathAIterator.isDone()) { - int pathASegmentType = pathAIterator.currentSegment(pathASegment); - int pathBSegmentType = pathBIterator.currentSegment(pathBSegment); - if (pathASegmentType != pathBSegmentType) { - return false; - } - for (int segmentIndex = 0; segmentIndex < pathASegment.length; segmentIndex++) { - if (pathASegment[segmentIndex] != pathBSegment[segmentIndex]) { - return false; - } - } - - pathAIterator.next(); - pathBIterator.next(); - } - // When the iterator of shapeA is done and shapeA equals shapeB, the iterator of shapeB must also be done - if (!pathBIterator.isDone()) { - return false; - } - return true; - } - - private static class FontExpressivenessComparator implements Comparator { - private static final int[] STYLES = { - Font.PLAIN, Font.ITALIC, Font.BOLD, Font.BOLD | Font.ITALIC - }; - - public int compare(Font font1, Font font2) { - if (font1 == font2) { - return 0; - } - Set variantNames1 = new HashSet(); - Set variantNames2 = new HashSet(); - for (int style : STYLES) { - variantNames1.add(font1.deriveFont(style).getPSName()); - variantNames2.add(font2.deriveFont(style).getPSName()); - } - if (variantNames1.size() < variantNames2.size()) { - return 1; - } else if (variantNames1.size() > variantNames2.size()) { - return -1; - } - return font1.getName().compareTo(font2.getName()); - } - } -} diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ImageDataStream.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ImageDataStream.java deleted file mode 100644 index e44e7ae..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/ImageDataStream.java +++ /dev/null @@ -1,131 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.awt.image.BufferedImage; -import java.awt.image.Raster; -import java.io.IOException; -import java.io.InputStream; -import java.util.LinkedList; -import java.util.Queue; - -public class ImageDataStream extends InputStream { - private final BufferedImage image; - private final int width; - private final int height; - private final Interleaving interleaving; - private final Raster raster; - private final boolean opaque; - private final Queue byteBuffer; - private final int[] sampleValues; - private final int[] sampleSizes; - private int x; - private int y; - - public ImageDataStream(BufferedImage image, Interleaving interleaving) { - this.image = image; - this.interleaving = interleaving; - - width = image.getWidth(); - height = image.getHeight(); - x = -1; - y = 0; - - Raster alphaRaster = image.getAlphaRaster(); - if (interleaving == Interleaving.ALPHA_ONLY) { - raster = alphaRaster; - } else { - raster = image.getRaster(); - } - opaque = alphaRaster == null; - - byteBuffer = new LinkedList(); - sampleValues = new int[raster.getNumBands()]; - sampleSizes = raster.getSampleModel().getSampleSize(); - } - - public BufferedImage getImage() { - return image; - } - - public Interleaving getInterleaving() { - return interleaving; - } - - @Override - public int read() throws IOException { - if (!byteBuffer.isEmpty()) { - return byteBuffer.poll(); - } else { - if (!nextSample()) { - return -1; - } - int bands = sampleValues.length; - if (interleaving == Interleaving.WITHOUT_ALPHA || - interleaving == Interleaving.ALPHA_ONLY) { - if (interleaving == Interleaving.WITHOUT_ALPHA && !opaque) { - // Ignore alpha band - bands--; - } - for (int band = 0; band < bands; band++) { - bufferSampleValue(band); - } - } else { - if (opaque) { - for (int band = 0; band < bands; band++) { - bufferSampleValue(band); - } - } else { - for (int band = 0; band < bands; band++) { - // Fix order to be ARGB instead of RGBA - if (band == 0) { - bufferSampleValue(bands - 1); - } else { - bufferSampleValue(band - 1); - } - } - } - } - if (!byteBuffer.isEmpty()) { - return byteBuffer.poll(); - } else { - return -1; - } - } - } - - private void bufferSampleValue(int band) { - if (sampleSizes[band] < 8) { - int byteValue = sampleValues[band] & 0xFF; - byteBuffer.offer(byteValue); - } else { - int byteCount = sampleSizes[band] / 8; - for (int i = byteCount - 1; i >= 0; i--) { - int byteValue = (sampleValues[band] >> i * 8) & 0xFF; - byteBuffer.offer(byteValue); - } - } - } - - private boolean nextSample() { - if (interleaving == Interleaving.SAMPLE || interleaving == Interleaving.WITHOUT_ALPHA) { - x++; - if (x >= width) { - x = 0; - y++; - } - } - if (x < 0 || x >= width || y < 0 || y >= height) { - return false; - } else { - raster.getPixel(x, y, sampleValues); - return true; - } - } - - public enum Interleaving { - SAMPLE, - ROW, - WITHOUT_ALPHA, - ALPHA_ONLY - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/LineWrapOutputStream.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/LineWrapOutputStream.java deleted file mode 100644 index 71263da..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/LineWrapOutputStream.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.io.FilterOutputStream; -import java.io.IOException; -import java.io.OutputStream; - -public class LineWrapOutputStream extends FilterOutputStream { - public static final String STANDARD_EOL = "\r\n"; - - private final int lineWidth; - private final byte[] eolBytes; - private int written; - - public LineWrapOutputStream(OutputStream sink, int lineWidth, String eol) { - super(sink); - this.lineWidth = lineWidth; - this.eolBytes = eol.getBytes(); - if (lineWidth <= 0) { - throw new IllegalArgumentException("Width must be at least 0."); - } - } - - public LineWrapOutputStream(OutputStream sink, int lineWidth) { - this(sink, lineWidth, STANDARD_EOL); - } - - @Override - public void write(int b) throws IOException { - if (written == lineWidth) { - out.write(eolBytes); - written = 0; - } - out.write(b); - written++; - } -} - diff --git a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/PageSize.java b/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/PageSize.java deleted file mode 100644 index f51f2c7..0000000 --- a/chart/src/main/java/org/xbib/graphics/chart/io/vector/util/PageSize.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import java.awt.geom.Rectangle2D; - -public class PageSize { - private static final double MM_PER_INCH = 2.54; - public static final PageSize TABLOID = new PageSize(11.0 * MM_PER_INCH, 17.0 * MM_PER_INCH); - public static final PageSize LETTER = new PageSize(8.5 * MM_PER_INCH, 11.0 * MM_PER_INCH); - public static final PageSize LEGAL = new PageSize(8.5 * MM_PER_INCH, 14.0 * MM_PER_INCH); - public static final PageSize LEDGER = TABLOID.getLandscape(); - public static final PageSize A3 = new PageSize(297.0, 420.0); - public static final PageSize A4 = new PageSize(210.0, 297.0); - public static final PageSize A5 = new PageSize(148.0, 210.0); - public final double x; - public final double y; - public final double width; - public final double height; - - public PageSize(double x, double y, double width, double height) { - this.x = x; - this.y = y; - this.width = width; - this.height = height; - } - - public PageSize(double width, double height) { - this(0.0, 0.0, width, height); - } - - public PageSize(Rectangle2D size) { - this(size.getX(), size.getY(), size.getWidth(), size.getHeight()); - } - - public PageSize getPortrait() { - if (width <= height) { - return this; - } - return new PageSize(x, y, height, width); - } - - public PageSize getLandscape() { - if (width >= height) { - return this; - } - return new PageSize(x, y, height, width); - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/GraphicsStateTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/GraphicsStateTest.java deleted file mode 100644 index 4ac6ae8..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/GraphicsStateTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNotSame; -import org.junit.jupiter.api.Test; -import java.awt.Color; -import java.awt.Graphics2D; -import java.awt.geom.AffineTransform; -import java.awt.geom.Rectangle2D; -import java.awt.image.BufferedImage; - -public class GraphicsStateTest { - - @Test - public void testInitialStateIsEqualToGraphics2D() { - BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB); - Graphics2D g2d = (Graphics2D) image.getGraphics(); - GraphicsState state = new GraphicsState(); - - assertEquals(state.getBackground(), g2d.getBackground()); - assertEquals(state.getColor(), g2d.getColor()); - assertEquals(state.getClip(), g2d.getClip()); - assertEquals(state.getComposite(), g2d.getComposite()); - assertEquals(state.getFont(), g2d.getFont()); - assertEquals(state.getPaint(), g2d.getPaint()); - assertEquals(state.getStroke(), g2d.getStroke()); - assertEquals(state.getTransform(), g2d.getTransform()); - } - - @Test - public void testEquals() { - GraphicsState state1 = new GraphicsState(); - state1.setBackground(Color.WHITE); - state1.setColor(Color.BLACK); - state1.setClip(new Rectangle2D.Double(0, 0, 10, 10)); - - GraphicsState state2 = new GraphicsState(); - state2.setBackground(Color.WHITE); - state2.setColor(Color.BLACK); - state2.setClip(new Rectangle2D.Double(0, 0, 10, 10)); - - assertEquals(state1, state2); - - state2.setTransform(AffineTransform.getTranslateInstance(5, 5)); - - assertFalse(state1.equals(state2)); - } - - @Test - public void testClone() throws CloneNotSupportedException { - GraphicsState state = new GraphicsState(); - state.setBackground(Color.BLUE); - state.setColor(Color.GREEN); - state.setClip(new Rectangle2D.Double(2, 3, 4, 2)); - - GraphicsState clone = (GraphicsState) state.clone(); - - assertNotSame(state, clone); - assertEquals(state, clone); - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtils.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtils.java deleted file mode 100644 index f8208f0..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtils.java +++ /dev/null @@ -1,267 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertTrue; -import java.util.Collections; -import java.util.IdentityHashMap; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public abstract class TestUtils { - - protected TestUtils() { - throw new UnsupportedOperationException(); - } - - public static void assertTemplateEquals(Template expected, Template actual) { - Iterator itExpected = expected.iterator(); - Iterator itActual = actual.iterator(); - while (itExpected.hasNext() && itActual.hasNext()) { - Object lineExpected = itExpected.next(); - Object lineActual = itActual.next(); - - if (lineExpected == null) { - continue; - } - assertTrue(lineActual instanceof String, - String.format("Line is of type %s, expected String.", lineActual.getClass())); - - if (lineExpected instanceof String) { - assertEquals(lineExpected, lineActual); - } else if (lineExpected instanceof Pattern) { - Pattern expectedPattern = (Pattern) lineExpected; - Matcher matcher = expectedPattern.matcher((String) lineActual); - assertTrue(matcher.matches(), - String.format("Line didn't match pattern.\nExpected: \"%s\"\nActual: \"%s\"", matcher.pattern(), lineActual)); - } - } - assertEquals(expected.size(), actual.size(), "Wrong number of lines in template."); - } - - private static List parseXML(String xmlString) { - XMLFragment frag; - List fragments = new LinkedList(); - int startPos = 0; - while ((frag = XMLFragment.parse(xmlString, startPos)) != null) { - fragments.add(frag); - startPos = frag.matchEnd; - } - return fragments; - } - - public static void assertXMLEquals(String expected, String actual) { - List expectedFrags = parseXML(expected); - List actualFrags = parseXML(actual); - - Iterator itExpected = expectedFrags.iterator(); - Iterator itActual = actualFrags.iterator(); - while (itExpected.hasNext() && itActual.hasNext()) { - XMLFragment expectedFrag = itExpected.next(); - XMLFragment actualFrag = itActual.next(); - assertEquals(expectedFrag, actualFrag); - } - - assertEquals(expectedFrags.size(), actualFrags.size()); - } - - @SuppressWarnings("serial") - public static class Template extends LinkedList { - public Template(Object[] lines) { - Collections.addAll(this, lines); - } - - public Template(Template[] templates) { - for (Template template : templates) { - addAll(template); - } - } - } - - public static class XMLFragment { - - private static final Pattern CDATA = Pattern.compile("\\s*"); - - private static final Pattern COMMENT = Pattern.compile("\\s*"); - - private static final Pattern TAG_BEGIN = Pattern.compile("\\s*<(/|\\?|!)?\\s*([^\\s>/\\?]+)"); - - private static final Pattern TAG_END = Pattern.compile("\\s*(/|\\?)?>"); - - private static final Pattern TAG_ATTRIBUTE = Pattern.compile("\\s*([^\\s>=]+)=(\"[^\"]*\"|'[^']*')"); - - private static final Pattern DOCTYPE_PART = Pattern.compile("\\s*(\"[^\"]*\"|'[^']*'|[^\\s>]+)"); - - public final String name; - - public final FragmentType type; - - public final Map attributes; - - public final int matchStart; - - public final int matchEnd; - - public XMLFragment(String name, FragmentType type, Map attributes, - int matchStart, int matchEnd) { - this.name = name; - this.type = type; - this.attributes = Collections.unmodifiableMap( - new TreeMap(attributes)); - this.matchStart = matchStart; - this.matchEnd = matchEnd; - } - - public static XMLFragment parse(String xmlString, int matchStart) { - Map attrs = new IdentityHashMap(); - - Matcher cdataMatch = CDATA.matcher(xmlString); - cdataMatch.region(matchStart, xmlString.length()); - if (cdataMatch.lookingAt()) { - attrs.put("value", cdataMatch.group(1)); - return new XMLFragment("", FragmentType.CDATA, attrs, matchStart, cdataMatch.end()); - } - - Matcher commentMatch = COMMENT.matcher(xmlString); - commentMatch.region(matchStart, xmlString.length()); - if (commentMatch.lookingAt()) { - attrs.put("value", commentMatch.group(1).trim()); - return new XMLFragment("", FragmentType.COMMENT, attrs, matchStart, commentMatch.end()); - } - - Matcher beginMatch = TAG_BEGIN.matcher(xmlString); - beginMatch.region(matchStart, xmlString.length()); - if (!beginMatch.lookingAt()) { - return null; - } - int matchEndPrev = beginMatch.end(); - - String modifiers = beginMatch.group(1); - String name = beginMatch.group(2); - boolean endTag = "/".equals(modifiers); - boolean declarationStart = "?".equals(modifiers); - boolean doctype = "!".equals(modifiers) && "DOCTYPE".equals(name); - - if (doctype) { - int partNo = 0; - while (true) { - Matcher attrMatch = DOCTYPE_PART.matcher(xmlString); - attrMatch.region(matchEndPrev, xmlString.length()); - if (!attrMatch.lookingAt()) { - break; - } - matchEndPrev = attrMatch.end(); - - String partValue = attrMatch.group(1); - if (partValue.startsWith("\"") || partValue.startsWith("'")) { - partValue = partValue.substring(1, partValue.length() - 1); - } - - String partId = String.format("doctype %02d", partNo++); - attrs.put(partId, partValue); - } - } else { - while (true) { - Matcher attrMatch = TAG_ATTRIBUTE.matcher(xmlString); - attrMatch.region(matchEndPrev, xmlString.length()); - if (!attrMatch.lookingAt()) { - break; - } - matchEndPrev = attrMatch.end(); - - String attrName = attrMatch.group(1); - String attrValue = attrMatch.group(2); - attrValue = attrValue.substring(1, attrValue.length() - 1); - attrs.put(attrName, attrValue); - } - } - - Matcher endMatch = TAG_END.matcher(xmlString); - endMatch.region(matchEndPrev, xmlString.length()); - if (!endMatch.lookingAt()) { - throw new AssertionError(String.format("No tag end found: %s", xmlString.substring(0, matchEndPrev))); - } - matchEndPrev = endMatch.end(); - - modifiers = endMatch.group(1); - boolean emptyElement = "/".equals(modifiers); - boolean declarationEnd = "?".equals(modifiers); - - FragmentType type = FragmentType.START_TAG; - if (endTag) { - type = FragmentType.END_TAG; - } else if (emptyElement) { - type = FragmentType.EMPTY_ELEMENT; - } else if (declarationStart && declarationEnd) { - type = FragmentType.DECLARATION; - } else if (doctype) { - type = FragmentType.DOCTYPE; - } - - return new XMLFragment(name, type, attrs, matchStart, matchEndPrev); - } - - @Override - public boolean equals(Object o) { - if (!(o instanceof XMLFragment)) { - return false; - } - XMLFragment frag = (XMLFragment) o; - if (!type.equals(frag.type) || !name.equals(frag.name)) { - return false; - } - Iterator> itThis = attributes.entrySet().iterator(); - Iterator> itFrag = frag.attributes.entrySet().iterator(); - while (itThis.hasNext() && itFrag.hasNext()) { - Map.Entry attrThis = itThis.next(); - Map.Entry attrFrag = itFrag.next(); - if (!attrThis.getKey().equals(attrFrag.getKey()) || - !attrThis.getValue().equals(attrFrag.getValue())) { - return false; - } - } - return true; - } - - @Override - public int hashCode() { - return type.hashCode() ^ attributes.hashCode(); - } - - @Override - public String toString() { - StringBuilder s = new StringBuilder("<"); - if (FragmentType.END_TAG.equals(type)) { - s.append("/"); - } else if (FragmentType.DECLARATION.equals(type)) { - s.append("?"); - } - - if (FragmentType.DOCTYPE.equals(type)) { - s.append("!").append(name); - for (String partValue : attributes.values()) { - s.append(" ").append(partValue); - } - } else { - s.append(name); - for (Map.Entry attr : attributes.entrySet()) { - s.append(" ").append(attr.getKey()).append("=\"").append(attr.getValue()).append("\""); - } - } - if (FragmentType.DECLARATION.equals(type)) { - s.append("?"); - } - s.append(">"); - return s.toString(); - } - - public enum FragmentType { - START_TAG, END_TAG, EMPTY_ELEMENT, CDATA, - DECLARATION, DOCTYPE, COMMENT - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtilsTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtilsTest.java deleted file mode 100644 index 9047d58..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/TestUtilsTest.java +++ /dev/null @@ -1,191 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.TestUtils.XMLFragment; - - -public class TestUtilsTest { - - @Test - public void testParseXmlStartTag() throws Exception { - String xmlTagName = "foo:bar.baz_tag"; - String xmlString; - XMLFragment frag; - - xmlString = "<" + xmlTagName + ">"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.START_TAG, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = "< " + xmlTagName + " >"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.START_TAG, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlEndTag() throws Exception { - String xmlTagName = "foo:bar.baz_tag"; - String xmlString; - XMLFragment frag; - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.END_TAG, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.END_TAG, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlEmptyElement() throws Exception { - String xmlTagName = "foo:bar.baz_tag"; - String xmlString; - XMLFragment frag; - - xmlString = "<" + xmlTagName + "/>"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.EMPTY_ELEMENT, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = "< " + xmlTagName + " />"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals(XMLFragment.FragmentType.EMPTY_ELEMENT, frag.type); - assertTrue(frag.attributes.isEmpty()); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlCDATA() throws Exception { - String xmlString; - XMLFragment frag; - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals("", frag.name); - assertEquals(XMLFragment.FragmentType.CDATA, frag.type); - assertEquals("foo bar", frag.attributes.get("value")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = "foo bar]]>"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals("", frag.name); - assertEquals(XMLFragment.FragmentType.CDATA, frag.type); - assertEquals("foo bar", frag.attributes.get("value")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlDeclaration() throws Exception { - String xmlString; - XMLFragment frag; - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals("xml", frag.name); - assertEquals(XMLFragment.FragmentType.DECLARATION, frag.type); - assertEquals("1.0", frag.attributes.get("version")); - assertEquals("UTF-8", frag.attributes.get("encoding")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlDoctype() throws Exception { - String xmlString; - XMLFragment frag; - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(XMLFragment.FragmentType.DOCTYPE, frag.type); - assertEquals("html", frag.attributes.get("doctype 00")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(XMLFragment.FragmentType.DOCTYPE, frag.type); - assertEquals("svg", frag.attributes.get("doctype 00")); - assertEquals("PUBLIC", frag.attributes.get("doctype 01")); - assertEquals("-//W3C//DTD SVG 1.1 Tiny//EN", frag.attributes.get("doctype 02")); - assertEquals("http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd", frag.attributes.get("doctype 03")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXmlComment() throws Exception { - String xmlString; - XMLFragment frag; - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals("", frag.name); - assertEquals(XMLFragment.FragmentType.COMMENT, frag.type); - assertEquals("foo bar", frag.attributes.get("value")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = ""; - frag = XMLFragment.parse(xmlString, 0); - assertEquals("", frag.name); - assertEquals(XMLFragment.FragmentType.COMMENT, frag.type); - assertEquals("foo bar", frag.attributes.get("value")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } - - @Test - public void testParseXMLAttributesTag() throws Exception { - String xmlTagName = "foo:bar.baz_tag"; - String xmlString; - XMLFragment frag; - - xmlString = "<" + xmlTagName + " foo='bar'>"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals("bar", frag.attributes.get("foo")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = "<" + xmlTagName + " foo=\"bar\">"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals("bar", frag.attributes.get("foo")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - - xmlString = "<" + xmlTagName + " foo=\"bar\" baz='qux'>"; - frag = XMLFragment.parse(xmlString, 0); - assertEquals(xmlTagName, frag.name); - assertEquals("bar", frag.attributes.get("foo")); - assertEquals("qux", frag.attributes.get("baz")); - assertEquals(0, frag.matchStart); - assertEquals(xmlString.length(), frag.matchEnd); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/VectorGraphics2DTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/VectorGraphics2DTest.java deleted file mode 100644 index 93cfd97..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/VectorGraphics2DTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.xbib.graphics.chart.io.vector; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; - -import java.awt.Color; -import java.awt.Graphics2D; -import java.util.Iterator; - -public class VectorGraphics2DTest { - - @Test - public void testEmptyVectorGraphics2DStartsWithCreateCommand() { - VectorGraphics2D g = new VectorGraphics2D(); - Iterable> commands = g.getCommands(); - Iterator> commandIterator = commands.iterator(); - assertTrue(commandIterator.hasNext()); - Command firstCommand = commandIterator.next(); - assertTrue(firstCommand instanceof CreateCommand); - assertEquals(g, ((CreateCommand) firstCommand).getValue()); - } - - @Test - public void testCreateEmitsCreateCommand() { - VectorGraphics2D g = new VectorGraphics2D(); - Iterable> gCommands = g.getCommands(); - Iterator> gCommandIterator = gCommands.iterator(); - CreateCommand gCreateCommand = (CreateCommand) gCommandIterator.next(); - - VectorGraphics2D g2 = (VectorGraphics2D) g.create(); - CreateCommand g2CreateCommand = null; - for (Command g2Command : g2.getCommands()) { - if (g2Command instanceof CreateCommand) { - g2CreateCommand = (CreateCommand) g2Command; - } - } - assertNotNull(g2CreateCommand); - assertNotEquals(gCreateCommand, g2CreateCommand); - assertEquals(g2, g2CreateCommand.getValue()); - } - - @Test - public void testDisposeCommandEmitted() { - VectorGraphics2D g = new VectorGraphics2D(); - g.setColor(Color.RED); - Graphics2D g2 = (Graphics2D) g.create(); - g2.setColor(Color.BLUE); - g2.dispose(); - Iterable> commands = g.getCommands(); - Command lastCommand = null; - for (Command command : commands) { - lastCommand = command; - } - assertTrue(lastCommand instanceof DisposeCommand); - assertEquals(Color.BLUE, ((DisposeCommand) lastCommand).getValue().getColor()); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessorTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessorTest.java deleted file mode 100644 index ee39aa3..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/eps/EPSProcessorTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.xbib.graphics.chart.io.vector.eps; - -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Collections; -import java.util.LinkedList; -import java.util.List; -import java.util.regex.Pattern; - -import static org.xbib.graphics.chart.io.vector.TestUtils.Template; -import static org.xbib.graphics.chart.io.vector.TestUtils.assertTemplateEquals; - -public class EPSProcessorTest { - private static final String EOL = "\n"; - private static final Object[] HEADER = { - "%!PS-Adobe-3.0 EPSF-3.0", - "%%BoundingBox: 0 28 57 114", - "%%HiResBoundingBox: 0.0 28.34645669291339 56.69291338582678 113.38582677165356", - "%%LanguageLevel: 3", - "%%Pages: 1", - "%%EndComments", - "%%Page: 1 1", - "/M /moveto load def", - "/L /lineto load def", - "/C /curveto load def", - "/Z /closepath load def", - "/RL /rlineto load def", - "/rgb /setrgbcolor load def", - "/rect { /height exch def /width exch def /y exch def /x exch def x y M width 0 RL 0 height RL width neg 0 RL } bind def", - "/ellipse { /endangle exch def /startangle exch def /ry exch def /rx exch def /y exch def /x exch def /savematrix matrix currentmatrix def x y translate rx ry scale 0 0 1 startangle endangle arcn savematrix setmatrix } bind def", - "/imgdict { /datastream exch def /hasdata exch def /decodeScale exch def /bits exch def /bands exch def /imgheight exch def /imgwidth exch def << /ImageType 1 /Width imgwidth /Height imgheight /BitsPerComponent bits /Decode [bands {0 decodeScale} repeat] ", - "/ImageMatrix [imgwidth 0 0 imgheight 0 0] hasdata { /DataSource datastream } if >> } bind def", - "/latinize { /fontName exch def /fontNameNew exch def fontName findfont 0 dict copy begin /Encoding ISOLatin1Encoding def fontNameNew /FontName def currentdict end dup /FID undef fontNameNew exch definefont pop } bind def", - Pattern.compile("/\\S+?Lat /\\S+ latinize /\\S+?Lat 12.0 selectfont"), - "gsave", - "clipsave", - "/DeviceRGB setcolorspace", - "0 85.03937007874016 translate", - "2.834645669291339 -2.834645669291339 scale", - "/basematrix matrix currentmatrix def", - "%%EOF" - }; - private static final PageSize PAGE_SIZE = new PageSize(0.0, 10.0, 20.0, 30.0); - - private final EPSProcessor processor = new EPSProcessor(); - private final List> commands = new LinkedList>(); - private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); - - private String process(Command... commands) throws IOException { - Collections.addAll(this.commands, commands); - Document processed = processor.process(this.commands, PAGE_SIZE); - processed.write(bytes); - return bytes.toString(StandardCharsets.ISO_8859_1); - } - - @Test - public void envelopeForEmptyDocument() throws IOException { - String result = process(); - Template actual = new Template(result.split(EOL)); - Template expected = new Template(HEADER); - assertTemplateEquals(expected, actual); - } - -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilterTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilterTest.java deleted file mode 100644 index 8b69958..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/AbsoluteToRelativeTransformsFilterTest.java +++ /dev/null @@ -1,91 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.CreateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DisposeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.TranslateCommand; - -import java.awt.geom.AffineTransform; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.MatcherAssert.assertThat; - -public class AbsoluteToRelativeTransformsFilterTest { - - @Test - public void testAbsoluteAndRelativeTransformsIdentical() { - AffineTransform absoluteTransform = new AffineTransform(); - absoluteTransform.rotate(42.0); - absoluteTransform.translate(4.0, 2.0); - List> commands = wrapCommands( - new SetTransformCommand(absoluteTransform) - ); - - AbsoluteToRelativeTransformsFilter filter = new AbsoluteToRelativeTransformsFilter(commands); - - filter.next(); - AffineTransform relativeTransform = ((TransformCommand) filter.next()).getValue(); - assertThat(relativeTransform, is(absoluteTransform)); - } - - @Test - public void testTranslateCorrect() { - AffineTransform absoluteTransform = new AffineTransform(); - absoluteTransform.scale(2.0, 2.0); - absoluteTransform.translate(4.2, 4.2); // (8.4, 8.4) - List> commands = wrapCommands( - new TranslateCommand(4.0, 2.0), - new SetTransformCommand(absoluteTransform) - ); - - AbsoluteToRelativeTransformsFilter filter = new AbsoluteToRelativeTransformsFilter(commands); - - TransformCommand transformCommand = null; - while (filter.hasNext()) { - Command filteredCommand = filter.next(); - if (filteredCommand instanceof TransformCommand) { - transformCommand = (TransformCommand) filteredCommand; - } - } - AffineTransform relativeTransform = transformCommand.getValue(); - assertThat(relativeTransform.getTranslateX(), is(4.4)); - assertThat(relativeTransform.getTranslateY(), is(6.4)); - } - - @Test - public void testRelativeTransformAfterDispose() { - AffineTransform absoluteTransform = new AffineTransform(); - absoluteTransform.rotate(42.0); - absoluteTransform.translate(4.0, 2.0); - List> commands = wrapCommands( - new CreateCommand(null), - new TransformCommand(absoluteTransform), - new DisposeCommand(null), - new SetTransformCommand(absoluteTransform) - ); - - AbsoluteToRelativeTransformsFilter filter = new AbsoluteToRelativeTransformsFilter(commands); - TransformCommand lastTransformCommand = null; - for (Command filteredCommand : filter) { - if (filteredCommand instanceof TransformCommand) { - lastTransformCommand = (TransformCommand) filteredCommand; - } - } - assertThat(lastTransformCommand.getValue(), is(absoluteTransform)); - } - - private List> wrapCommands(Command... commands) { - List> commandList = new ArrayList>(commands.length + 2); - commandList.add(new CreateCommand(null)); - commandList.addAll(Arrays.asList(commands)); - commandList.add(new DisposeCommand(null)); - return commandList; - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilterTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilterTest.java deleted file mode 100644 index 72ba55f..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FillPaintedShapeAsImageFilterTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawImageCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.RotateCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetPaintCommand; - -import java.awt.Color; -import java.awt.GradientPaint; -import java.awt.geom.Rectangle2D; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; - -import static org.hamcrest.CoreMatchers.any; -import static org.hamcrest.CoreMatchers.hasItem; -import static org.hamcrest.CoreMatchers.not; -import static org.hamcrest.MatcherAssert.assertThat; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; - -public class FillPaintedShapeAsImageFilterTest { - - @Test - public void testFillShapeReplacedWithDrawImage() { - List> commands = new LinkedList>(); - commands.add(new SetPaintCommand(new GradientPaint(0.0f, 0.0f, Color.BLACK, 100.0f, 100.0f, Color.WHITE))); - commands.add(new RotateCommand(10.0, 4.0, 2.0)); - commands.add(new FillShapeCommand(new Rectangle2D.Double(10.0, 10.0, 100.0, 100.0))); - - FillPaintedShapeAsImageFilter filter = new FillPaintedShapeAsImageFilter(commands); - - assertThat(filter, hasItem(any(DrawImageCommand.class))); - assertThat(filter, not(hasItem(any(FillShapeCommand.class)))); - } - - @Test - public void testFillShapeNotReplacedWithoutPaintCommand() { - List> commands = new LinkedList>(); - commands.add(new RotateCommand(10.0, 4.0, 2.0)); - commands.add(new FillShapeCommand(new Rectangle2D.Double(10.0, 10.0, 100.0, 100.0))); - - FillPaintedShapeAsImageFilter filter = new FillPaintedShapeAsImageFilter(commands); - - Iterator> filterIterator = filter.iterator(); - for (Command command : commands) { - assertEquals(command, filterIterator.next()); - } - assertFalse(filterIterator.hasNext()); - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FilterTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FilterTest.java deleted file mode 100644 index fbb954e..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/FilterTest.java +++ /dev/null @@ -1,98 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.geom.AffineTransform; -import java.awt.geom.Line2D; -import java.util.Arrays; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; - - -public class FilterTest { - - @Test - public void filterNone() { - List> stream = new LinkedList>(); - stream.add(new SetColorCommand(Color.BLACK)); - stream.add(new SetStrokeCommand(new BasicStroke(1f))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 10.0, 11.0))); - stream.add(new SetTransformCommand(AffineTransform.getTranslateInstance(5.0, 5.0))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 5.0, 6.0))); - - Iterator> unfiltered = stream.iterator(); - - Filter filtered = new Filter(stream) { - @Override - protected List> filter(Command command) { - return Arrays.>asList(command); - } - }; - - while (filtered.hasNext() || unfiltered.hasNext()) { - Command expected = unfiltered.next(); - Command result = filtered.next(); - assertEquals(expected, result); - } - } - - @Test - public void filterAll() { - List> stream = new LinkedList>(); - stream.add(new SetColorCommand(Color.BLACK)); - stream.add(new SetStrokeCommand(new BasicStroke(1f))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 10.0, 11.0))); - stream.add(new SetTransformCommand(AffineTransform.getTranslateInstance(5.0, 5.0))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 5.0, 6.0))); - - Iterator> unfiltered = stream.iterator(); - - Filter filtered = new Filter(stream) { - @Override - protected List> filter(Command command) { - return null; - } - }; - assertTrue(unfiltered.hasNext()); - assertFalse(filtered.hasNext()); - } - - @Test - public void duplicate() { - List> stream = new LinkedList>(); - stream.add(new SetColorCommand(Color.BLACK)); - stream.add(new SetStrokeCommand(new BasicStroke(1f))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 10.0, 11.0))); - stream.add(new SetTransformCommand(AffineTransform.getTranslateInstance(5.0, 5.0))); - stream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 5.0, 6.0))); - - Iterator> unfiltered = stream.iterator(); - - Filter filtered = new Filter(stream) { - @Override - protected List> filter(Command command) { - return Arrays.asList(command, command); - } - }; - - while (filtered.hasNext() || unfiltered.hasNext()) { - Command expected = unfiltered.next(); - Command result1 = filtered.next(); - Command result2 = filtered.next(); - assertEquals(expected, result1); - assertEquals(expected, result2); - } - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilterTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilterTest.java deleted file mode 100644 index 0f1281e..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/intermediate/filters/GroupingFilterTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.xbib.graphics.chart.io.vector.intermediate.filters; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Group; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetColorCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetStrokeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.SetTransformCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.StateCommand; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.geom.AffineTransform; -import java.awt.geom.Line2D; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; - -public class GroupingFilterTest { - - @Test - public void filtered() { - List> resultStream = new LinkedList>(); - resultStream.add(new SetColorCommand(Color.BLACK)); - resultStream.add(new SetStrokeCommand(new BasicStroke(1f))); - resultStream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 10.0, 11.0))); - resultStream.add(new SetTransformCommand(AffineTransform.getTranslateInstance(5.0, 5.0))); - resultStream.add(new DrawShapeCommand(new Line2D.Double(0.0, 1.0, 5.0, 6.0))); - List> expectedStream = new LinkedList>(); - Iterator> resultCloneIterator = resultStream.iterator(); - Group group1 = new Group(); - group1.add(resultCloneIterator.next()); - group1.add(resultCloneIterator.next()); - expectedStream.add(group1); - expectedStream.add(resultCloneIterator.next()); - Group group2 = new Group(); - group2.add(resultCloneIterator.next()); - expectedStream.add(group2); - expectedStream.add(resultCloneIterator.next()); - Iterator> expectedIterator = expectedStream.iterator(); - Filter resultIterator = new GroupingFilter(resultStream) { - @Override - protected boolean isGrouped(Command command) { - return command instanceof StateCommand; - } - }; - while (resultIterator.hasNext() || expectedIterator.hasNext()) { - Command result = resultIterator.next(); - Command expected = expectedIterator.next(); - assertEquals(expected, result); - } - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessorTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessorTest.java deleted file mode 100644 index 85fd19f..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/pdf/PDFProcessorTest.java +++ /dev/null @@ -1,114 +0,0 @@ -package org.xbib.graphics.chart.io.vector.pdf; - -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Collections; -import java.util.LinkedList; -import java.util.List; -import java.util.regex.Pattern; - -import static org.xbib.graphics.chart.io.vector.TestUtils.Template; -import static org.xbib.graphics.chart.io.vector.TestUtils.assertTemplateEquals; - -public class PDFProcessorTest { - private static final String EOL = "\n"; - private static final String HEADER = "%PDF-1.4"; - private static final String FOOTER = "%%EOF"; - private static final PageSize PAGE_SIZE = new PageSize(0.0, 10.0, 20.0, 30.0); - - private final PDFProcessor processor = new PDFProcessor(); - private final List> commands = new LinkedList>(); - private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); - - private String process(Command... commands) throws IOException { - Collections.addAll(this.commands, commands); - Document processed = processor.process(this.commands, PAGE_SIZE); - processed.write(bytes); - return bytes.toString(StandardCharsets.ISO_8859_1); - } - - @Test - public void envelopeForEmptyDocument() throws IOException { - String result = process(); - Template actual = new Template(result.split(EOL)); - Template expected = new Template(new Object[]{ - HEADER, - "1 0 obj", - "<<", - "/Type /Catalog", - "/Pages 2 0 R", - ">>", - "endobj", - "2 0 obj", - "<<", - "/Type /Pages", - "/Kids [3 0 R]", - "/Count 1", - ">>", - "endobj", - "3 0 obj", - "<<", - "/Type /Page", - "/Parent 2 0 R", - "/MediaBox [0 28.34645669291339 56.69291338582678 85.03937007874016]", - "/Contents 4 0 R", - "/Resources 6 0 R", - ">>", - "endobj", - "4 0 obj", - "<<", - "/Length 5 0 R", - ">>", - "stream", - "q", - "1 1 1 rg 1 1 1 RG", - "2.834645669291339 0 0 -2.834645669291339 0 85.03937007874016 cm", - "/Fnt0 12.0 Tf", - "Q", - "endstream", - "endobj", - "5 0 obj", - "100", - "endobj", - "6 0 obj", - "<<", - "/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]", - "/Font <<", - "/Fnt0 <<", - "/Type /Font", - "/Subtype /TrueType", - "/Encoding /WinAnsiEncoding", - Pattern.compile("/BaseFont /\\S+"), - ">>", - ">>", - ">>", - "endobj", - "xref", - "0 7", - "0000000000 65535 f ", - Pattern.compile("\\d{10} 00000 n "), - Pattern.compile("\\d{10} 00000 n "), - Pattern.compile("\\d{10} 00000 n "), - Pattern.compile("\\d{10} 00000 n "), - Pattern.compile("\\d{10} 00000 n "), - Pattern.compile("\\d{10} 00000 n "), - "trailer", - "<<", - "/Size 7", - "/Root 1 0 R", - ">>", - "startxref", - Pattern.compile("[1-9]\\d*"), - FOOTER - }); - - assertTemplateEquals(expected, actual); - } -} - diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessorTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessorTest.java deleted file mode 100644 index 309ec35..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/svg/SVGProcessorTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.xbib.graphics.chart.io.vector.svg; - -import org.junit.jupiter.api.Test; -import org.xbib.graphics.chart.io.vector.Document; -import org.xbib.graphics.chart.io.vector.intermediate.commands.Command; -import org.xbib.graphics.chart.io.vector.intermediate.commands.DrawShapeCommand; -import org.xbib.graphics.chart.io.vector.intermediate.commands.FillShapeCommand; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import java.awt.geom.Rectangle2D; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Collections; -import java.util.LinkedList; -import java.util.List; - -import static org.xbib.graphics.chart.io.vector.TestUtils.assertXMLEquals; - -public class SVGProcessorTest { - private static final String EOL = "\n"; - private static final String HEADER = - "" + EOL + - "" + EOL + - "" + EOL; - private static final String FOOTER = ""; - private static final PageSize PAGE_SIZE = new PageSize(0.0, 10.0, 20.0, 30.0); - - private final SVGProcessor processor = new SVGProcessor(); - private final List> commands = new LinkedList>(); - private final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); - - private String process(Command... commands) throws IOException { - Collections.addAll(this.commands, commands); - Document processed = processor.process(this.commands, PAGE_SIZE); - processed.write(bytes); - return bytes.toString(StandardCharsets.UTF_8); - } - - @Test - public void envelopeForEmptyDocument() throws Exception { - String result = process(); - String expected = HEADER.replaceAll(">$", "/>"); - assertXMLEquals(expected, result); - } - - @Test - public void drawShapeBlack() throws Exception { - String result = process( - new DrawShapeCommand(new Rectangle2D.Double(1, 2, 3, 4)) - ); - String expected = - HEADER + EOL + - " " + EOL + - FOOTER; - assertXMLEquals(expected, result); - } - - @Test - public void fillShapeBlack() throws Exception { - String result = process( - new FillShapeCommand(new Rectangle2D.Double(1, 2, 3, 4)) - ); - String expected = - HEADER + EOL + - " " + EOL + - FOOTER; - assertXMLEquals(expected, result); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStreamTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStreamTest.java deleted file mode 100644 index 3cbff85..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/ASCII85EncodeStreamTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Test; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.charset.StandardCharsets; - -public class ASCII85EncodeStreamTest { - - private static void assertEncodedString(String expected, String input) throws IOException { - ByteArrayInputStream inputStream = new ByteArrayInputStream(input.getBytes()); - ByteArrayOutputStream outStream = new ByteArrayOutputStream(); - OutputStream encodeStream = new ASCII85EncodeStream(outStream); - byte[] buffer = new byte[1024]; - for (int count = inputStream.read(buffer); count >= 0; count = inputStream.read(buffer)) { - encodeStream.write(buffer, 0, count); - } - encodeStream.close(); - String encoded = outStream.toString(StandardCharsets.ISO_8859_1); - assertEquals(expected, encoded); - } - - @Test - public void testEncoding() throws IOException { - String input = - "Man is distinguished, not only by his reason, but by this singular passion " + - "from other animals, which is a lust of the mind, that by a perseverance of " + - "delight in the continued and indefatigable generation of knowledge, exceeds " + - "the short vehemence of any carnal pleasure."; - - String expected = - "9jqo^BlbD-BleB1DJ+*+F(f,q/0JhKFCj@.4Gp$d7F!,L7@<6@)/0JDEF@3BB/F*&OCAfu2/AKYi(DIb:@FD,*)" + - "+C]U=@3BN#EcYf8ATD3s@q?d$AftVqCh[NqF-FD5W8ARlolDIal(DIduD.RTpAKYo'+CT/5+Cei#" + - "DII?(E,9)oF*2M7/c~>"; - - assertEncodedString(expected, input); - } - - @Test - public void testPadding() throws IOException { - assertEncodedString("/c~>", "."); - } - - @Test - public void testEmpty() throws IOException { - assertEncodedString("~>", ""); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStreamTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStreamTest.java deleted file mode 100644 index 4c1ac19..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/Base64EncodeStreamTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Test; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.charset.StandardCharsets; - -public class Base64EncodeStreamTest { - - private static void assertEncodedString(String expected, String input) throws IOException { - ByteArrayInputStream inputStream = new ByteArrayInputStream(input.getBytes()); - ByteArrayOutputStream outStream = new ByteArrayOutputStream(); - OutputStream encodeStream = new Base64EncodeStream(outStream); - byte[] buffer = new byte[1024]; - for (int count = inputStream.read(buffer); count >= 0; count = inputStream.read(buffer)) { - encodeStream.write(buffer, 0, count); - } - encodeStream.close(); - String encoded = outStream.toString(StandardCharsets.ISO_8859_1); - assertEquals(expected, encoded); - } - - @Test - public void testEncoding() throws IOException { - String input = - "Man is distinguished, not only by his reason, but by this singular passion " + - "from other animals, which is a lust of the mind, that by a perseverance of " + - "delight in the continued and indefatigable generation of knowledge, exceeds " + - "the short vehemence of any carnal pleasure."; - - String expected = - "TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz" + - "IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg" + - "dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu" + - "dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo" + - "ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4="; - - assertEncodedString(expected, input); - } - - @Test - public void testPadding() throws IOException { - assertEncodedString("YW55IGNhcm5hbCBwbGVhc3VyZS4=", "any carnal pleasure."); - assertEncodedString("YW55IGNhcm5hbCBwbGVhc3VyZQ==", "any carnal pleasure"); - assertEncodedString("YW55IGNhcm5hbCBwbGVhc3Vy", "any carnal pleasur"); - assertEncodedString("YW55IGNhcm5hbCBwbGVhc3U=", "any carnal pleasu"); - assertEncodedString("YW55IGNhcm5hbCBwbGVhcw==", "any carnal pleas"); - - assertEncodedString("cGxlYXN1cmUu", "pleasure."); - assertEncodedString("bGVhc3VyZS4=", "leasure."); - assertEncodedString("ZWFzdXJlLg==", "easure."); - assertEncodedString("YXN1cmUu", "asure."); - assertEncodedString("c3VyZS4=", "sure."); - } - - @Test - public void testEmpty() throws IOException { - assertEncodedString("", ""); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/DataUtilsTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/DataUtilsTest.java deleted file mode 100644 index 8591fb8..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/DataUtilsTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Test; - -public class DataUtilsTest { - - @Test - public void stripTrailingSpaces() { - String result = DataUtils.stripTrailing(" foo bar! ", " "); - String expected = " foo bar!"; - assertEquals(expected, result); - } - - @Test - public void stripTrailingSpacesInMultilineString() { - String result = DataUtils.stripTrailing(" foo bar! \n ", " "); - String expected = " foo bar! \n"; - assertEquals(expected, result); - } - - @Test - public void stripComplexSubstring() { - String result = DataUtils.stripTrailing("+bar foo+bar+bar+bar", "+bar"); - String expected = "+bar foo"; - assertEquals(expected, result); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtilsTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtilsTest.java deleted file mode 100644 index c1dd08c..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/util/GraphicsUtilsTest.java +++ /dev/null @@ -1,142 +0,0 @@ -package org.xbib.graphics.chart.io.vector.util; - -import static org.junit.jupiter.api.Assertions.assertArrayEquals; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNotSame; -import static org.junit.jupiter.api.Assertions.assertTrue; -import org.junit.jupiter.api.Test; -import java.awt.Font; -import java.awt.Image; -import java.awt.Polygon; -import java.awt.Rectangle; -import java.awt.Shape; -import java.awt.Toolkit; -import java.awt.geom.Arc2D; -import java.awt.geom.CubicCurve2D; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.Path2D; -import java.awt.geom.PathIterator; -import java.awt.geom.QuadCurve2D; -import java.awt.geom.Rectangle2D; -import java.awt.geom.RoundRectangle2D; -import java.awt.image.BufferedImage; -import java.awt.image.FilteredImageSource; -import java.awt.image.RGBImageFilter; -import java.lang.reflect.InvocationTargetException; - -/** - * On Linux, the package msttcorefonts need to be installed - */ -public class GraphicsUtilsTest { - private static final double DELTA = 1e-15; - - private static void assertShapeEquals(Shape expected, Shape actual) { - if ((expected instanceof Line2D) && (actual instanceof Line2D)) { - assertEquals(((Line2D) expected).getP1(), ((Line2D) actual).getP1()); - assertEquals(((Line2D) expected).getP2(), ((Line2D) actual).getP2()); - } else if ((expected instanceof Polygon) && (actual instanceof Polygon)) { - int n = ((Polygon) actual).npoints; - assertEquals(((Polygon) expected).npoints, n); - if (n > 0) { - assertArrayEquals(((Polygon) expected).xpoints, ((Polygon) actual).xpoints); - assertArrayEquals(((Polygon) expected).ypoints, ((Polygon) actual).ypoints); - } - } else if ((expected instanceof QuadCurve2D) && (actual instanceof QuadCurve2D)) { - assertEquals(((QuadCurve2D) expected).getP1(), ((QuadCurve2D) actual).getP1()); - assertEquals(((QuadCurve2D) expected).getCtrlPt(), ((QuadCurve2D) actual).getCtrlPt()); - assertEquals(((QuadCurve2D) expected).getP2(), ((QuadCurve2D) actual).getP2()); - } else if ((expected instanceof CubicCurve2D) && (actual instanceof CubicCurve2D)) { - assertEquals(((CubicCurve2D) expected).getP1(), ((CubicCurve2D) actual).getP1()); - assertEquals(((CubicCurve2D) expected).getCtrlP1(), ((CubicCurve2D) actual).getCtrlP1()); - assertEquals(((CubicCurve2D) expected).getCtrlP2(), ((CubicCurve2D) actual).getCtrlP2()); - assertEquals(((CubicCurve2D) expected).getP2(), ((CubicCurve2D) actual).getP2()); - } else if ((expected instanceof Path2D) && (actual instanceof Path2D)) { - PathIterator itExpected = expected.getPathIterator(null); - PathIterator itActual = actual.getPathIterator(null); - double[] segmentExpected = new double[6]; - double[] segmentActual = new double[6]; - for (; !itExpected.isDone() || !itActual.isDone(); itExpected.next(), itActual.next()) { - assertEquals(itExpected.getWindingRule(), itActual.getWindingRule()); - itExpected.currentSegment(segmentExpected); - itActual.currentSegment(segmentActual); - assertArrayEquals(segmentExpected, segmentActual, DELTA); - } - } else { - assertEquals(expected, actual); - } - } - - @Test - public void testToBufferedImage() { - Image[] images = { - new BufferedImage(320, 240, BufferedImage.TYPE_INT_ARGB), - new BufferedImage(320, 240, BufferedImage.TYPE_INT_RGB), - Toolkit.getDefaultToolkit().createImage(new FilteredImageSource( - new BufferedImage(320, 240, BufferedImage.TYPE_INT_RGB).getSource(), - new RGBImageFilter() { - @Override - public int filterRGB(int x, int y, int rgb) { - return rgb & 0xff; - } - } - )) - }; - - for (Image image : images) { - BufferedImage bimage = GraphicsUtils.toBufferedImage(image); - assertNotNull(bimage); - assertEquals(BufferedImage.class, bimage.getClass()); - assertEquals(image.getWidth(null), bimage.getWidth()); - assertEquals(image.getHeight(null), bimage.getHeight()); - } - } - - @Test - public void testHasAlpha() { - Image image; - image = new BufferedImage(320, 240, BufferedImage.TYPE_INT_ARGB); - assertTrue(GraphicsUtils.hasAlpha(image)); - image = new BufferedImage(320, 240, BufferedImage.TYPE_INT_RGB); - assertFalse(GraphicsUtils.hasAlpha(image)); - } - - @Test - public void testPhysicalFont() { - Font font = new Font("Monospaced", Font.PLAIN, 12); - assertNotSame(font, GraphicsUtils.getPhysicalFont(font)); - } - - @Test - public void testCloneShape() - throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException { - Class[] shapeClasses = { - Line2D.Float.class, - Line2D.Double.class, - Rectangle.class, - Rectangle2D.Float.class, - Rectangle2D.Double.class, - RoundRectangle2D.Float.class, - RoundRectangle2D.Double.class, - Ellipse2D.Float.class, - Ellipse2D.Double.class, - Arc2D.Float.class, - Arc2D.Double.class, - Polygon.class, - CubicCurve2D.Float.class, - CubicCurve2D.Double.class, - QuadCurve2D.Float.class, - QuadCurve2D.Double.class, - Path2D.Float.class, - Path2D.Double.class - }; - for (Class shapeClass : shapeClasses) { - Shape shape = (Shape) shapeClass.getDeclaredConstructor().newInstance(); - Shape clone = GraphicsUtils.clone(shape); - assertNotNull(clone); - assertShapeEquals(shape, clone); - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/AbstractTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/AbstractTest.java deleted file mode 100644 index 75c86a8..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/AbstractTest.java +++ /dev/null @@ -1,170 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import org.xbib.graphics.chart.io.vector.EPSGraphics2D; -import org.xbib.graphics.chart.io.vector.PDFGraphics2D; -import org.xbib.graphics.chart.io.vector.SVGGraphics2D; -import org.xbib.graphics.chart.io.vector.util.PageSize; - -import javax.imageio.ImageIO; -import java.awt.Color; -import java.awt.Graphics2D; -import java.awt.RenderingHints; -import java.awt.image.BufferedImage; -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; - -public abstract class AbstractTest { - - private final PageSize pageSize; - - private final BufferedImage reference; - - private final EPSGraphics2D epsGraphics; - - private final PDFGraphics2D pdfGraphics; - - private final SVGGraphics2D svgGraphics; - - public AbstractTest() { - int width = 150; - int height = 150; - pageSize = new PageSize(0.0, 0.0, width, height); - epsGraphics = new EPSGraphics2D(0, 0, width, height); - draw(epsGraphics); - pdfGraphics = new PDFGraphics2D(0, 0, width, height); - draw(pdfGraphics); - svgGraphics = new SVGGraphics2D(0, 0, width, height); - draw(svgGraphics); - reference = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); - Graphics2D referenceGraphics = reference.createGraphics(); - referenceGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - referenceGraphics.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); - referenceGraphics.setBackground(new Color(1f, 1f, 1f, 0f)); - referenceGraphics.clearRect(0, 0, reference.getWidth(), reference.getHeight()); - referenceGraphics.setColor(Color.BLACK); - draw(referenceGraphics); - try { - File referenceImage = File.createTempFile(getClass().getName() + ".reference", ".png"); - referenceImage.deleteOnExit(); - ImageIO.write(reference, "png", referenceImage); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - public abstract void draw(Graphics2D g); - - public PageSize getPageSize() { - return pageSize; - } - - public BufferedImage getReference() { - return reference; - } - - public InputStream getEPS() { - return new ByteArrayInputStream(epsGraphics.getBytes()); - } - - public InputStream getPDF() { - return new ByteArrayInputStream(pdfGraphics.getBytes()); - } - - public InputStream getSVG() { - return new ByteArrayInputStream(svgGraphics.getBytes()); - } - - /*public BufferedImage getRasterizedEPS() throws GhostscriptException, IOException { - if (rasterizedEPS != null) { - return rasterizedEPS; - } - - File epsInputFile = File.createTempFile(getClass().getName() + ".testEPS", ".eps"); - epsInputFile.deleteOnExit(); - OutputStream epsInput = new FileOutputStream(epsInputFile); - epsInput.write(epsGraphics.getBytes()); - epsInput.close(); - - File pngOutputFile = File.createTempFile(getClass().getName() + ".testEPS", "png"); - pngOutputFile.deleteOnExit(); - Ghostscript gs = Ghostscript.getInstance(); - gs.initialize(new String[]{ - "-dBATCH", - "-dQUIET", - "-dNOPAUSE", - "-dSAFER", - String.format("-g%dx%d", Math.round(getPageSize().width), Math.round(getPageSize().height)), - "-dGraphicsAlphaBits=4", - "-dAlignToPixels=0", - "-dEPSCrop", - "-dPSFitPage", - "-sDEVICE=pngalpha", - "-sOutputFile=" + pngOutputFile.toString(), - epsInputFile.toString() - }); - gs.exit(); - rasterizedEPS = ImageIO.read(pngOutputFile); - return rasterizedEPS; - }*/ - - /*public BufferedImage getRasterizedPDF() throws GhostscriptException, IOException { - if (rasterizedPDF != null) { - return rasterizedPDF; - } - - File pdfInputFile = File.createTempFile(getClass().getName() + ".testPDF", ".pdf"); - pdfInputFile.deleteOnExit(); - OutputStream pdfInput = new FileOutputStream(pdfInputFile); - pdfInput.write(pdfGraphics.getBytes()); - pdfInput.close(); - - File pngOutputFile = File.createTempFile(getClass().getName() + ".testPDF", "png"); - pngOutputFile.deleteOnExit(); - Ghostscript gs = Ghostscript.getInstance(); - gs.initialize(new String[]{ - "-dBATCH", - "-dQUIET", - "-dNOPAUSE", - "-dSAFER", - String.format("-g%dx%d", Math.round(getPageSize().width), Math.round(getPageSize().height)), - "-dGraphicsAlphaBits=4", - // TODO: More robust settings for gs? DPI value is estimated. - "-r25", - "-dAlignToPixels=0", - "-dPDFFitPage", - "-sDEVICE=pngalpha", - "-sOutputFile=" + pngOutputFile.toString(), - pdfInputFile.toString() - }); - gs.exit(); - rasterizedPDF = ImageIO.read(pngOutputFile); - return rasterizedPDF; - }*/ - - /*public BufferedImage getRasterizedSVG() throws TranscoderException { - if (rasterizedSVG != null) { - return rasterizedSVG; - } - - rasterizedSVG = new BufferedImage( - (int) Math.round(getPageSize().width), (int) Math.round(getPageSize().height), - BufferedImage.TYPE_INT_ARGB); - - ImageTranscoder transcoder = new ImageTranscoder() { - @Override - public BufferedImage createImage(int width, int height) { - return rasterizedSVG; - } - - @Override - public void writeImage(BufferedImage bufferedImage, TranscoderOutput transcoderOutput) throws TranscoderException { - } - }; - - transcoder.transcode(new TranscoderInput(getSVG()), null); - - return rasterizedSVG; - }*/ -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/CharacterTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/CharacterTest.java deleted file mode 100644 index aecd35a..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/CharacterTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Graphics2D; -import java.nio.charset.Charset; -import java.nio.charset.CharsetEncoder; -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; - -public class CharacterTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - double w = getPageSize().width; - double h = getPageSize().height; - Charset latin1 = StandardCharsets.ISO_8859_1; - CharsetEncoder latin1Encoder = latin1.newEncoder(); - List charactersInCharset = new ArrayList<>(); - for (char char_ = Character.MIN_VALUE; char_ < Character.MAX_VALUE; char_++) { - String javaString = String.valueOf(char_); - if (latin1Encoder.canEncode(char_)) { - charactersInCharset.add(javaString); - } - } - final int colCount = (int) Math.ceil(Math.sqrt(charactersInCharset.size())); - final int rowCount = colCount; - double tileWidth = w / colCount; - double tileHeight = h / rowCount; - int charIndex = 0; - for (double y = 0.0; y < h; y += tileHeight) { - for (double x = 0.0; x < w; x += tileWidth) { - String c = charactersInCharset.get(charIndex); - double tileCenterX = x + tileWidth / 2.0; - double tileCenterY = y + tileHeight / 2.0; - g.drawString(c, (float) tileCenterX, (float) tileCenterY); - charIndex++; - } - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ClippingTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ClippingTest.java deleted file mode 100644 index 8807512..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ClippingTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Graphics2D; -import java.awt.geom.AffineTransform; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; - -public class ClippingTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - double w = getPageSize().width; - double h = getPageSize().height; - - AffineTransform txOrig = g.getTransform(); - g.translate(w / 2.0, h / 2.0); - - g.setClip(new Ellipse2D.Double(-0.6 * w / 2.0, -h / 2.0, 0.6 * w, h)); - for (double x = -w / 2.0; x < w / 2.0; x += 4.0) { - g.draw(new Line2D.Double(x, -h / 2.0, x, h / 2.0)); - } - - g.rotate(Math.toRadians(-90.0)); - g.clip(new Ellipse2D.Double(-0.6 * w / 2.0, -h / 2.0, 0.6 * w, h)); - for (double x = -h / 2.0; x < h / 2.0; x += 4.0) { - g.draw(new Line2D.Double(x, -w / 2.0, x, w / 2.0)); - } - - g.setTransform(txOrig); - g.setClip(null); - g.draw(new Line2D.Double(0.0, 0.0, w, h)); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ColorTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ColorTest.java deleted file mode 100644 index b54f923..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ColorTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Color; -import java.awt.Graphics2D; -import java.awt.geom.Rectangle2D; - -public class ColorTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - final float wPage = (float) getPageSize().width; - final float hPage = (float) getPageSize().height; - final float wTile = Math.min(wPage / 15f, hPage / 15f); - final float hTile = wTile; - float w = wPage - wTile; - float h = hPage - hTile; - for (float y = (hPage - h) / 2f; y < h; y += hTile) { - float yRel = y / h; - for (float x = (wPage - w) / 2f; x < w; x += wTile) { - float xRel = x / w; - Color c = Color.getHSBColor(yRel, 1f, 1f); - int alpha = 255 - (int) (xRel * 255f); - g.setColor(new Color(c.getRed(), c.getGreen(), c.getBlue(), alpha)); - g.fill(new Rectangle2D.Float(x, y, wTile, hTile)); - } - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/EmptyFileTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/EmptyFileTest.java deleted file mode 100644 index 503f42b..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/EmptyFileTest.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Graphics2D; - -public class EmptyFileTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/FontTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/FontTest.java deleted file mode 100644 index ef690ee..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/FontTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import org.xbib.graphics.chart.io.vector.GraphicsState; - -import java.awt.Font; -import java.awt.Graphics2D; - -public class FontTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - final int tileCountH = 4; - final int tileCountV = 8; - final double wTile = getPageSize().width / tileCountH; - final double hTile = getPageSize().height / tileCountV; - final double xOrigin = (getPageSize().width - tileCountH * wTile) / 2.0; - final double yOrigin = (getPageSize().height - tileCountV * hTile) / 2.0; - double x = xOrigin; - double y = yOrigin; - - final float[] sizes = { - GraphicsState.DEFAULT_FONT.getSize2D(), GraphicsState.DEFAULT_FONT.getSize2D() / 2f - }; - final String[] names = { - GraphicsState.DEFAULT_FONT.getName(), Font.SERIF, Font.MONOSPACED, "Monospaced" - }; - final int[] styles = { - Font.PLAIN, Font.ITALIC, Font.BOLD, Font.BOLD | Font.ITALIC - }; - - for (float size : sizes) { - for (String name : names) { - for (int style : styles) { - Font font = new Font(name, style, 10).deriveFont(size); - g.setFont(font); - g.drawString("vg2d", (float) x, (float) y); - - x += wTile; - if (x >= tileCountH * wTile) { - x = xOrigin; - y += hTile; - } - } - } - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ImageTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ImageTest.java deleted file mode 100644 index 03ba67a..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ImageTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Color; -import java.awt.GradientPaint; -import java.awt.Graphics2D; -import java.awt.geom.Point2D; -import java.awt.geom.Rectangle2D; -import java.awt.image.BufferedImage; - -public class ImageTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - // Draw an image - BufferedImage image = new BufferedImage(4, 3, BufferedImage.TYPE_INT_ARGB); - Graphics2D gImage = (Graphics2D) image.getGraphics(); - gImage.setPaint(new GradientPaint( - new Point2D.Double(0.0, 0.0), Color.RED, - new Point2D.Double(3.0, 2.0), Color.BLUE) - ); - gImage.fill(new Rectangle2D.Double(0.0, 0.0, 4.0, 3.0)); - - g.drawImage(image, 0, 0, (int) getPageSize().width, (int) (0.5 * getPageSize().height), null); - - g.rotate(-10.0 / 180.0 * Math.PI, 2.0, 1.5); - g.drawImage(image, (int) (0.1 * getPageSize().width), (int) (0.6 * getPageSize().height), - (int) (0.33 * getPageSize().width), (int) (0.33 * getPageSize().height), null); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/PaintTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/PaintTest.java deleted file mode 100644 index ca1a6e3..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/PaintTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Color; -import java.awt.GradientPaint; -import java.awt.Graphics2D; -import java.awt.geom.AffineTransform; -import java.awt.geom.Rectangle2D; - -public class PaintTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - // Draw multiple rotated rectangles - final int steps = 25; - final int cols = 5; - final int rows = steps / cols; - final double tileWidth = getPageSize().width / cols; - final double tileHeight = getPageSize().height / rows; - g.translate(tileWidth / 2, tileHeight / 2); - - final double rectWidth = tileWidth * 0.8; - final double rectHeight = tileHeight * 0.8; - Rectangle2D rect = new Rectangle2D.Double(-rectWidth / 2, -rectHeight / 2, rectWidth, rectHeight); - g.setPaint(new GradientPaint(0f, (float) (-rectHeight / 2), Color.RED, 0f, (float) (rectHeight / 2), Color.BLUE)); - for (int i = 0; i < steps; i++) { - AffineTransform txOld = g.getTransform(); - AffineTransform tx = new AffineTransform(txOld); - int col = i % 5; - int row = i / 5; - tx.translate(col * tileWidth, row * tileHeight); - tx.rotate(i * Math.toRadians(360.0 / steps)); - g.setTransform(tx); - g.fill(rect); - g.setTransform(txOld); - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ShapesTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ShapesTest.java deleted file mode 100644 index 40314ee..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/ShapesTest.java +++ /dev/null @@ -1,127 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Graphics2D; -import java.awt.Polygon; -import java.awt.geom.AffineTransform; -import java.awt.geom.Arc2D; -import java.awt.geom.CubicCurve2D; -import java.awt.geom.Ellipse2D; -import java.awt.geom.Line2D; -import java.awt.geom.Path2D; -import java.awt.geom.QuadCurve2D; -import java.awt.geom.Rectangle2D; -import java.awt.geom.RoundRectangle2D; - -public class ShapesTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - final int tileCountH = 4; - final int tileCountV = 6; - final double wTile = getPageSize().width / tileCountH; - final double hTile = getPageSize().height / tileCountV; - final double xOrigin = (getPageSize().width - tileCountH * wTile) / 2.0; - final double yOrigin = (getPageSize().height - tileCountV * hTile) / 2.0; - double x = xOrigin; - double y = yOrigin; - - g.draw(new Line2D.Double(x, y, x + 0.8 * wTile, y + 0.6 * hTile)); - x += wTile; - g.draw(new QuadCurve2D.Double(x, y, x + 0.8 * wTile, y, x + 0.8 * wTile, y + 0.6 * hTile)); - x += wTile; - g.draw(new CubicCurve2D.Double(x, y, x + 0.8 * wTile, y, x, y + 0.6 * hTile, x + 0.8 * wTile, y + 0.6 * hTile)); - - x = xOrigin; - y += hTile; - g.fill(new Rectangle2D.Double(x, y, 0.8 * wTile, 0.6 * hTile)); - x += wTile; - g.draw(new Rectangle2D.Double(x, y, 0.8 * wTile, 0.6 * hTile)); - x += wTile; - - g.fill(new RoundRectangle2D.Double(x, y, 0.8 * wTile, 0.6 * hTile, 0.2 * wTile, 0.2 * hTile)); - x += wTile; - g.draw(new RoundRectangle2D.Double(x, y, 0.8 * wTile, 0.6 * hTile, 0.2 * wTile, 0.2 * hTile)); - x += wTile; - - - x = xOrigin; - y += hTile; - g.fill(new Ellipse2D.Double(x, y, 0.8 * wTile, 0.6 * hTile)); - x += wTile; - g.draw(new Ellipse2D.Double(x, y, 0.8 * wTile, 0.6 * hTile)); - x += wTile; - - g.fill(new Polygon( - new int[]{(int) (x), (int) (x + 0.8 * wTile / 2.0), (int) (x + 0.8 * wTile)}, - new int[]{(int) (y + 0.6 * hTile), (int) (y), (int) (y + 0.6 * hTile)}, - 3 - )); - x += wTile; - g.draw(new Polygon( - new int[]{(int) (x), (int) (x + 0.8 * wTile / 2.0), (int) (x + 0.8 * wTile)}, - new int[]{(int) (y + 0.6 * hTile), (int) (y), (int) (y + 0.6 * hTile)}, - 3 - )); - - - x = xOrigin; - y += hTile; - g.fill(new Arc2D.Double(x, y, 0.8 * wTile, 0.6 * hTile, 110, 320, Arc2D.PIE)); - x += wTile; - g.draw(new Arc2D.Double(x, y, 0.8 * wTile, 0.6 * hTile, 110, 320, Arc2D.PIE)); - x += wTile; - g.fill(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.CHORD)); - x += wTile; - g.draw(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.CHORD)); - - - x = xOrigin; - y += hTile; - g.fill(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.OPEN)); - x += wTile; - g.draw(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.OPEN)); - x += wTile; - g.fill(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.PIE)); - x += wTile; - g.draw(new Arc2D.Double(x, y, 0.6 * hTile, 0.8 * wTile, 10, 320, Arc2D.PIE)); - - - x = xOrigin; - y += hTile; - - final Path2D path1 = new Path2D.Double(); - path1.moveTo(0.00, 0.00); - path1.lineTo(0.33, 1.00); - path1.lineTo(0.67, 0.00); - path1.quadTo(0.33, 0.00, 0.33, 0.50); - path1.quadTo(0.33, 1.00, 0.67, 1.00); - path1.quadTo(1.00, 1.00, 1.00, 0.50); - path1.lineTo(0.67, 0.50); - path1.transform(AffineTransform.getScaleInstance(0.8 * wTile, 0.6 * hTile)); - - path1.transform(AffineTransform.getTranslateInstance(x, y)); - g.fill(path1); - x += wTile; - path1.transform(AffineTransform.getTranslateInstance(wTile, 0.0)); - g.draw(path1); - x += wTile; - - final Path2D path2 = new Path2D.Double(); - path2.moveTo(0.0, 0.4); - path2.curveTo(0.0, 0.3, 0.0, 0.0, 0.2, 0.0); - path2.curveTo(0.3, 0.0, 0.4, 0.1, 0.4, 0.3); - path2.curveTo(0.4, 0.5, 0.2, 0.8, 0.0, 1.0); - path2.lineTo(0.6, 1.0); - path2.lineTo(0.6, 0.0); - path2.curveTo(0.8, 0.0, 1.0, 0.2, 1.0, 0.5); - path2.curveTo(1.0, 0.6, 1.0, 0.8, 0.9, 0.9); - path2.closePath(); - path2.transform(AffineTransform.getScaleInstance(0.8 * wTile, 0.6 * hTile)); - - path2.transform(AffineTransform.getTranslateInstance(x, y)); - g.fill(path2); - x += wTile; - path2.transform(AffineTransform.getTranslateInstance(wTile, 0.0)); - g.draw(path2); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/StrokeTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/StrokeTest.java deleted file mode 100644 index 3455ab1..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/StrokeTest.java +++ /dev/null @@ -1,90 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.BasicStroke; -import java.awt.Graphics2D; -import java.awt.Stroke; -import java.awt.geom.AffineTransform; -import java.awt.geom.Path2D; - -public class StrokeTest extends AbstractTest { - - private static final Stroke[] strokes = { - // Width - new BasicStroke(0.0f), - new BasicStroke(0.5f), - new BasicStroke(1.0f), - new BasicStroke(2.0f), - // Cap - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER), - new BasicStroke(1f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER), - new BasicStroke(1f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER), - null, - // Join - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND), - null, - // Miter limit - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 1f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 2f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 3f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f), - // Dash pattern - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{1f}, 0f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{1f, 1f}, 0f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f, 1f}, 0f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f, 4f, 1f}, 0f), - // Dash phase - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f}, 0.5f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f}, 1.0f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f}, 1.5f), - new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10f, new float[]{3f, 1f}, 2.5f), - }; - - @Override - public void draw(Graphics2D g) { - final int tileCountH = 4; - final int tileCountV = 6; - final double wTile = getPageSize().width / tileCountH; - final double hTile = getPageSize().height / tileCountV; - final double xOrigin = (getPageSize().width - tileCountH * wTile) / 2.0; - final double yOrigin = (getPageSize().height - tileCountV * hTile) / 2.0; - - final Path2D path = new Path2D.Double(); - path.moveTo(0.00, 0.00); - path.lineTo(0.33, 1.00); - path.lineTo(0.67, 0.00); - path.quadTo(0.33, 0.00, 0.33, 0.50); - path.quadTo(0.33, 1.00, 0.67, 1.00); - path.quadTo(1.00, 1.00, 1.00, 0.50); - path.lineTo(0.67, 0.50); - path.moveTo(1.0, 0.4); - path.curveTo(1.0, 0.3, 1.0, 0.0, 1.2, 0.0); - path.curveTo(1.3, 0.0, 1.4, 0.1, 1.4, 0.3); - path.curveTo(1.4, 0.5, 1.2, 0.8, 1.0, 1.0); - path.lineTo(1.6, 1.0); - path.lineTo(1.6, 0.0); - path.curveTo(1.8, 0.0, 2.0, 0.2, 2.0, 0.5); - path.curveTo(2.0, 0.6, 2.0, 0.8, 1.9, 0.9); - - path.transform(AffineTransform.getScaleInstance(0.8 * wTile / 2.0, 0.6 * hTile)); - - double x = xOrigin; - double y = yOrigin; - for (Stroke stroke : strokes) { - if (stroke != null) { - Path2D p = new Path2D.Double(path); - p.transform(AffineTransform.getTranslateInstance(x, y)); - - g.setStroke(stroke); - g.draw(p); - } - - x += wTile; - if (x >= tileCountH * wTile) { - x = xOrigin; - y += hTile; - } - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/SwingExportTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/SwingExportTest.java deleted file mode 100644 index f34ce73..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/SwingExportTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import javax.swing.JButton; -import javax.swing.JFrame; -import javax.swing.JSlider; -import java.awt.BorderLayout; -import java.awt.Graphics2D; - -public class SwingExportTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - JFrame frame = new JFrame(); - frame.getContentPane().add(new JButton("Hello Swing!"), BorderLayout.CENTER); - frame.getContentPane().add(new JSlider(), BorderLayout.NORTH); - frame.setSize(200, 250); - - //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); - frame.setVisible(true); - frame.printAll(g); - frame.setVisible(false); - frame.dispose(); - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TestBrowser.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TestBrowser.java deleted file mode 100644 index 7917948..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TestBrowser.java +++ /dev/null @@ -1,263 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import javax.swing.Box; -import javax.swing.BoxLayout; -import javax.swing.DefaultListCellRenderer; -import javax.swing.ImageIcon; -import javax.swing.JButton; -import javax.swing.JComboBox; -import javax.swing.JComponent; -import javax.swing.JFileChooser; -import javax.swing.JFrame; -import javax.swing.JLabel; -import javax.swing.JList; -import javax.swing.JPanel; -import javax.swing.JSplitPane; -import javax.swing.ListSelectionModel; -import javax.swing.WindowConstants; -import java.awt.BorderLayout; -import java.awt.Component; -import java.awt.event.ItemEvent; -import java.awt.event.ItemListener; -import java.awt.image.BufferedImage; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.List; - -@SuppressWarnings("serial") -public class TestBrowser extends JFrame { - - private final List testCases; - - private final ImageComparisonPanel imageComparisonPanel; - - private AbstractTest testCase; - - public TestBrowser() { - super("Test browser"); - setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); - setSize(1024, 768); - testCases = new ArrayList<>(); - testCases.add(new ColorTest()); - testCases.add(new StrokeTest()); - testCases.add(new ShapesTest()); - testCases.add(new FontTest()); - testCases.add(new CharacterTest()); - testCases.add(new EmptyFileTest()); - testCases.add(new ImageTest()); - testCases.add(new ClippingTest()); - testCases.add(new PaintTest()); - testCases.add(new SwingExportTest()); - testCases.add(new TransformTest()); - final JList testList = new JList<>(testCases.toArray()); - testList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - testList.setCellRenderer(new DefaultListCellRenderer() { - @Override - public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { - String testName = value.getClass().getSimpleName(); - return super.getListCellRendererComponent(list, testName, index, isSelected, cellHasFocus); - } - }); - testList.addListSelectionListener(e -> { - if (!e.getValueIsAdjusting()) { - int index = testList.getSelectedIndex(); - if (index < 0) { - return; - } - AbstractTest test = testCases.get(index); - testCase = test; - try { - setTestCase(test); - } catch (IOException e1) { - e1.printStackTrace(); - } - } - }); - getContentPane().add(testList, BorderLayout.WEST); - - JPanel configurableImageComparisonPanel = new JPanel(new BorderLayout()); - getContentPane().add(configurableImageComparisonPanel, BorderLayout.CENTER); - - ImageFormat startingImageFormat = ImageFormat.EPS; - JComboBox imageFormatSelector = new JComboBox<>(ImageFormat.values()); - configurableImageComparisonPanel.add(imageFormatSelector, BorderLayout.NORTH); - imageFormatSelector.setSelectedItem(startingImageFormat); - imageFormatSelector.addItemListener(new ItemListener() { - @Override - public void itemStateChanged(ItemEvent itemEvent) { - ImageFormat format = (ImageFormat) itemEvent.getItem(); - imageComparisonPanel.setImageFormat(format); - - AbstractTest test = getTestCase(); - if (test != null) { - try { - setTestCase(test); - } catch (IOException e) { - e.printStackTrace(); - } - } - } - }); - - imageComparisonPanel = new ImageComparisonPanel(startingImageFormat); - configurableImageComparisonPanel.add(imageComparisonPanel, BorderLayout.CENTER); - } - - public static void main(String[] args) { - new TestBrowser().setVisible(true); - } - - public AbstractTest getTestCase() { - return testCase; - } - - public void setTestCase(AbstractTest test) throws IOException { - BufferedImage reference = test.getReference(); - imageComparisonPanel.setLeftComponent(new ImageDisplayPanel(reference, null)); - //ImageDisplayPanel imageDisplayPanel; - switch (imageComparisonPanel.getImageFormat()) { - case EPS: - //imageDisplayPanel = new ImageDisplayPanel(test.getRasterizedEPS(), test.getEPS()); - //imageComparisonPanel.setRightComponent(imageDisplayPanel); - break; - case PDF: - //imageDisplayPanel = new ImageDisplayPanel(test.getRasterizedPDF(), test.getPDF()); - //imageComparisonPanel.setRightComponent(imageDisplayPanel); - break; - case SVG: - //imageDisplayPanel = new ImageDisplayPanel(test.getRasterizedSVG(), test.getSVG()); - //imageComparisonPanel.setRightComponent(imageDisplayPanel); - break; - default: - throw new IllegalArgumentException("Unknown image format: " + imageComparisonPanel.getImageFormat()); - } - } - - private enum ImageFormat { - EPS("EPS"), - PDF("PDF"), - SVG("SVG"); - - private final String name; - - ImageFormat(String name) { - this.name = name; - } - - public String getName() { - return name; - } - } - - private static class ImageComparisonPanel extends Box { - - private final Box leftPanel; - - private final Box rightPanel; - - private ImageFormat imageFormat; - - private JComponent leftComponent; - - private JComponent rightComponent; - - public ImageComparisonPanel(ImageFormat imageFormat) { - super(BoxLayout.PAGE_AXIS); - - this.imageFormat = imageFormat; - - JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); - splitPane.setResizeWeight(0.5); - add(splitPane); - - leftPanel = new Box(BoxLayout.PAGE_AXIS); - leftPanel.add(new JLabel("Graphics2D")); - splitPane.setTopComponent(leftPanel); - - rightPanel = new Box(BoxLayout.PAGE_AXIS); - rightPanel.add(new JLabel(imageFormat.getName())); - splitPane.setBottomComponent(rightPanel); - } - - public void setLeftComponent(JComponent leftComponent) { - if (this.leftComponent != null) { - leftPanel.remove(this.leftComponent); - } - this.leftComponent = leftComponent; - leftPanel.add(leftComponent); - leftPanel.revalidate(); - leftPanel.repaint(); - } - - public void setRightComponent(JComponent rightComponent) { - if (this.rightComponent != null) { - rightPanel.remove(this.rightComponent); - } - this.rightComponent = rightComponent; - rightPanel.add(rightComponent); - rightPanel.revalidate(); - rightPanel.repaint(); - } - - public ImageFormat getImageFormat() { - return imageFormat; - } - - public void setImageFormat(ImageFormat imageFormat) { - this.imageFormat = imageFormat; - JLabel imageFormatLabel = (JLabel) rightPanel.getComponent(0); - imageFormatLabel.setText(imageFormat.getName()); - imageFormatLabel.repaint(); - } - } - - private static class ImageDisplayPanel extends JPanel { - private final InputStream imageData; - - public ImageDisplayPanel(BufferedImage renderedImage, InputStream imageData) { - super(new BorderLayout()); - this.imageData = imageData; - - JLabel imageLabel = new JLabel(new ImageIcon(renderedImage)); - add(imageLabel, BorderLayout.CENTER); - - JButton saveToFileButton = new JButton("Save as..."); - if (imageData == null) { - saveToFileButton.setEnabled(false); - } - saveToFileButton.addActionListener(e -> { - JFileChooser saveFileDialog = new JFileChooser(); - saveFileDialog.setFileSelectionMode(JFileChooser.FILES_ONLY); - saveFileDialog.setMultiSelectionEnabled(false); - int userChoice = saveFileDialog.showSaveDialog(ImageDisplayPanel.this); - if (userChoice != JFileChooser.APPROVE_OPTION) { - return; - } - - File dest = saveFileDialog.getSelectedFile(); - FileOutputStream destStream = null; - try { - destStream = new FileOutputStream(dest); - int imageDataChunk; - while ((imageDataChunk = ImageDisplayPanel.this.imageData.read()) != -1) { - destStream.write(imageDataChunk); - } - } catch (IOException e1) { - e1.printStackTrace(); - } finally { - if (destStream != null) { - try { - destStream.close(); - } catch (IOException e1) { - e1.printStackTrace(); - } - } - } - }); - add(saveToFileButton, BorderLayout.SOUTH); - } - } -} diff --git a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TransformTest.java b/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TransformTest.java deleted file mode 100644 index 4bc25b5..0000000 --- a/chart/src/test/java/org/xbib/graphics/chart/io/vector/visual/TransformTest.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.xbib.graphics.chart.io.vector.visual; - -import java.awt.Graphics2D; -import java.awt.Shape; -import java.awt.geom.AffineTransform; -import java.awt.geom.Rectangle2D; - -public class TransformTest extends AbstractTest { - - @Override - public void draw(Graphics2D g) { - final int rowCount = 2; - final int colCount = 4; - double wTile = getPageSize().width / colCount; - double hTile = wTile; - - g.translate(0.5 * wTile, 0.5 * hTile); - AffineTransform txOrig = g.getTransform(); - - Shape s = new Rectangle2D.Double(0.0, 0.0, 0.5 * wTile, 0.75 * hTile); - - // Row 1 - - g.draw(s); - - g.translate(wTile, 0.0); - g.draw(s); - - g.translate(wTile, 0.0); - { - Graphics2D g2 = (Graphics2D) g.create(); - g2.scale(0.5, 0.5); - g2.draw(s); - g2.dispose(); - } - - g.translate(wTile, 0.0); - { - Graphics2D g2 = (Graphics2D) g.create(); - g2.rotate(Math.toRadians(30.0)); - g2.draw(s); - g2.dispose(); - } - - // Row 2 - - g.setTransform(txOrig); - g.translate(0.0, hTile); - - g.shear(0.5, 0.0); - g.draw(s); - g.shear(-0.5, 0.0); - g.translate(wTile, 0.0); - - g.shear(0.0, 0.5); - g.draw(s); - g.shear(0.0, -0.5); - } -} diff --git a/io-vector/build/docs/javadoc/allclasses-index.html b/io-vector/build/docs/javadoc/allclasses-index.html deleted file mode 100644 index eb207b4..0000000 --- a/io-vector/build/docs/javadoc/allclasses-index.html +++ /dev/null @@ -1,372 +0,0 @@ - - - - - -All Classes (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

All Classes

-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassDescription
AbsoluteToRelativeTransformsFilter 
AffineTransformCommand 
AlphaToMaskOp 
ASCII85EncodeStream 
Base64EncodeStream 
Command<T> 
CreateCommand 
DataUtils -
Abstract class that contains utility functions for working with data - collections like maps or lists.
-
DisposeCommand 
DrawImageCommand 
DrawShapeCommand 
DrawStringCommand 
EPSGraphics2D -
Graphics2D implementation that saves all operations to a string - in the Encapsulated PostScript® (EPS) format.
-
EPSProcessor 
EPSProcessorResult 
FillPaintedShapeAsImageFilter 
FillShapeCommand 
Filter 
FlateEncodeStream 
FormattingWriter 
GeneratedPayload 
GraphicsState 
GraphicsUtils -
Abstract class that contains utility functions for working with graphics.
-
Group 
GroupingFilter 
ImageDataStream 
ImageDataStream.Interleaving 
LineWrapOutputStream 
OptimizeFilter 
PageSize 
Payload 
PDFGraphics2D -
Graphics2D implementation that saves all operations to a string - in the Portable Document Format (PDF).
-
PDFObject 
PDFProcessor 
PDFProcessorResult 
Processor 
ProcessorResult 
Resources 
RotateCommand 
ScaleCommand 
SetBackgroundCommand 
SetClipCommand 
SetColorCommand 
SetCompositeCommand 
SetFontCommand 
SetHintCommand 
SetPaintCommand 
SetStrokeCommand 
SetTransformCommand 
SetXORModeCommand 
ShearCommand 
SizePayload 
StateChangeGroupingFilter 
StateCommand<T> 
SVGGraphics2D -
Graphics2D implementation that saves all operations to a string - in the Scaled Vector Graphics (SVG) format.
-
SVGProcessor 
SVGProcessorResult 
TransformCommand 
TranslateCommand 
VectorGraphics2D -
Base for classes that want to implement vector export.
-
VectorGraphicsFormat 
VectorHints 
VectorHints.Key 
VectorHints.Value 
-
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/allpackages-index.html b/io-vector/build/docs/javadoc/allpackages-index.html deleted file mode 100644 index 1a65515..0000000 --- a/io-vector/build/docs/javadoc/allpackages-index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - -All Packages (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

All Packages

-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/constant-values.html b/io-vector/build/docs/javadoc/constant-values.html deleted file mode 100644 index c898561..0000000 --- a/io-vector/build/docs/javadoc/constant-values.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - -Constant Field Values (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Constant Field Values

-
-

Contents

- -
-
-
-

org.xbib.*

-
    -
  • -
    - - - - - - - - - - - - - - - - -
    org.xbib.graphics.io.vector.util.LineWrapOutputStream
    Modifier and TypeConstant FieldValue
    public static final java.lang.StringSTANDARD_EOL"\r\n"
    -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/deprecated-list.html b/io-vector/build/docs/javadoc/deprecated-list.html deleted file mode 100644 index 3cbf57f..0000000 --- a/io-vector/build/docs/javadoc/deprecated-list.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - -Deprecated List (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Deprecated API

-

Contents

-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/element-list b/io-vector/build/docs/javadoc/element-list deleted file mode 100644 index a1bcee9..0000000 --- a/io-vector/build/docs/javadoc/element-list +++ /dev/null @@ -1,8 +0,0 @@ -module:org.xbib.graphics.io.vector -org.xbib.graphics.io.vector -org.xbib.graphics.io.vector.commands -org.xbib.graphics.io.vector.eps -org.xbib.graphics.io.vector.filters -org.xbib.graphics.io.vector.pdf -org.xbib.graphics.io.vector.svg -org.xbib.graphics.io.vector.util diff --git a/io-vector/build/docs/javadoc/help-doc.html b/io-vector/build/docs/javadoc/help-doc.html deleted file mode 100644 index 08411e4..0000000 --- a/io-vector/build/docs/javadoc/help-doc.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - -API Help (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

How This API Document Is Organized

-
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-
-
-

Module

-

Each module has a page that contains a list of its packages, dependencies on other modules, and services, with a summary for each. These pages may contain three categories:

-
    -
  • Packages
  • -
  • Modules
  • -
  • Services
  • -
-
-
-

Package

-

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain six categories:

-
    -
  • Interfaces
  • -
  • Classes
  • -
  • Enums
  • -
  • Exceptions
  • -
  • Errors
  • -
  • Annotation Types
  • -
-
-
-

Class or Interface

-

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

-
    -
  • Class Inheritance Diagram
  • -
  • Direct Subclasses
  • -
  • All Known Subinterfaces
  • -
  • All Known Implementing Classes
  • -
  • Class or Interface Declaration
  • -
  • Class or Interface Description
  • -
-
-
    -
  • Nested Class Summary
  • -
  • Field Summary
  • -
  • Property Summary
  • -
  • Constructor Summary
  • -
  • Method Summary
  • -
-
-
    -
  • Field Details
  • -
  • Property Details
  • -
  • Constructor Details
  • -
  • Method Details
  • -
-

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

-
-
-

Annotation Type

-

Each annotation type has its own separate page with the following sections:

-
    -
  • Annotation Type Declaration
  • -
  • Annotation Type Description
  • -
  • Required Element Summary
  • -
  • Optional Element Summary
  • -
  • Element Details
  • -
-
-
-

Enum

-

Each enum has its own separate page with the following sections:

-
    -
  • Enum Declaration
  • -
  • Enum Description
  • -
  • Enum Constant Summary
  • -
  • Enum Constant Details
  • -
-
-
-

Tree (Class Hierarchy)

-

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

-
    -
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • -
  • When viewing a particular package, class or interface page, clicking on "Tree" displays the hierarchy for only that package.
  • -
-
-
-

Deprecated API

-

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

-
-
-

Index

-

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields, as well as lists of all packages and all classes.

-
-
-

Serialized Form

-

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to those who implement rather than use the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See Also" section of the class description.

-
-
-

Constant Field Values

-

The Constant Field Values page lists the static final fields and their values.

-
-
-

Search

-

You can search for definitions of modules, packages, types, fields, methods, system properties and other terms defined in the API, using some or all of the name, optionally using "camel-case" abbreviations. For example:

-
    -
  • j.l.obj will match "java.lang.Object"
  • -
  • InpStr will match "java.io.InputStream"
  • -
  • HM.cK will match "java.util.HashMap.containsKey(Object)"
  • -
-

Refer to the Javadoc Search Specification for a full description of search features.

-
-
-This help file applies to API documentation generated by the standard doclet.
- -
-
- - diff --git a/io-vector/build/docs/javadoc/index-all.html b/io-vector/build/docs/javadoc/index-all.html deleted file mode 100644 index 892b78b..0000000 --- a/io-vector/build/docs/javadoc/index-all.html +++ /dev/null @@ -1,1081 +0,0 @@ - - - - - -Index (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Index

-
-A B C D E F G H I J K L M N O P R S T U V W 
All Classes|All Packages -

A

-
-
A3 - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
A4 - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
A5 - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
AbsoluteToRelativeTransformsFilter - Class in org.xbib.graphics.io.vector.filters
-
 
-
AbsoluteToRelativeTransformsFilter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter
-
 
-
add(Command<?>) - Method in class org.xbib.graphics.io.vector.commands.Group
-
 
-
addFilter(Class<? extends FilterOutputStream>) - Method in class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
addRenderingHints(Map<?, ?>) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
AffineTransformCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
AffineTransformCommand(AffineTransform) - Constructor for class org.xbib.graphics.io.vector.commands.AffineTransformCommand
-
 
-
ALPHA_ONLY - org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
 
-
AlphaToMaskOp - Class in org.xbib.graphics.io.vector.util
-
 
-
AlphaToMaskOp() - Constructor for class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
AlphaToMaskOp(boolean) - Constructor for class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
ASCII85EncodeStream - Class in org.xbib.graphics.io.vector.util
-
 
-
ASCII85EncodeStream(OutputStream) - Constructor for class org.xbib.graphics.io.vector.util.ASCII85EncodeStream
-
 
-
ASCII85EncodeStream(OutputStream, String, String) - Constructor for class org.xbib.graphics.io.vector.util.ASCII85EncodeStream
-
 
-
asList(double[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Converts an array of double numbers to a list of Doubles.
-
-
asList(float[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Converts an array of float numbers to a list of Floats.
-
-
-

B

-
-
Base64EncodeStream - Class in org.xbib.graphics.io.vector.util
-
 
-
Base64EncodeStream(OutputStream) - Constructor for class org.xbib.graphics.io.vector.util.Base64EncodeStream
-
 
-
-

C

-
-
clearRect(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
clip(Shape) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
clipRect(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
clone() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
clone() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
clone(Shape) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
 
-
close() - Method in class org.xbib.graphics.io.vector.eps.EPSProcessorResult
-
 
-
close() - Method in class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
close() - Method in class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
close() - Method in interface org.xbib.graphics.io.vector.ProcessorResult
-
 
-
close() - Method in class org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
 
-
close() - Method in class org.xbib.graphics.io.vector.util.ASCII85EncodeStream
-
 
-
close() - Method in class org.xbib.graphics.io.vector.util.Base64EncodeStream
-
 
-
close() - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
Command<T> - Class in org.xbib.graphics.io.vector
-
 
-
Command(T) - Constructor for class org.xbib.graphics.io.vector.Command
-
 
-
copyArea(int, int, int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
create() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
CreateCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
CreateCommand(VectorGraphics2D) - Constructor for class org.xbib.graphics.io.vector.commands.CreateCommand
-
 
-
createCompatibleDestImage(BufferedImage, ColorModel) - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
-

D

-
-
DataUtils - Class in org.xbib.graphics.io.vector.util
-
-
Abstract class that contains utility functions for working with data - collections like maps or lists.
-
-
DataUtils() - Constructor for class org.xbib.graphics.io.vector.util.DataUtils
-
-
Default constructor that prevents creation of class.
-
-
DEFAULT_BACKGROUND - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default background color.
-
-
DEFAULT_CLIP - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default clipping shape.
-
-
DEFAULT_COLOR - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default color.
-
-
DEFAULT_COMPOSITE - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default composite mode.
-
-
DEFAULT_FONT - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default font.
-
-
DEFAULT_PAINT - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default paint.
-
-
DEFAULT_STROKE - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default stroke.
-
-
DEFAULT_TRANSFORM - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default transformation.
-
-
DEFAULT_XOR_MODE - Static variable in class org.xbib.graphics.io.vector.GraphicsState
-
-
Default XOR mode.
-
-
dict - Variable in class org.xbib.graphics.io.vector.pdf.PDFObject
-
 
-
dispose() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
DisposeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
DisposeCommand(VectorGraphics2D) - Constructor for class org.xbib.graphics.io.vector.commands.DisposeCommand
-
 
-
draw(Shape) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawArc(int, int, int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawGlyphVector(GlyphVector, float, float) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(BufferedImage, BufferedImageOp, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, int, int, Color, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, int, int, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, Color, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, int, int, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawImage(Image, AffineTransform, ImageObserver) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
DrawImageCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
DrawImageCommand(Image, int, int, double, double, double, double) - Constructor for class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
drawLine(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawOval(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawPolygon(int[], int[], int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawPolygon(Polygon) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawPolyline(int[], int[], int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawRect(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawRenderableImage(RenderableImage, AffineTransform) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawRenderedImage(RenderedImage, AffineTransform) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawRoundRect(int, int, int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
DrawShapeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
DrawShapeCommand(Shape) - Constructor for class org.xbib.graphics.io.vector.commands.DrawShapeCommand
-
 
-
drawString(String, float, float) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawString(String, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawString(AttributedCharacterIterator, float, float) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
drawString(AttributedCharacterIterator, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
DrawStringCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
DrawStringCommand(String, double, double) - Constructor for class org.xbib.graphics.io.vector.commands.DrawStringCommand
-
 
-
-

E

-
-
EPS - org.xbib.graphics.io.vector.VectorGraphicsFormat
-
 
-
EPSGraphics2D - Class in org.xbib.graphics.io.vector.eps
-
-
Graphics2D implementation that saves all operations to a string - in the Encapsulated PostScript® (EPS) format.
-
-
EPSGraphics2D(double, double, double, double) - Constructor for class org.xbib.graphics.io.vector.eps.EPSGraphics2D
-
-
Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to EPS data.
-
-
EPSProcessor - Class in org.xbib.graphics.io.vector.eps
-
 
-
EPSProcessor() - Constructor for class org.xbib.graphics.io.vector.eps.EPSProcessor
-
 
-
EPSProcessorResult - Class in org.xbib.graphics.io.vector.eps
-
 
-
EPSProcessorResult(PageSize) - Constructor for class org.xbib.graphics.io.vector.eps.EPSProcessorResult
-
 
-
equals(Shape, Shape) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
 
-
equals(Object) - Method in class org.xbib.graphics.io.vector.Command
-
 
-
equals(Object) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
-

F

-
-
fill(Shape) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
fillArc(int, int, int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
fillOval(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
FillPaintedShapeAsImageFilter - Class in org.xbib.graphics.io.vector.filters
-
 
-
FillPaintedShapeAsImageFilter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.FillPaintedShapeAsImageFilter
-
 
-
fillPolygon(int[], int[], int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
fillPolygon(Polygon) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
fillRect(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
fillRoundRect(int, int, int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
FillShapeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
FillShapeCommand(Shape) - Constructor for class org.xbib.graphics.io.vector.commands.FillShapeCommand
-
 
-
filter(BufferedImage, BufferedImage) - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
filter(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter
-
 
-
filter(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.FillPaintedShapeAsImageFilter
-
 
-
filter(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.Filter
-
 
-
filter(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.GroupingFilter
-
 
-
filter(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.OptimizeFilter
-
 
-
Filter - Class in org.xbib.graphics.io.vector.filters
-
 
-
Filter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.Filter
-
 
-
FlateEncodeStream - Class in org.xbib.graphics.io.vector.util
-
 
-
FlateEncodeStream(OutputStream) - Constructor for class org.xbib.graphics.io.vector.util.FlateEncodeStream
-
 
-
flush() - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
format(Number) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a formatted string of the specified number.
-
-
format(Object) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a formatted string of the specified object.
-
-
format(String, Object...) - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
FormattingWriter - Class in org.xbib.graphics.io.vector.util
-
 
-
FormattingWriter(OutputStream, String, String) - Constructor for class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
-

G

-
-
GeneratedPayload - Class in org.xbib.graphics.io.vector.pdf
-
 
-
GeneratedPayload(boolean) - Constructor for class org.xbib.graphics.io.vector.pdf.GeneratedPayload
-
 
-
generatePayload() - Method in class org.xbib.graphics.io.vector.pdf.GeneratedPayload
-
 
-
generatePayload() - Method in class org.xbib.graphics.io.vector.pdf.SizePayload
-
 
-
getAlphaImage(BufferedImage) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
 
-
getBackground() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getBackground() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getBounds2D(BufferedImage) - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
getBytes() - Method in class org.xbib.graphics.io.vector.pdf.GeneratedPayload
-
 
-
getBytes() - Method in class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
getBytes() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getCenterX() - Method in class org.xbib.graphics.io.vector.commands.RotateCommand
-
 
-
getCenterY() - Method in class org.xbib.graphics.io.vector.commands.RotateCommand
-
 
-
getClip() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getClip() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getClipBounds() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getColor() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getColor() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getCommands() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getComposite() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getComposite() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getDeltaX() - Method in class org.xbib.graphics.io.vector.commands.TranslateCommand
-
 
-
getDeltaY() - Method in class org.xbib.graphics.io.vector.commands.TranslateCommand
-
 
-
getDeviceConfiguration() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getFont() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getFont() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getFontMetrics(Font) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getFontRenderContext() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getHeight() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getHeight() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
getHints() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getId() - Method in class org.xbib.graphics.io.vector.util.VectorHints.Value
-
 
-
getId(Font) - Method in class org.xbib.graphics.io.vector.pdf.Resources
-
 
-
getId(Double) - Method in class org.xbib.graphics.io.vector.pdf.Resources
-
 
-
getId(PDFObject) - Method in class org.xbib.graphics.io.vector.pdf.Resources
-
 
-
getImage() - Method in class org.xbib.graphics.io.vector.util.ImageDataStream
-
 
-
getImageHeight() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getImageWidth() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getIndex() - Method in class org.xbib.graphics.io.vector.util.VectorHints.Key
-
 
-
getIndex() - Method in class org.xbib.graphics.io.vector.util.VectorHints.Value
-
 
-
getInterleaving() - Method in class org.xbib.graphics.io.vector.util.ImageDataStream
-
 
-
getKey() - Method in class org.xbib.graphics.io.vector.commands.SetHintCommand
-
 
-
getLandscape() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
getPageSize() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getPaint() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getPaint() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getPhysicalFont(Font) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
 
-
getPhysicalFont(Font, String) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
Try to guess physical font from the properties of a logical font, like - "Dialog", "Serif", "Monospaced" etc.
-
-
getPoint2D(Point2D, Point2D) - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
getPortrait() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
getRenderingHint(RenderingHints.Key) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getRenderingHints() - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
getRenderingHints() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getScaleX() - Method in class org.xbib.graphics.io.vector.commands.ScaleCommand
-
 
-
getScaleY() - Method in class org.xbib.graphics.io.vector.commands.ScaleCommand
-
 
-
getShearX() - Method in class org.xbib.graphics.io.vector.commands.ShearCommand
-
 
-
getShearY() - Method in class org.xbib.graphics.io.vector.commands.ShearCommand
-
 
-
getStroke() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getStroke() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getTheta() - Method in class org.xbib.graphics.io.vector.commands.RotateCommand
-
 
-
getTransform() - Method in class org.xbib.graphics.io.vector.commands.TransformCommand
-
 
-
getTransform() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getTransform() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getValue() - Method in class org.xbib.graphics.io.vector.Command
-
 
-
getWidth() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getWidth() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
getX() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getX() - Method in class org.xbib.graphics.io.vector.commands.DrawStringCommand
-
 
-
getX() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
getXorMode() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
getXORMode() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
getY() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
getY() - Method in class org.xbib.graphics.io.vector.commands.DrawStringCommand
-
 
-
getY() - Method in class org.xbib.graphics.io.vector.PageSize
-
 
-
GraphicsState - Class in org.xbib.graphics.io.vector
-
 
-
GraphicsState() - Constructor for class org.xbib.graphics.io.vector.GraphicsState
-
 
-
GraphicsUtils - Class in org.xbib.graphics.io.vector.util
-
-
Abstract class that contains utility functions for working with graphics.
-
-
GraphicsUtils() - Constructor for class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
Default constructor that prevents creation of class.
-
-
Group - Class in org.xbib.graphics.io.vector.commands
-
 
-
Group() - Constructor for class org.xbib.graphics.io.vector.commands.Group
-
 
-
GroupingFilter - Class in org.xbib.graphics.io.vector.filters
-
 
-
GroupingFilter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.GroupingFilter
-
 
-
-

H

-
-
handle(Command<?>) - Method in class org.xbib.graphics.io.vector.eps.EPSProcessorResult
-
 
-
handle(Command<?>) - Method in class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
handle(Command<?>) - Method in interface org.xbib.graphics.io.vector.ProcessorResult
-
 
-
handle(Command<?>) - Method in class org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
 
-
hasAlpha(Image) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
This method returns true if the specified image has the - possibility to store transparent pixels.
-
-
hashCode() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
hasNext() - Method in class org.xbib.graphics.io.vector.filters.Filter
-
 
-
hasNext() - Method in class org.xbib.graphics.io.vector.filters.GroupingFilter
-
 
-
hasNext() - Method in class org.xbib.graphics.io.vector.filters.OptimizeFilter
-
 
-
hit(Rectangle, Shape, boolean) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
-

I

-
-
id - Variable in class org.xbib.graphics.io.vector.pdf.PDFObject
-
 
-
ImageDataStream - Class in org.xbib.graphics.io.vector.util
-
 
-
ImageDataStream(BufferedImage, ImageDataStream.Interleaving) - Constructor for class org.xbib.graphics.io.vector.util.ImageDataStream
-
 
-
ImageDataStream.Interleaving - Enum in org.xbib.graphics.io.vector.util
-
 
-
isCompatibleKey(RenderingHints.Key) - Method in class org.xbib.graphics.io.vector.util.VectorHints.Value
-
 
-
isCompatibleValue(Object) - Method in class org.xbib.graphics.io.vector.util.VectorHints.Key
-
 
-
isDefault() - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
isDisposed() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
isGrouped(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.GroupingFilter
-
 
-
isGrouped(Command<?>) - Method in class org.xbib.graphics.io.vector.filters.StateChangeGroupingFilter
-
 
-
isInverted() - Method in class org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
 
-
isStream() - Method in class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
iterator() - Method in class org.xbib.graphics.io.vector.filters.Filter
-
 
-
-

J

-
-
join(String, double[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a string containing all double numbers concatenated by a - specified separator.
-
-
join(String, float[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a string containing all float numbers concatenated by a - specified separator.
-
-
join(String, Object[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a string containing all elements concatenated by a specified - separator.
-
-
join(String, List<?>) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns a string containing all elements concatenated by a specified - separator.
-
-
-

K

-
-
Key(int, String) - Constructor for class org.xbib.graphics.io.vector.util.VectorHints.Key
-
 
-
KEY_EXPORT - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
KEY_TEXT - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
-

L

-
-
LEDGER - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
LEGAL - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
LETTER - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
LineWrapOutputStream - Class in org.xbib.graphics.io.vector.util
-
 
-
LineWrapOutputStream(OutputStream, int) - Constructor for class org.xbib.graphics.io.vector.util.LineWrapOutputStream
-
 
-
LineWrapOutputStream(OutputStream, int, String) - Constructor for class org.xbib.graphics.io.vector.util.LineWrapOutputStream
-
 
-
-

M

-
-
map(K[], V[]) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Creates a mapping from two arrays, one with keys, one with values.
-
-
max(int...) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Returns the largest of all specified values.
-
-
-

N

-
-
next() - Method in class org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter
-
 
-
next() - Method in class org.xbib.graphics.io.vector.filters.FillPaintedShapeAsImageFilter
-
 
-
next() - Method in class org.xbib.graphics.io.vector.filters.Filter
-
 
-
next() - Method in class org.xbib.graphics.io.vector.filters.GroupingFilter
-
 
-
next() - Method in class org.xbib.graphics.io.vector.filters.OptimizeFilter
-
 
-
-

O

-
-
OptimizeFilter - Class in org.xbib.graphics.io.vector.filters
-
 
-
OptimizeFilter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.OptimizeFilter
-
 
-
org.xbib.graphics.io.vector - module org.xbib.graphics.io.vector
-
 
-
org.xbib.graphics.io.vector - package org.xbib.graphics.io.vector
-
 
-
org.xbib.graphics.io.vector.commands - package org.xbib.graphics.io.vector.commands
-
 
-
org.xbib.graphics.io.vector.eps - package org.xbib.graphics.io.vector.eps
-
 
-
org.xbib.graphics.io.vector.filters - package org.xbib.graphics.io.vector.filters
-
 
-
org.xbib.graphics.io.vector.pdf - package org.xbib.graphics.io.vector.pdf
-
 
-
org.xbib.graphics.io.vector.svg - package org.xbib.graphics.io.vector.svg
-
 
-
org.xbib.graphics.io.vector.util - package org.xbib.graphics.io.vector.util
-
 
-
-

P

-
-
PageSize - Class in org.xbib.graphics.io.vector
-
 
-
PageSize(double, double) - Constructor for class org.xbib.graphics.io.vector.PageSize
-
 
-
PageSize(double, double, double, double) - Constructor for class org.xbib.graphics.io.vector.PageSize
-
 
-
PageSize(Rectangle2D) - Constructor for class org.xbib.graphics.io.vector.PageSize
-
 
-
payload - Variable in class org.xbib.graphics.io.vector.pdf.PDFObject
-
 
-
Payload - Class in org.xbib.graphics.io.vector.pdf
-
 
-
Payload(boolean) - Constructor for class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
PDF - org.xbib.graphics.io.vector.VectorGraphicsFormat
-
 
-
PDFGraphics2D - Class in org.xbib.graphics.io.vector.pdf
-
-
Graphics2D implementation that saves all operations to a string - in the Portable Document Format (PDF).
-
-
PDFGraphics2D(double, double, double, double) - Constructor for class org.xbib.graphics.io.vector.pdf.PDFGraphics2D
-
-
Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to PDF data.
-
-
PDFObject - Class in org.xbib.graphics.io.vector.pdf
-
 
-
PDFObject(int, int, Map<String, Object>, Payload) - Constructor for class org.xbib.graphics.io.vector.pdf.PDFObject
-
 
-
PDFProcessor - Class in org.xbib.graphics.io.vector.pdf
-
 
-
PDFProcessor() - Constructor for class org.xbib.graphics.io.vector.pdf.PDFProcessor
-
 
-
PDFProcessor(boolean) - Constructor for class org.xbib.graphics.io.vector.pdf.PDFProcessor
-
 
-
PDFProcessorResult - Class in org.xbib.graphics.io.vector.pdf
-
 
-
PDFProcessorResult(PageSize) - Constructor for class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
process(Iterable<Command<?>>, PageSize) - Method in class org.xbib.graphics.io.vector.eps.EPSProcessor
-
 
-
process(Iterable<Command<?>>, PageSize) - Method in class org.xbib.graphics.io.vector.pdf.PDFProcessor
-
 
-
process(Iterable<Command<?>>, PageSize) - Method in interface org.xbib.graphics.io.vector.Processor
-
 
-
process(Iterable<Command<?>>, PageSize) - Method in class org.xbib.graphics.io.vector.svg.SVGProcessor
-
 
-
Processor - Interface in org.xbib.graphics.io.vector
-
 
-
ProcessorResult - Interface in org.xbib.graphics.io.vector
-
 
-
-

R

-
-
read() - Method in class org.xbib.graphics.io.vector.util.ImageDataStream
-
 
-
remove() - Method in class org.xbib.graphics.io.vector.filters.Filter
-
 
-
Resources - Class in org.xbib.graphics.io.vector.pdf
-
 
-
Resources(int, int) - Constructor for class org.xbib.graphics.io.vector.pdf.Resources
-
 
-
rotate(double) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
rotate(double, double, double) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
RotateCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
RotateCommand(double, double, double) - Constructor for class org.xbib.graphics.io.vector.commands.RotateCommand
-
 
-
ROW - org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
 
-
-

S

-
-
SAMPLE - org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
 
-
scale(double, double) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
ScaleCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
ScaleCommand(double, double) - Constructor for class org.xbib.graphics.io.vector.commands.ScaleCommand
-
 
-
setBackground(Color) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setBackground(Color) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetBackgroundCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetBackgroundCommand(Color) - Constructor for class org.xbib.graphics.io.vector.commands.SetBackgroundCommand
-
 
-
setClip(int, int, int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
setClip(Shape) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setClip(Shape) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetClipCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetClipCommand(Shape) - Constructor for class org.xbib.graphics.io.vector.commands.SetClipCommand
-
 
-
setColor(Color) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setColor(Color) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetColorCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetColorCommand(Color) - Constructor for class org.xbib.graphics.io.vector.commands.SetColorCommand
-
 
-
setComposite(Composite) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setComposite(Composite) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetCompositeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetCompositeCommand(Composite) - Constructor for class org.xbib.graphics.io.vector.commands.SetCompositeCommand
-
 
-
setCompressed(boolean) - Method in class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
setFont(Font) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setFont(Font) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetFontCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetFontCommand(Font) - Constructor for class org.xbib.graphics.io.vector.commands.SetFontCommand
-
 
-
SetHintCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetHintCommand(Object, Object) - Constructor for class org.xbib.graphics.io.vector.commands.SetHintCommand
-
 
-
setPaint(Paint) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setPaint(Paint) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetPaintCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetPaintCommand(Paint) - Constructor for class org.xbib.graphics.io.vector.commands.SetPaintCommand
-
 
-
setPaintMode() - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
setRenderingHint(RenderingHints.Key, Object) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
setRenderingHints(Map<?, ?>) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
setStroke(Stroke) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setStroke(Stroke) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetStrokeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetStrokeCommand(Stroke) - Constructor for class org.xbib.graphics.io.vector.commands.SetStrokeCommand
-
 
-
setTransform(AffineTransform) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setTransform(AffineTransform) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetTransformCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetTransformCommand(AffineTransform) - Constructor for class org.xbib.graphics.io.vector.commands.SetTransformCommand
-
 
-
setXorMode(Color) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
setXORMode(Color) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
SetXORModeCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
SetXORModeCommand(Color) - Constructor for class org.xbib.graphics.io.vector.commands.SetXORModeCommand
-
 
-
shear(double, double) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
ShearCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
ShearCommand(double, double) - Constructor for class org.xbib.graphics.io.vector.commands.ShearCommand
-
 
-
SizePayload - Class in org.xbib.graphics.io.vector.pdf
-
 
-
SizePayload(PDFObject, String, boolean) - Constructor for class org.xbib.graphics.io.vector.pdf.SizePayload
-
 
-
STANDARD_EOL - Static variable in class org.xbib.graphics.io.vector.util.LineWrapOutputStream
-
 
-
StateChangeGroupingFilter - Class in org.xbib.graphics.io.vector.filters
-
 
-
StateChangeGroupingFilter(Iterable<Command<?>>) - Constructor for class org.xbib.graphics.io.vector.filters.StateChangeGroupingFilter
-
 
-
StateCommand<T> - Class in org.xbib.graphics.io.vector.commands
-
 
-
StateCommand(T) - Constructor for class org.xbib.graphics.io.vector.commands.StateCommand
-
 
-
stripTrailing(String, String) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Removes the specified trailing pattern from a string.
-
-
SVG - org.xbib.graphics.io.vector.VectorGraphicsFormat
-
 
-
SVGGraphics2D - Class in org.xbib.graphics.io.vector.svg
-
-
Graphics2D implementation that saves all operations to a string - in the Scaled Vector Graphics (SVG) format.
-
-
SVGGraphics2D(double, double, double, double) - Constructor for class org.xbib.graphics.io.vector.svg.SVGGraphics2D
-
-
Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to SVG data.
-
-
SVGProcessor - Class in org.xbib.graphics.io.vector.svg
-
 
-
SVGProcessor() - Constructor for class org.xbib.graphics.io.vector.svg.SVGProcessor
-
 
-
SVGProcessorResult - Class in org.xbib.graphics.io.vector.svg
-
 
-
SVGProcessorResult(PageSize) - Constructor for class org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
 
-
-

T

-
-
TABLOID - Static variable in class org.xbib.graphics.io.vector.PageSize
-
 
-
tell() - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
toBufferedImage(Image) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
This method returns a buffered image with the contents of an image.
-
-
toBufferedImage(RenderedImage) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
Converts an arbitrary image to a BufferedImage.
-
-
toString() - Method in class org.xbib.graphics.io.vector.Command
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.DrawImageCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.DrawStringCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.RotateCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.ScaleCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.SetHintCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.ShearCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.commands.TranslateCommand
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.util.VectorHints.Key
-
 
-
toString() - Method in class org.xbib.graphics.io.vector.util.VectorHints.Value
-
 
-
toString(PDFObject) - Static method in class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
transfer(InputStream, OutputStream, int) - Static method in class org.xbib.graphics.io.vector.util.DataUtils
-
-
Copies data from an input stream to an output stream using a buffer of - specified size.
-
-
transform(AffineTransform) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
TransformCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
TransformCommand(AffineTransform) - Constructor for class org.xbib.graphics.io.vector.commands.TransformCommand
-
 
-
transformShape(Shape) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
translate(double, double) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
translate(int, int) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
TranslateCommand - Class in org.xbib.graphics.io.vector.commands
-
 
-
TranslateCommand(double, double) - Constructor for class org.xbib.graphics.io.vector.commands.TranslateCommand
-
 
-
-

U

-
-
untransformShape(Shape) - Method in class org.xbib.graphics.io.vector.GraphicsState
-
 
-
usesAlpha(Image) - Static method in class org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
This method returns true if the specified image has at least one - pixel that is not fully opaque.
-
-
-

V

-
-
Value(VectorHints.Key, int, String) - Constructor for class org.xbib.graphics.io.vector.util.VectorHints.Value
-
 
-
VALUE_EXPORT_QUALITY - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
VALUE_EXPORT_READABILITY - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
VALUE_EXPORT_SIZE - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
VALUE_TEXT_DEFAULT - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
VALUE_TEXT_VECTOR - Static variable in class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
valueOf(String) - Static method in enum org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
-
Returns the enum constant of this type with the specified name.
-
-
valueOf(String) - Static method in enum org.xbib.graphics.io.vector.VectorGraphicsFormat
-
-
Returns the enum constant of this type with the specified name.
-
-
values() - Static method in enum org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
values() - Static method in enum org.xbib.graphics.io.vector.VectorGraphicsFormat
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
VectorGraphics2D - Class in org.xbib.graphics.io.vector
-
-
Base for classes that want to implement vector export.
-
-
VectorGraphics2D() - Constructor for class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
VectorGraphics2D(Processor, PageSize) - Constructor for class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
VectorGraphicsFormat - Enum in org.xbib.graphics.io.vector
-
 
-
VectorHints - Class in org.xbib.graphics.io.vector.util
-
 
-
VectorHints() - Constructor for class org.xbib.graphics.io.vector.util.VectorHints
-
 
-
VectorHints.Key - Class in org.xbib.graphics.io.vector.util
-
 
-
VectorHints.Value - Class in org.xbib.graphics.io.vector.util
-
 
-
version - Variable in class org.xbib.graphics.io.vector.pdf.PDFObject
-
 
-
-

W

-
-
WITHOUT_ALPHA - org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
 
-
write(int) - Method in class org.xbib.graphics.io.vector.pdf.GeneratedPayload
-
 
-
write(int) - Method in class org.xbib.graphics.io.vector.pdf.Payload
-
 
-
write(int) - Method in class org.xbib.graphics.io.vector.util.ASCII85EncodeStream
-
 
-
write(int) - Method in class org.xbib.graphics.io.vector.util.Base64EncodeStream
-
 
-
write(int) - Method in class org.xbib.graphics.io.vector.util.LineWrapOutputStream
-
 
-
write(OutputStream) - Method in class org.xbib.graphics.io.vector.eps.EPSProcessorResult
-
 
-
write(OutputStream) - Method in class org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
 
-
write(OutputStream) - Method in interface org.xbib.graphics.io.vector.ProcessorResult
-
 
-
write(OutputStream) - Method in class org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
 
-
write(Number) - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
write(String) - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
writeln() - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
writeln(Number) - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
writeln(String) - Method in class org.xbib.graphics.io.vector.util.FormattingWriter
-
 
-
writeTo(OutputStream) - Method in class org.xbib.graphics.io.vector.VectorGraphics2D
-
 
-
-A B C D E F G H I J K L M N O P R S T U V W 
All Classes|All Packages
- -
-
- - diff --git a/io-vector/build/docs/javadoc/index.html b/io-vector/build/docs/javadoc/index.html deleted file mode 100644 index 49ed4e7..0000000 --- a/io-vector/build/docs/javadoc/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - -io-vector 3.0.0 API - - - - - - - - - -
- -

org.xbib.graphics.io.vector/module-summary.html

-
- - diff --git a/io-vector/build/docs/javadoc/jquery-ui.overrides.css b/io-vector/build/docs/javadoc/jquery-ui.overrides.css deleted file mode 100644 index f89acb6..0000000 --- a/io-vector/build/docs/javadoc/jquery-ui.overrides.css +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -.ui-state-active, -.ui-widget-content .ui-state-active, -.ui-widget-header .ui-state-active, -a.ui-button:active, -.ui-button:active, -.ui-button.ui-state-active:hover { - /* Overrides the color of selection used in jQuery UI */ - background: #F8981D; -} diff --git a/io-vector/build/docs/javadoc/member-search-index.js b/io-vector/build/docs/javadoc/member-search-index.js deleted file mode 100644 index 966ff1d..0000000 --- a/io-vector/build/docs/javadoc/member-search-index.js +++ /dev/null @@ -1 +0,0 @@ -memberSearchIndex = [{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"A3"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"A4"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"A5"},{"p":"org.xbib.graphics.io.vector.filters","c":"AbsoluteToRelativeTransformsFilter","l":"AbsoluteToRelativeTransformsFilter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector.commands","c":"Group","l":"add(Command)","u":"add(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"addFilter(Class)","u":"addFilter(java.lang.Class)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"addRenderingHints(Map)","u":"addRenderingHints(java.util.Map)"},{"p":"org.xbib.graphics.io.vector.commands","c":"AffineTransformCommand","l":"AffineTransformCommand(AffineTransform)","u":"%3Cinit%3E(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"ALPHA_ONLY"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"AlphaToMaskOp()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"AlphaToMaskOp(boolean)","u":"%3Cinit%3E(boolean)"},{"p":"org.xbib.graphics.io.vector.util","c":"ASCII85EncodeStream","l":"ASCII85EncodeStream(OutputStream)","u":"%3Cinit%3E(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.util","c":"ASCII85EncodeStream","l":"ASCII85EncodeStream(OutputStream, String, String)","u":"%3Cinit%3E(java.io.OutputStream,java.lang.String,java.lang.String)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"asList(double[])"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"asList(float[])"},{"p":"org.xbib.graphics.io.vector.util","c":"Base64EncodeStream","l":"Base64EncodeStream(OutputStream)","u":"%3Cinit%3E(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"clearRect(int, int, int, int)","u":"clearRect(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"clip(Shape)","u":"clip(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"clipRect(int, int, int, int)","u":"clipRect(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"clone()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"clone()"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"clone(Shape)","u":"clone(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"ProcessorResult","l":"close()"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessorResult","l":"close()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"close()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"close()"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessorResult","l":"close()"},{"p":"org.xbib.graphics.io.vector.util","c":"ASCII85EncodeStream","l":"close()"},{"p":"org.xbib.graphics.io.vector.util","c":"Base64EncodeStream","l":"close()"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"close()"},{"p":"org.xbib.graphics.io.vector","c":"Command","l":"Command(T)","u":"%3Cinit%3E(T)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"copyArea(int, int, int, int, int, int)","u":"copyArea(int,int,int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"create()"},{"p":"org.xbib.graphics.io.vector.commands","c":"CreateCommand","l":"CreateCommand(VectorGraphics2D)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.VectorGraphics2D)"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"createCompatibleDestImage(BufferedImage, ColorModel)","u":"createCompatibleDestImage(java.awt.image.BufferedImage,java.awt.image.ColorModel)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"DataUtils()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_BACKGROUND"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_CLIP"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_COLOR"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_COMPOSITE"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_FONT"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_PAINT"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_STROKE"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_TRANSFORM"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"DEFAULT_XOR_MODE"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFObject","l":"dict"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"dispose()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DisposeCommand","l":"DisposeCommand(VectorGraphics2D)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.VectorGraphics2D)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"draw(Shape)","u":"draw(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawArc(int, int, int, int, int, int)","u":"drawArc(int,int,int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawGlyphVector(GlyphVector, float, float)","u":"drawGlyphVector(java.awt.font.GlyphVector,float,float)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(BufferedImage, BufferedImageOp, int, int)","u":"drawImage(java.awt.image.BufferedImage,java.awt.image.BufferedImageOp,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, AffineTransform, ImageObserver)","u":"drawImage(java.awt.Image,java.awt.geom.AffineTransform,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, Color, ImageObserver)","u":"drawImage(java.awt.Image,int,int,java.awt.Color,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, ImageObserver)","u":"drawImage(java.awt.Image,int,int,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, int, int, Color, ImageObserver)","u":"drawImage(java.awt.Image,int,int,int,int,java.awt.Color,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, int, int, ImageObserver)","u":"drawImage(java.awt.Image,int,int,int,int,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, int, int, int, int, int, int, Color, ImageObserver)","u":"drawImage(java.awt.Image,int,int,int,int,int,int,int,int,java.awt.Color,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver)","u":"drawImage(java.awt.Image,int,int,int,int,int,int,int,int,java.awt.image.ImageObserver)"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"DrawImageCommand(Image, int, int, double, double, double, double)","u":"%3Cinit%3E(java.awt.Image,int,int,double,double,double,double)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawLine(int, int, int, int)","u":"drawLine(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawOval(int, int, int, int)","u":"drawOval(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawPolygon(int[], int[], int)","u":"drawPolygon(int[],int[],int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawPolygon(Polygon)","u":"drawPolygon(java.awt.Polygon)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawPolyline(int[], int[], int)","u":"drawPolyline(int[],int[],int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawRect(int, int, int, int)","u":"drawRect(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawRenderableImage(RenderableImage, AffineTransform)","u":"drawRenderableImage(java.awt.image.renderable.RenderableImage,java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawRenderedImage(RenderedImage, AffineTransform)","u":"drawRenderedImage(java.awt.image.RenderedImage,java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawRoundRect(int, int, int, int, int, int)","u":"drawRoundRect(int,int,int,int,int,int)"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawShapeCommand","l":"DrawShapeCommand(Shape)","u":"%3Cinit%3E(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawString(AttributedCharacterIterator, float, float)","u":"drawString(java.text.AttributedCharacterIterator,float,float)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawString(AttributedCharacterIterator, int, int)","u":"drawString(java.text.AttributedCharacterIterator,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawString(String, float, float)","u":"drawString(java.lang.String,float,float)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"drawString(String, int, int)","u":"drawString(java.lang.String,int,int)"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawStringCommand","l":"DrawStringCommand(String, double, double)","u":"%3Cinit%3E(java.lang.String,double,double)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphicsFormat","l":"EPS"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSGraphics2D","l":"EPSGraphics2D(double, double, double, double)","u":"%3Cinit%3E(double,double,double,double)"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessor","l":"EPSProcessor()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessorResult","l":"EPSProcessorResult(PageSize)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector","c":"Command","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"equals(Object)","u":"equals(java.lang.Object)"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"equals(Shape, Shape)","u":"equals(java.awt.Shape,java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fill(Shape)","u":"fill(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillArc(int, int, int, int, int, int)","u":"fillArc(int,int,int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillOval(int, int, int, int)","u":"fillOval(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector.filters","c":"FillPaintedShapeAsImageFilter","l":"FillPaintedShapeAsImageFilter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillPolygon(int[], int[], int)","u":"fillPolygon(int[],int[],int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillPolygon(Polygon)","u":"fillPolygon(java.awt.Polygon)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillRect(int, int, int, int)","u":"fillRect(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"fillRoundRect(int, int, int, int, int, int)","u":"fillRoundRect(int,int,int,int,int,int)"},{"p":"org.xbib.graphics.io.vector.commands","c":"FillShapeCommand","l":"FillShapeCommand(Shape)","u":"%3Cinit%3E(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"filter(BufferedImage, BufferedImage)","u":"filter(java.awt.image.BufferedImage,java.awt.image.BufferedImage)"},{"p":"org.xbib.graphics.io.vector.filters","c":"AbsoluteToRelativeTransformsFilter","l":"filter(Command)","u":"filter(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"FillPaintedShapeAsImageFilter","l":"filter(Command)","u":"filter(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"filter(Command)","u":"filter(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"GroupingFilter","l":"filter(Command)","u":"filter(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"OptimizeFilter","l":"filter(Command)","u":"filter(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"Filter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector.util","c":"FlateEncodeStream","l":"FlateEncodeStream(OutputStream)","u":"%3Cinit%3E(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"flush()"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"format(Number)","u":"format(java.lang.Number)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"format(Object)","u":"format(java.lang.Object)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"format(String, Object...)","u":"format(java.lang.String,java.lang.Object...)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"FormattingWriter(OutputStream, String, String)","u":"%3Cinit%3E(java.io.OutputStream,java.lang.String,java.lang.String)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"GeneratedPayload","l":"GeneratedPayload(boolean)","u":"%3Cinit%3E(boolean)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"GeneratedPayload","l":"generatePayload()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"SizePayload","l":"generatePayload()"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"getAlphaImage(BufferedImage)","u":"getAlphaImage(java.awt.image.BufferedImage)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getBackground()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getBackground()"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"getBounds2D(BufferedImage)","u":"getBounds2D(java.awt.image.BufferedImage)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getBytes()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"GeneratedPayload","l":"getBytes()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"getBytes()"},{"p":"org.xbib.graphics.io.vector.commands","c":"RotateCommand","l":"getCenterX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"RotateCommand","l":"getCenterY()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getClip()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getClip()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getClipBounds()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getColor()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getColor()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getCommands()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getComposite()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getComposite()"},{"p":"org.xbib.graphics.io.vector.commands","c":"TranslateCommand","l":"getDeltaX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"TranslateCommand","l":"getDeltaY()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getDeviceConfiguration()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getFont()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getFont()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getFontMetrics(Font)","u":"getFontMetrics(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getFontRenderContext()"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getHeight()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getHeight()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getHints()"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Value","l":"getId()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Resources","l":"getId(Double)","u":"getId(java.lang.Double)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Resources","l":"getId(Font)","u":"getId(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Resources","l":"getId(PDFObject)","u":"getId(org.xbib.graphics.io.vector.pdf.PDFObject)"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream","l":"getImage()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getImageHeight()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getImageWidth()"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Key","l":"getIndex()"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Value","l":"getIndex()"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream","l":"getInterleaving()"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetHintCommand","l":"getKey()"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getLandscape()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getPageSize()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getPaint()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getPaint()"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"getPhysicalFont(Font)","u":"getPhysicalFont(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"getPhysicalFont(Font, String)","u":"getPhysicalFont(java.awt.Font,java.lang.String)"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"getPoint2D(Point2D, Point2D)","u":"getPoint2D(java.awt.geom.Point2D,java.awt.geom.Point2D)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getPortrait()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getRenderingHint(RenderingHints.Key)","u":"getRenderingHint(java.awt.RenderingHints.Key)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getRenderingHints()"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"getRenderingHints()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ScaleCommand","l":"getScaleX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ScaleCommand","l":"getScaleY()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ShearCommand","l":"getShearX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ShearCommand","l":"getShearY()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getStroke()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getStroke()"},{"p":"org.xbib.graphics.io.vector.commands","c":"RotateCommand","l":"getTheta()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getTransform()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getTransform()"},{"p":"org.xbib.graphics.io.vector.commands","c":"TransformCommand","l":"getTransform()"},{"p":"org.xbib.graphics.io.vector","c":"Command","l":"getValue()"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getWidth()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getWidth()"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getX()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawStringCommand","l":"getX()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"getXorMode()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"getXORMode()"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"getY()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"getY()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawStringCommand","l":"getY()"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"GraphicsState()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"GraphicsUtils()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.commands","c":"Group","l":"Group()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.filters","c":"GroupingFilter","l":"GroupingFilter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector","c":"ProcessorResult","l":"handle(Command)","u":"handle(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessorResult","l":"handle(Command)","u":"handle(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"handle(Command)","u":"handle(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessorResult","l":"handle(Command)","u":"handle(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"hasAlpha(Image)","u":"hasAlpha(java.awt.Image)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"hashCode()"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"hasNext()"},{"p":"org.xbib.graphics.io.vector.filters","c":"GroupingFilter","l":"hasNext()"},{"p":"org.xbib.graphics.io.vector.filters","c":"OptimizeFilter","l":"hasNext()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"hit(Rectangle, Shape, boolean)","u":"hit(java.awt.Rectangle,java.awt.Shape,boolean)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFObject","l":"id"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream","l":"ImageDataStream(BufferedImage, ImageDataStream.Interleaving)","u":"%3Cinit%3E(java.awt.image.BufferedImage,org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving)"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Value","l":"isCompatibleKey(RenderingHints.Key)","u":"isCompatibleKey(java.awt.RenderingHints.Key)"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Key","l":"isCompatibleValue(Object)","u":"isCompatibleValue(java.lang.Object)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"isDefault()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"isDisposed()"},{"p":"org.xbib.graphics.io.vector.filters","c":"GroupingFilter","l":"isGrouped(Command)","u":"isGrouped(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.filters","c":"StateChangeGroupingFilter","l":"isGrouped(Command)","u":"isGrouped(org.xbib.graphics.io.vector.Command)"},{"p":"org.xbib.graphics.io.vector.util","c":"AlphaToMaskOp","l":"isInverted()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"isStream()"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"iterator()"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"join(String, double[])","u":"join(java.lang.String,double[])"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"join(String, float[])","u":"join(java.lang.String,float[])"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"join(String, List)","u":"join(java.lang.String,java.util.List)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"join(String, Object[])","u":"join(java.lang.String,java.lang.Object[])"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"KEY_EXPORT"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"KEY_TEXT"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Key","l":"Key(int, String)","u":"%3Cinit%3E(int,java.lang.String)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"LEDGER"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"LEGAL"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"LETTER"},{"p":"org.xbib.graphics.io.vector.util","c":"LineWrapOutputStream","l":"LineWrapOutputStream(OutputStream, int)","u":"%3Cinit%3E(java.io.OutputStream,int)"},{"p":"org.xbib.graphics.io.vector.util","c":"LineWrapOutputStream","l":"LineWrapOutputStream(OutputStream, int, String)","u":"%3Cinit%3E(java.io.OutputStream,int,java.lang.String)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"map(K[], V[])","u":"map(K[],V[])"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"max(int...)"},{"p":"org.xbib.graphics.io.vector.filters","c":"AbsoluteToRelativeTransformsFilter","l":"next()"},{"p":"org.xbib.graphics.io.vector.filters","c":"FillPaintedShapeAsImageFilter","l":"next()"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"next()"},{"p":"org.xbib.graphics.io.vector.filters","c":"GroupingFilter","l":"next()"},{"p":"org.xbib.graphics.io.vector.filters","c":"OptimizeFilter","l":"next()"},{"p":"org.xbib.graphics.io.vector.filters","c":"OptimizeFilter","l":"OptimizeFilter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"PageSize(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"PageSize(double, double, double, double)","u":"%3Cinit%3E(double,double,double,double)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"PageSize(Rectangle2D)","u":"%3Cinit%3E(java.awt.geom.Rectangle2D)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFObject","l":"payload"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"Payload(boolean)","u":"%3Cinit%3E(boolean)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphicsFormat","l":"PDF"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFGraphics2D","l":"PDFGraphics2D(double, double, double, double)","u":"%3Cinit%3E(double,double,double,double)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFObject","l":"PDFObject(int, int, Map, Payload)","u":"%3Cinit%3E(int,int,java.util.Map,org.xbib.graphics.io.vector.pdf.Payload)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessor","l":"PDFProcessor()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessor","l":"PDFProcessor(boolean)","u":"%3Cinit%3E(boolean)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"PDFProcessorResult(PageSize)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector","c":"Processor","l":"process(Iterable>, PageSize)","u":"process(java.lang.Iterable,org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessor","l":"process(Iterable>, PageSize)","u":"process(java.lang.Iterable,org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessor","l":"process(Iterable>, PageSize)","u":"process(java.lang.Iterable,org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessor","l":"process(Iterable>, PageSize)","u":"process(java.lang.Iterable,org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream","l":"read()"},{"p":"org.xbib.graphics.io.vector.filters","c":"Filter","l":"remove()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Resources","l":"Resources(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"rotate(double)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"rotate(double, double, double)","u":"rotate(double,double,double)"},{"p":"org.xbib.graphics.io.vector.commands","c":"RotateCommand","l":"RotateCommand(double, double, double)","u":"%3Cinit%3E(double,double,double)"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"ROW"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"SAMPLE"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"scale(double, double)","u":"scale(double,double)"},{"p":"org.xbib.graphics.io.vector.commands","c":"ScaleCommand","l":"ScaleCommand(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setBackground(Color)","u":"setBackground(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setBackground(Color)","u":"setBackground(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetBackgroundCommand","l":"SetBackgroundCommand(Color)","u":"%3Cinit%3E(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setClip(int, int, int, int)","u":"setClip(int,int,int,int)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setClip(Shape)","u":"setClip(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setClip(Shape)","u":"setClip(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetClipCommand","l":"SetClipCommand(Shape)","u":"%3Cinit%3E(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setColor(Color)","u":"setColor(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setColor(Color)","u":"setColor(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetColorCommand","l":"SetColorCommand(Color)","u":"%3Cinit%3E(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setComposite(Composite)","u":"setComposite(java.awt.Composite)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setComposite(Composite)","u":"setComposite(java.awt.Composite)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetCompositeCommand","l":"SetCompositeCommand(Composite)","u":"%3Cinit%3E(java.awt.Composite)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"setCompressed(boolean)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setFont(Font)","u":"setFont(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setFont(Font)","u":"setFont(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetFontCommand","l":"SetFontCommand(Font)","u":"%3Cinit%3E(java.awt.Font)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetHintCommand","l":"SetHintCommand(Object, Object)","u":"%3Cinit%3E(java.lang.Object,java.lang.Object)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setPaint(Paint)","u":"setPaint(java.awt.Paint)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setPaint(Paint)","u":"setPaint(java.awt.Paint)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetPaintCommand","l":"SetPaintCommand(Paint)","u":"%3Cinit%3E(java.awt.Paint)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setPaintMode()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setRenderingHint(RenderingHints.Key, Object)","u":"setRenderingHint(java.awt.RenderingHints.Key,java.lang.Object)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setRenderingHints(Map)","u":"setRenderingHints(java.util.Map)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setStroke(Stroke)","u":"setStroke(java.awt.Stroke)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setStroke(Stroke)","u":"setStroke(java.awt.Stroke)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetStrokeCommand","l":"SetStrokeCommand(Stroke)","u":"%3Cinit%3E(java.awt.Stroke)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setTransform(AffineTransform)","u":"setTransform(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setTransform(AffineTransform)","u":"setTransform(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetTransformCommand","l":"SetTransformCommand(AffineTransform)","u":"%3Cinit%3E(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"setXorMode(Color)","u":"setXorMode(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"setXORMode(Color)","u":"setXORMode(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetXORModeCommand","l":"SetXORModeCommand(Color)","u":"%3Cinit%3E(java.awt.Color)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"shear(double, double)","u":"shear(double,double)"},{"p":"org.xbib.graphics.io.vector.commands","c":"ShearCommand","l":"ShearCommand(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"SizePayload","l":"SizePayload(PDFObject, String, boolean)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.pdf.PDFObject,java.lang.String,boolean)"},{"p":"org.xbib.graphics.io.vector.util","c":"LineWrapOutputStream","l":"STANDARD_EOL"},{"p":"org.xbib.graphics.io.vector.filters","c":"StateChangeGroupingFilter","l":"StateChangeGroupingFilter(Iterable>)","u":"%3Cinit%3E(java.lang.Iterable)"},{"p":"org.xbib.graphics.io.vector.commands","c":"StateCommand","l":"StateCommand(T)","u":"%3Cinit%3E(T)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"stripTrailing(String, String)","u":"stripTrailing(java.lang.String,java.lang.String)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphicsFormat","l":"SVG"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGGraphics2D","l":"SVGGraphics2D(double, double, double, double)","u":"%3Cinit%3E(double,double,double,double)"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessor","l":"SVGProcessor()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessorResult","l":"SVGProcessorResult(PageSize)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector","c":"PageSize","l":"TABLOID"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"tell()"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"toBufferedImage(Image)","u":"toBufferedImage(java.awt.Image)"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"toBufferedImage(RenderedImage)","u":"toBufferedImage(java.awt.image.RenderedImage)"},{"p":"org.xbib.graphics.io.vector","c":"Command","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawImageCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"DrawStringCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"RotateCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ScaleCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"SetHintCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"ShearCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.commands","c":"TranslateCommand","l":"toString()"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessorResult","l":"toString()"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Key","l":"toString()"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Value","l":"toString()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"toString(PDFObject)","u":"toString(org.xbib.graphics.io.vector.pdf.PDFObject)"},{"p":"org.xbib.graphics.io.vector.util","c":"DataUtils","l":"transfer(InputStream, OutputStream, int)","u":"transfer(java.io.InputStream,java.io.OutputStream,int)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"transform(AffineTransform)","u":"transform(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector.commands","c":"TransformCommand","l":"TransformCommand(AffineTransform)","u":"%3Cinit%3E(java.awt.geom.AffineTransform)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"transformShape(Shape)","u":"transformShape(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"translate(double, double)","u":"translate(double,double)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"translate(int, int)","u":"translate(int,int)"},{"p":"org.xbib.graphics.io.vector.commands","c":"TranslateCommand","l":"TranslateCommand(double, double)","u":"%3Cinit%3E(double,double)"},{"p":"org.xbib.graphics.io.vector","c":"GraphicsState","l":"untransformShape(Shape)","u":"untransformShape(java.awt.Shape)"},{"p":"org.xbib.graphics.io.vector.util","c":"GraphicsUtils","l":"usesAlpha(Image)","u":"usesAlpha(java.awt.Image)"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VALUE_EXPORT_QUALITY"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VALUE_EXPORT_READABILITY"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VALUE_EXPORT_SIZE"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VALUE_TEXT_DEFAULT"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VALUE_TEXT_VECTOR"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints.Value","l":"Value(VectorHints.Key, int, String)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.util.VectorHints.Key,int,java.lang.String)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphicsFormat","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphicsFormat","l":"values()"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"values()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"VectorGraphics2D()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"VectorGraphics2D(Processor, PageSize)","u":"%3Cinit%3E(org.xbib.graphics.io.vector.Processor,org.xbib.graphics.io.vector.PageSize)"},{"p":"org.xbib.graphics.io.vector.util","c":"VectorHints","l":"VectorHints()","u":"%3Cinit%3E()"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFObject","l":"version"},{"p":"org.xbib.graphics.io.vector.util","c":"ImageDataStream.Interleaving","l":"WITHOUT_ALPHA"},{"p":"org.xbib.graphics.io.vector.pdf","c":"GeneratedPayload","l":"write(int)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"Payload","l":"write(int)"},{"p":"org.xbib.graphics.io.vector.util","c":"ASCII85EncodeStream","l":"write(int)"},{"p":"org.xbib.graphics.io.vector.util","c":"Base64EncodeStream","l":"write(int)"},{"p":"org.xbib.graphics.io.vector.util","c":"LineWrapOutputStream","l":"write(int)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"write(Number)","u":"write(java.lang.Number)"},{"p":"org.xbib.graphics.io.vector","c":"ProcessorResult","l":"write(OutputStream)","u":"write(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.eps","c":"EPSProcessorResult","l":"write(OutputStream)","u":"write(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.pdf","c":"PDFProcessorResult","l":"write(OutputStream)","u":"write(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.svg","c":"SVGProcessorResult","l":"write(OutputStream)","u":"write(java.io.OutputStream)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"write(String)","u":"write(java.lang.String)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"writeln()"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"writeln(Number)","u":"writeln(java.lang.Number)"},{"p":"org.xbib.graphics.io.vector.util","c":"FormattingWriter","l":"writeln(String)","u":"writeln(java.lang.String)"},{"p":"org.xbib.graphics.io.vector","c":"VectorGraphics2D","l":"writeTo(OutputStream)","u":"writeTo(java.io.OutputStream)"}];updateSearchResults(); \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/module-search-index.js b/io-vector/build/docs/javadoc/module-search-index.js deleted file mode 100644 index 932a926..0000000 --- a/io-vector/build/docs/javadoc/module-search-index.js +++ /dev/null @@ -1 +0,0 @@ -moduleSearchIndex = [{"l":"org.xbib.graphics.io.vector"}];updateSearchResults(); \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/module-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/module-summary.html deleted file mode 100644 index 005cdf4..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/module-summary.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - -org.xbib.graphics.io.vector (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Module org.xbib.graphics.io.vector

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Command.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Command.html deleted file mode 100644 index 976f26d..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Command.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - -Command (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class Command<T>

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T>
-
-
-
-
Direct Known Subclasses:
-
DrawImageCommand, DrawShapeCommand, DrawStringCommand, FillShapeCommand, Group, StateCommand
-
-
-
public abstract class Command<T>
-extends java.lang.Object
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Command​(T value) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    booleanequals​(java.lang.Object obj) 
    TgetValue() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Command

      -
      public Command​(T value)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getValue

      -
      public T getValue()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class java.lang.Object
      -
      -
      -
    • -
    • -
      -

      equals

      -
      public boolean equals​(java.lang.Object obj)
      -
      -
      Overrides:
      -
      equals in class java.lang.Object
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/GraphicsState.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/GraphicsState.html deleted file mode 100644 index bd03826..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/GraphicsState.html +++ /dev/null @@ -1,656 +0,0 @@ - - - - - -GraphicsState (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class GraphicsState

-
-
java.lang.Object -
org.xbib.graphics.io.vector.GraphicsState
-
-
-
-
All Implemented Interfaces:
-
java.lang.Cloneable
-
-
-
public class GraphicsState
-extends java.lang.Object
-implements java.lang.Cloneable
-
-
-
    - -
  • -
    -

    Field Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Fields
    Modifier and TypeFieldDescription
    static java.awt.ColorDEFAULT_BACKGROUND -
    Default background color.
    -
    static java.awt.ShapeDEFAULT_CLIP -
    Default clipping shape.
    -
    static java.awt.ColorDEFAULT_COLOR -
    Default color.
    -
    static java.awt.CompositeDEFAULT_COMPOSITE -
    Default composite mode.
    -
    static java.awt.FontDEFAULT_FONT -
    Default font.
    -
    static java.awt.ColorDEFAULT_PAINT -
    Default paint.
    -
    static java.awt.StrokeDEFAULT_STROKE -
    Default stroke.
    -
    static java.awt.geom.AffineTransformDEFAULT_TRANSFORM -
    Default transformation.
    -
    static java.awt.ColorDEFAULT_XOR_MODE -
    Default XOR mode.
    -
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    GraphicsState() 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.lang.Objectclone() 
    booleanequals​(java.lang.Object obj) 
    java.awt.ColorgetBackground() 
    java.awt.ShapegetClip() 
    java.awt.ColorgetColor() 
    java.awt.CompositegetComposite() 
    java.awt.FontgetFont() 
    java.awt.RenderingHintsgetHints() 
    java.awt.PaintgetPaint() 
    java.awt.StrokegetStroke() 
    java.awt.geom.AffineTransformgetTransform() 
    java.awt.ColorgetXorMode() 
    inthashCode() 
    booleanisDefault() 
    voidsetBackground​(java.awt.Color background) 
    voidsetClip​(java.awt.Shape clip) 
    voidsetColor​(java.awt.Color color) 
    voidsetComposite​(java.awt.Composite composite) 
    voidsetFont​(java.awt.Font font) 
    voidsetPaint​(java.awt.Paint paint) 
    voidsetStroke​(java.awt.Stroke stroke) 
    voidsetTransform​(java.awt.geom.AffineTransform tx) 
    voidsetXorMode​(java.awt.Color xorMode) 
    java.awt.ShapetransformShape​(java.awt.Shape shape) 
    java.awt.ShapeuntransformShape​(java.awt.Shape shape) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      DEFAULT_BACKGROUND

      -
      public static final java.awt.Color DEFAULT_BACKGROUND
      -
      Default background color.
      -
      -
    • -
    • -
      -

      DEFAULT_COLOR

      -
      public static final java.awt.Color DEFAULT_COLOR
      -
      Default color.
      -
      -
    • -
    • -
      -

      DEFAULT_CLIP

      -
      public static final java.awt.Shape DEFAULT_CLIP
      -
      Default clipping shape.
      -
      -
    • -
    • -
      -

      DEFAULT_COMPOSITE

      -
      public static final java.awt.Composite DEFAULT_COMPOSITE
      -
      Default composite mode.
      -
      -
    • -
    • -
      -

      DEFAULT_FONT

      -
      public static final java.awt.Font DEFAULT_FONT
      -
      Default font.
      -
      -
    • -
    • -
      -

      DEFAULT_PAINT

      -
      public static final java.awt.Color DEFAULT_PAINT
      -
      Default paint.
      -
      -
    • -
    • -
      -

      DEFAULT_STROKE

      -
      public static final java.awt.Stroke DEFAULT_STROKE
      -
      Default stroke.
      -
      -
    • -
    • -
      -

      DEFAULT_TRANSFORM

      -
      public static final java.awt.geom.AffineTransform DEFAULT_TRANSFORM
      -
      Default transformation.
      -
      -
    • -
    • -
      -

      DEFAULT_XOR_MODE

      -
      public static final java.awt.Color DEFAULT_XOR_MODE
      -
      Default XOR mode.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      GraphicsState

      -
      public GraphicsState()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      clone

      -
      public java.lang.Object clone() - throws java.lang.CloneNotSupportedException
      -
      -
      Overrides:
      -
      clone in class java.lang.Object
      -
      Throws:
      -
      java.lang.CloneNotSupportedException
      -
      -
      -
    • -
    • -
      -

      transformShape

      -
      public java.awt.Shape transformShape​(java.awt.Shape shape)
      -
      -
    • -
    • -
      -

      untransformShape

      -
      public java.awt.Shape untransformShape​(java.awt.Shape shape)
      -
      -
    • -
    • -
      -

      getHints

      -
      public java.awt.RenderingHints getHints()
      -
      -
    • -
    • -
      -

      getBackground

      -
      public java.awt.Color getBackground()
      -
      -
    • -
    • -
      -

      setBackground

      -
      public void setBackground​(java.awt.Color background)
      -
      -
    • -
    • -
      -

      getColor

      -
      public java.awt.Color getColor()
      -
      -
    • -
    • -
      -

      setColor

      -
      public void setColor​(java.awt.Color color)
      -
      -
    • -
    • -
      -

      getClip

      -
      public java.awt.Shape getClip()
      -
      -
    • -
    • -
      -

      setClip

      -
      public void setClip​(java.awt.Shape clip)
      -
      -
    • -
    • -
      -

      getComposite

      -
      public java.awt.Composite getComposite()
      -
      -
    • -
    • -
      -

      setComposite

      -
      public void setComposite​(java.awt.Composite composite)
      -
      -
    • -
    • -
      -

      getFont

      -
      public java.awt.Font getFont()
      -
      -
    • -
    • -
      -

      setFont

      -
      public void setFont​(java.awt.Font font)
      -
      -
    • -
    • -
      -

      getPaint

      -
      public java.awt.Paint getPaint()
      -
      -
    • -
    • -
      -

      setPaint

      -
      public void setPaint​(java.awt.Paint paint)
      -
      -
    • -
    • -
      -

      getStroke

      -
      public java.awt.Stroke getStroke()
      -
      -
    • -
    • -
      -

      setStroke

      -
      public void setStroke​(java.awt.Stroke stroke)
      -
      -
    • -
    • -
      -

      getTransform

      -
      public java.awt.geom.AffineTransform getTransform()
      -
      -
    • -
    • -
      -

      setTransform

      -
      public void setTransform​(java.awt.geom.AffineTransform tx)
      -
      -
    • -
    • -
      -

      getXorMode

      -
      public java.awt.Color getXorMode()
      -
      -
    • -
    • -
      -

      setXorMode

      -
      public void setXorMode​(java.awt.Color xorMode)
      -
      -
    • -
    • -
      -

      equals

      -
      public boolean equals​(java.lang.Object obj)
      -
      -
      Overrides:
      -
      equals in class java.lang.Object
      -
      -
      -
    • -
    • -
      -

      hashCode

      -
      public int hashCode()
      -
      -
      Overrides:
      -
      hashCode in class java.lang.Object
      -
      -
      -
    • -
    • -
      -

      isDefault

      -
      public boolean isDefault()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/PageSize.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/PageSize.html deleted file mode 100644 index 8781738..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/PageSize.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - -PageSize (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class PageSize

-
-
java.lang.Object -
org.xbib.graphics.io.vector.PageSize
-
-
-
-
public class PageSize
-extends java.lang.Object
-
-
-
    - -
  • -
    -

    Field Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Fields
    Modifier and TypeFieldDescription
    static PageSizeA3 
    static PageSizeA4 
    static PageSizeA5 
    static PageSizeLEDGER 
    static PageSizeLEGAL 
    static PageSizeLETTER 
    static PageSizeTABLOID 
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    PageSize​(double width, -double height) 
    PageSize​(double x, -double y, -double width, -double height) 
    PageSize​(java.awt.geom.Rectangle2D size) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetHeight() 
    PageSizegetLandscape() 
    PageSizegetPortrait() 
    doublegetWidth() 
    doublegetX() 
    doublegetY() 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      TABLOID

      -
      public static final PageSize TABLOID
      -
      -
    • -
    • -
      -

      LETTER

      -
      public static final PageSize LETTER
      -
      -
    • -
    • - -
    • -
    • -
      -

      LEDGER

      -
      public static final PageSize LEDGER
      -
      -
    • -
    • -
      -

      A3

      -
      public static final PageSize A3
      -
      -
    • -
    • -
      -

      A4

      -
      public static final PageSize A4
      -
      -
    • -
    • -
      -

      A5

      -
      public static final PageSize A5
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PageSize

      -
      public PageSize​(double x, -double y, -double width, -double height)
      -
      -
    • -
    • -
      -

      PageSize

      -
      public PageSize​(double width, -double height)
      -
      -
    • -
    • -
      -

      PageSize

      -
      public PageSize​(java.awt.geom.Rectangle2D size)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getPortrait

      -
      public PageSize getPortrait()
      -
      -
    • -
    • -
      -

      getLandscape

      -
      public PageSize getLandscape()
      -
      -
    • -
    • -
      -

      getX

      -
      public double getX()
      -
      -
    • -
    • -
      -

      getY

      -
      public double getY()
      -
      -
    • -
    • -
      -

      getHeight

      -
      public double getHeight()
      -
      -
    • -
    • -
      -

      getWidth

      -
      public double getWidth()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Processor.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Processor.html deleted file mode 100644 index 8535fad..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/Processor.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - -Processor (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Interface Processor

-
-
-
-
All Known Implementing Classes:
-
EPSProcessor, PDFProcessor, SVGProcessor
-
-
-
public interface Processor
-
-
-
    - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    ProcessorResultprocess​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) 
    -
    -
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      process

      -
      ProcessorResult process​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/ProcessorResult.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/ProcessorResult.html deleted file mode 100644 index 4d552b7..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/ProcessorResult.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - -ProcessorResult (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Interface ProcessorResult

-
-
-
-
All Known Implementing Classes:
-
EPSProcessorResult, PDFProcessorResult, SVGProcessorResult
-
-
-
public interface ProcessorResult
-
-
-
    - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidhandle​(Command<?> command) 
    voidwrite​(java.io.OutputStream out) 
    -
    -
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      handle

      -
      void handle​(Command<?> command) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      write

      -
      void write​(java.io.OutputStream out) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      void close() - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphics2D.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphics2D.html deleted file mode 100644 index 9d27dfb..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphics2D.html +++ /dev/null @@ -1,1664 +0,0 @@ - - - - - -VectorGraphics2D (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class VectorGraphics2D

-
-
java.lang.Object -
java.awt.Graphics -
java.awt.Graphics2D -
org.xbib.graphics.io.vector.VectorGraphics2D
-
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Cloneable
-
-
-
Direct Known Subclasses:
-
EPSGraphics2D, PDFGraphics2D, SVGGraphics2D
-
-
-
public class VectorGraphics2D
-extends java.awt.Graphics2D
-implements java.lang.Cloneable
-
Base for classes that want to implement vector export.
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    VectorGraphics2D() 
    VectorGraphics2D​(Processor processor, -PageSize pageSize) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidaddRenderingHints​(java.util.Map<?,​?> hints) 
    voidclearRect​(int x, -int y, -int width, -int height) 
    voidclip​(java.awt.Shape s) 
    voidclipRect​(int x, -int y, -int width, -int height) 
    java.lang.Objectclone() 
    voidcopyArea​(int x, -int y, -int width, -int height, -int dx, -int dy) 
    java.awt.Graphicscreate() 
    voiddispose() 
    voiddraw​(java.awt.Shape s) 
    voiddrawArc​(int x, -int y, -int width, -int height, -int startAngle, -int arcAngle) 
    voiddrawGlyphVector​(java.awt.font.GlyphVector g, -float x, -float y) 
    voiddrawImage​(java.awt.image.BufferedImage img, -java.awt.image.BufferedImageOp op, -int x, -int y) 
    booleandrawImage​(java.awt.Image img, -int dx1, -int dy1, -int dx2, -int dy2, -int sx1, -int sy1, -int sx2, -int sy2, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -int dx1, -int dy1, -int dx2, -int dy2, -int sx1, -int sy1, -int sx2, -int sy2, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -int x, -int y, -int width, -int height, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -int x, -int y, -int width, -int height, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -int x, -int y, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -int x, -int y, -java.awt.image.ImageObserver observer) 
    booleandrawImage​(java.awt.Image img, -java.awt.geom.AffineTransform xform, -java.awt.image.ImageObserver obs) 
    voiddrawLine​(int x1, -int y1, -int x2, -int y2) 
    voiddrawOval​(int x, -int y, -int width, -int height) 
    voiddrawPolygon​(int[] xPoints, -int[] yPoints, -int nPoints) 
    voiddrawPolygon​(java.awt.Polygon p) 
    voiddrawPolyline​(int[] xPoints, -int[] yPoints, -int nPoints) 
    voiddrawRect​(int x, -int y, -int width, -int height) 
    voiddrawRenderableImage​(java.awt.image.renderable.RenderableImage img, -java.awt.geom.AffineTransform xform) 
    voiddrawRenderedImage​(java.awt.image.RenderedImage img, -java.awt.geom.AffineTransform xform) 
    voiddrawRoundRect​(int x, -int y, -int width, -int height, -int arcWidth, -int arcHeight) 
    voiddrawString​(java.lang.String str, -float x, -float y) 
    voiddrawString​(java.lang.String str, -int x, -int y) 
    voiddrawString​(java.text.AttributedCharacterIterator iterator, -float x, -float y) 
    voiddrawString​(java.text.AttributedCharacterIterator iterator, -int x, -int y) 
    voidfill​(java.awt.Shape s) 
    voidfillArc​(int x, -int y, -int width, -int height, -int startAngle, -int arcAngle) 
    voidfillOval​(int x, -int y, -int width, -int height) 
    voidfillPolygon​(int[] xPoints, -int[] yPoints, -int nPoints) 
    voidfillPolygon​(java.awt.Polygon p) 
    voidfillRect​(int x, -int y, -int width, -int height) 
    voidfillRoundRect​(int x, -int y, -int width, -int height, -int arcWidth, -int arcHeight) 
    java.awt.ColorgetBackground() 
    byte[]getBytes() 
    java.awt.ShapegetClip() 
    java.awt.RectanglegetClipBounds() 
    java.awt.ColorgetColor() 
    protected java.lang.Iterable<Command<?>>getCommands() 
    java.awt.CompositegetComposite() 
    java.awt.GraphicsConfigurationgetDeviceConfiguration() 
    java.awt.FontgetFont() 
    java.awt.FontMetricsgetFontMetrics​(java.awt.Font f) 
    java.awt.font.FontRenderContextgetFontRenderContext() 
    PageSizegetPageSize() 
    java.awt.PaintgetPaint() 
    java.lang.ObjectgetRenderingHint​(java.awt.RenderingHints.Key hintKey) 
    java.awt.RenderingHintsgetRenderingHints() 
    java.awt.StrokegetStroke() 
    java.awt.geom.AffineTransformgetTransform() 
    java.awt.ColorgetXORMode() 
    booleanhit​(java.awt.Rectangle rect, -java.awt.Shape s, -boolean onStroke) 
    protected booleanisDisposed() 
    voidrotate​(double theta) 
    voidrotate​(double theta, -double x, -double y) 
    voidscale​(double sx, -double sy) 
    voidsetBackground​(java.awt.Color color) 
    voidsetClip​(int x, -int y, -int width, -int height) 
    voidsetClip​(java.awt.Shape clip) 
    voidsetColor​(java.awt.Color c) 
    voidsetComposite​(java.awt.Composite comp) 
    voidsetFont​(java.awt.Font font) 
    voidsetPaint​(java.awt.Paint paint) 
    voidsetPaintMode() 
    voidsetRenderingHint​(java.awt.RenderingHints.Key hintKey, -java.lang.Object hintValue) 
    voidsetRenderingHints​(java.util.Map<?,​?> hints) 
    voidsetStroke​(java.awt.Stroke s) 
    voidsetTransform​(java.awt.geom.AffineTransform tx) 
    voidsetXORMode​(java.awt.Color c1) 
    voidshear​(double shx, -double shy) 
    voidtransform​(java.awt.geom.AffineTransform tx) 
    voidtranslate​(double tx, -double ty) 
    voidtranslate​(int x, -int y) 
    voidwriteTo​(java.io.OutputStream out) 
    -
    -
    -
    -

    Methods inherited from class java.awt.Graphics2D

    -draw3DRect, fill3DRect
    -
    -

    Methods inherited from class java.awt.Graphics

    -create, drawBytes, drawChars, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
    -
    -

    Methods inherited from class java.lang.Object

    -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      VectorGraphics2D

      -
      public VectorGraphics2D()
      -
      -
    • -
    • -
      -

      VectorGraphics2D

      -
      public VectorGraphics2D​(Processor processor, -PageSize pageSize)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getPageSize

      -
      public PageSize getPageSize()
      -
      -
    • -
    • -
      -

      getBytes

      -
      public byte[] getBytes() - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      writeTo

      -
      public void writeTo​(java.io.OutputStream out) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      clone

      -
      public java.lang.Object clone() - throws java.lang.CloneNotSupportedException
      -
      -
      Overrides:
      -
      clone in class java.lang.Object
      -
      Throws:
      -
      java.lang.CloneNotSupportedException
      -
      -
      -
    • -
    • -
      -

      addRenderingHints

      -
      public void addRenderingHints​(java.util.Map<?,​?> hints)
      -
      -
      Specified by:
      -
      addRenderingHints in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      clip

      -
      public void clip​(java.awt.Shape s)
      -
      -
      Specified by:
      -
      clip in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      draw

      -
      public void draw​(java.awt.Shape s)
      -
      -
      Specified by:
      -
      draw in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawGlyphVector

      -
      public void drawGlyphVector​(java.awt.font.GlyphVector g, -float x, -float y)
      -
      -
      Specified by:
      -
      drawGlyphVector in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -java.awt.geom.AffineTransform xform, -java.awt.image.ImageObserver obs)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public void drawImage​(java.awt.image.BufferedImage img, -java.awt.image.BufferedImageOp op, -int x, -int y)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawRenderableImage

      -
      public void drawRenderableImage​(java.awt.image.renderable.RenderableImage img, -java.awt.geom.AffineTransform xform)
      -
      -
      Specified by:
      -
      drawRenderableImage in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawRenderedImage

      -
      public void drawRenderedImage​(java.awt.image.RenderedImage img, -java.awt.geom.AffineTransform xform)
      -
      -
      Specified by:
      -
      drawRenderedImage in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawString

      -
      public void drawString​(java.lang.String str, -int x, -int y)
      -
      -
      Specified by:
      -
      drawString in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawString

      -
      public void drawString​(java.lang.String str, -float x, -float y)
      -
      -
      Specified by:
      -
      drawString in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawString

      -
      public void drawString​(java.text.AttributedCharacterIterator iterator, -int x, -int y)
      -
      -
      Specified by:
      -
      drawString in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      drawString

      -
      public void drawString​(java.text.AttributedCharacterIterator iterator, -float x, -float y)
      -
      -
      Specified by:
      -
      drawString in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      fill

      -
      public void fill​(java.awt.Shape s)
      -
      -
      Specified by:
      -
      fill in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getBackground

      -
      public java.awt.Color getBackground()
      -
      -
      Specified by:
      -
      getBackground in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setBackground

      -
      public void setBackground​(java.awt.Color color)
      -
      -
      Specified by:
      -
      setBackground in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getComposite

      -
      public java.awt.Composite getComposite()
      -
      -
      Specified by:
      -
      getComposite in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setComposite

      -
      public void setComposite​(java.awt.Composite comp)
      -
      -
      Specified by:
      -
      setComposite in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getDeviceConfiguration

      -
      public java.awt.GraphicsConfiguration getDeviceConfiguration()
      -
      -
      Specified by:
      -
      getDeviceConfiguration in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getFontRenderContext

      -
      public java.awt.font.FontRenderContext getFontRenderContext()
      -
      -
      Specified by:
      -
      getFontRenderContext in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getPaint

      -
      public java.awt.Paint getPaint()
      -
      -
      Specified by:
      -
      getPaint in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setPaint

      -
      public void setPaint​(java.awt.Paint paint)
      -
      -
      Specified by:
      -
      setPaint in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getRenderingHint

      -
      public java.lang.Object getRenderingHint​(java.awt.RenderingHints.Key hintKey)
      -
      -
      Specified by:
      -
      getRenderingHint in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getRenderingHints

      -
      public java.awt.RenderingHints getRenderingHints()
      -
      -
      Specified by:
      -
      getRenderingHints in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setRenderingHints

      -
      public void setRenderingHints​(java.util.Map<?,​?> hints)
      -
      -
      Specified by:
      -
      setRenderingHints in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getStroke

      -
      public java.awt.Stroke getStroke()
      -
      -
      Specified by:
      -
      getStroke in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setStroke

      -
      public void setStroke​(java.awt.Stroke s)
      -
      -
      Specified by:
      -
      setStroke in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      hit

      -
      public boolean hit​(java.awt.Rectangle rect, -java.awt.Shape s, -boolean onStroke)
      -
      -
      Specified by:
      -
      hit in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setRenderingHint

      -
      public void setRenderingHint​(java.awt.RenderingHints.Key hintKey, -java.lang.Object hintValue)
      -
      -
      Specified by:
      -
      setRenderingHint in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      getTransform

      -
      public java.awt.geom.AffineTransform getTransform()
      -
      -
      Specified by:
      -
      getTransform in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      setTransform

      -
      public void setTransform​(java.awt.geom.AffineTransform tx)
      -
      -
      Specified by:
      -
      setTransform in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      shear

      -
      public void shear​(double shx, -double shy)
      -
      -
      Specified by:
      -
      shear in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      transform

      -
      public void transform​(java.awt.geom.AffineTransform tx)
      -
      -
      Specified by:
      -
      transform in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      translate

      -
      public void translate​(int x, -int y)
      -
      -
      Specified by:
      -
      translate in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      translate

      -
      public void translate​(double tx, -double ty)
      -
      -
      Specified by:
      -
      translate in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      rotate

      -
      public void rotate​(double theta)
      -
      -
      Specified by:
      -
      rotate in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      rotate

      -
      public void rotate​(double theta, -double x, -double y)
      -
      -
      Specified by:
      -
      rotate in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      scale

      -
      public void scale​(double sx, -double sy)
      -
      -
      Specified by:
      -
      scale in class java.awt.Graphics2D
      -
      -
      -
    • -
    • -
      -

      clearRect

      -
      public void clearRect​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      clearRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      clipRect

      -
      public void clipRect​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      clipRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      copyArea

      -
      public void copyArea​(int x, -int y, -int width, -int height, -int dx, -int dy)
      -
      -
      Specified by:
      -
      copyArea in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      create

      -
      public java.awt.Graphics create()
      -
      -
      Specified by:
      -
      create in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      dispose

      -
      public void dispose()
      -
      -
      Specified by:
      -
      dispose in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawArc

      -
      public void drawArc​(int x, -int y, -int width, -int height, -int startAngle, -int arcAngle)
      -
      -
      Specified by:
      -
      drawArc in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int x, -int y, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int x, -int y, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int x, -int y, -int width, -int height, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int x, -int y, -int width, -int height, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int dx1, -int dy1, -int dx2, -int dy2, -int sx1, -int sy1, -int sx2, -int sy2, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawImage

      -
      public boolean drawImage​(java.awt.Image img, -int dx1, -int dy1, -int dx2, -int dy2, -int sx1, -int sy1, -int sx2, -int sy2, -java.awt.Color bgcolor, -java.awt.image.ImageObserver observer)
      -
      -
      Specified by:
      -
      drawImage in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawLine

      -
      public void drawLine​(int x1, -int y1, -int x2, -int y2)
      -
      -
      Specified by:
      -
      drawLine in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawOval

      -
      public void drawOval​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      drawOval in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawPolygon

      -
      public void drawPolygon​(java.awt.Polygon p)
      -
      -
      Overrides:
      -
      drawPolygon in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawPolygon

      -
      public void drawPolygon​(int[] xPoints, -int[] yPoints, -int nPoints)
      -
      -
      Specified by:
      -
      drawPolygon in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawPolyline

      -
      public void drawPolyline​(int[] xPoints, -int[] yPoints, -int nPoints)
      -
      -
      Specified by:
      -
      drawPolyline in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawRect

      -
      public void drawRect​(int x, -int y, -int width, -int height)
      -
      -
      Overrides:
      -
      drawRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      drawRoundRect

      -
      public void drawRoundRect​(int x, -int y, -int width, -int height, -int arcWidth, -int arcHeight)
      -
      -
      Specified by:
      -
      drawRoundRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillArc

      -
      public void fillArc​(int x, -int y, -int width, -int height, -int startAngle, -int arcAngle)
      -
      -
      Specified by:
      -
      fillArc in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillOval

      -
      public void fillOval​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      fillOval in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillPolygon

      -
      public void fillPolygon​(java.awt.Polygon p)
      -
      -
      Overrides:
      -
      fillPolygon in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillPolygon

      -
      public void fillPolygon​(int[] xPoints, -int[] yPoints, -int nPoints)
      -
      -
      Specified by:
      -
      fillPolygon in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillRect

      -
      public void fillRect​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      fillRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      fillRoundRect

      -
      public void fillRoundRect​(int x, -int y, -int width, -int height, -int arcWidth, -int arcHeight)
      -
      -
      Specified by:
      -
      fillRoundRect in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getClip

      -
      public java.awt.Shape getClip()
      -
      -
      Specified by:
      -
      getClip in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      setClip

      -
      public void setClip​(java.awt.Shape clip)
      -
      -
      Specified by:
      -
      setClip in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getClipBounds

      -
      public java.awt.Rectangle getClipBounds()
      -
      -
      Specified by:
      -
      getClipBounds in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getColor

      -
      public java.awt.Color getColor()
      -
      -
      Specified by:
      -
      getColor in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      setColor

      -
      public void setColor​(java.awt.Color c)
      -
      -
      Specified by:
      -
      setColor in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getFont

      -
      public java.awt.Font getFont()
      -
      -
      Specified by:
      -
      getFont in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      setFont

      -
      public void setFont​(java.awt.Font font)
      -
      -
      Specified by:
      -
      setFont in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getFontMetrics

      -
      public java.awt.FontMetrics getFontMetrics​(java.awt.Font f)
      -
      -
      Specified by:
      -
      getFontMetrics in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      setClip

      -
      public void setClip​(int x, -int y, -int width, -int height)
      -
      -
      Specified by:
      -
      setClip in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      setPaintMode

      -
      public void setPaintMode()
      -
      -
      Specified by:
      -
      setPaintMode in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getXORMode

      -
      public java.awt.Color getXORMode()
      -
      -
    • -
    • -
      -

      setXORMode

      -
      public void setXORMode​(java.awt.Color c1)
      -
      -
      Specified by:
      -
      setXORMode in class java.awt.Graphics
      -
      -
      -
    • -
    • -
      -

      getCommands

      -
      protected java.lang.Iterable<Command<?>> getCommands()
      -
      -
    • -
    • -
      -

      isDisposed

      -
      protected boolean isDisposed()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphicsFormat.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphicsFormat.html deleted file mode 100644 index f862782..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/VectorGraphicsFormat.html +++ /dev/null @@ -1,291 +0,0 @@ - - - - - -VectorGraphicsFormat (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Enum VectorGraphicsFormat

-
-
java.lang.Object -
java.lang.Enum<VectorGraphicsFormat> -
org.xbib.graphics.io.vector.VectorGraphicsFormat
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Serializable, java.lang.Comparable<VectorGraphicsFormat>, java.lang.constant.Constable
-
-
-
public enum VectorGraphicsFormat
-extends java.lang.Enum<VectorGraphicsFormat>
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    -

    Nested classes/interfaces inherited from class java.lang.Enum

    -java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    -
    -
  • - -
  • -
    -

    Enum Constant Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - -
    Enum Constants
    Enum ConstantDescription
    EPS 
    PDF 
    SVG 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    static VectorGraphicsFormatvalueOf​(java.lang.String name) -
    Returns the enum constant of this type with the specified name.
    -
    static VectorGraphicsFormat[]values() -
    Returns an array containing the constants of this enum type, in -the order they are declared.
    -
    -
    -
    -
    -

    Methods inherited from class java.lang.Enum

    -clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
    -
    -

    Methods inherited from class java.lang.Object

    -getClass, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Enum Constant Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static VectorGraphicsFormat[] values()
      -
      Returns an array containing the constants of this enum type, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum type, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static VectorGraphicsFormat valueOf​(java.lang.String name)
      -
      Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      -
      java.lang.NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/AffineTransformCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/AffineTransformCommand.html deleted file mode 100644 index c2debd2..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/AffineTransformCommand.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - -AffineTransformCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class AffineTransformCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.geom.AffineTransform> -
org.xbib.graphics.io.vector.commands.AffineTransformCommand
-
-
-
-
-
-
Direct Known Subclasses:
-
RotateCommand, ScaleCommand, ShearCommand, TransformCommand, TranslateCommand
-
-
-
public abstract class AffineTransformCommand
-extends StateCommand<java.awt.geom.AffineTransform>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    AffineTransformCommand​(java.awt.geom.AffineTransform transform) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AffineTransformCommand

      -
      public AffineTransformCommand​(java.awt.geom.AffineTransform transform)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/CreateCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/CreateCommand.html deleted file mode 100644 index 8298f78..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/CreateCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -CreateCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class CreateCommand

-
-
java.lang.Object - -
-
-
-
public class CreateCommand
-extends StateCommand<VectorGraphics2D>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    CreateCommand​(VectorGraphics2D graphics) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DisposeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DisposeCommand.html deleted file mode 100644 index f45496c..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DisposeCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -DisposeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class DisposeCommand

-
-
java.lang.Object - -
-
-
-
public class DisposeCommand
-extends StateCommand<VectorGraphics2D>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    DisposeCommand​(VectorGraphics2D graphics) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DisposeCommand

      -
      public DisposeCommand​(VectorGraphics2D graphics)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawImageCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawImageCommand.html deleted file mode 100644 index 2f79991..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawImageCommand.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - -DrawImageCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class DrawImageCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<java.awt.Image> -
org.xbib.graphics.io.vector.commands.DrawImageCommand
-
-
-
-
-
public class DrawImageCommand
-extends Command<java.awt.Image>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    DrawImageCommand​(java.awt.Image image, -int imageWidth, -int imageHeight, -double x, -double y, -double width, -double height) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetHeight() 
    intgetImageHeight() 
    intgetImageWidth() 
    doublegetWidth() 
    doublegetX() 
    doublegetY() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DrawImageCommand

      -
      public DrawImageCommand​(java.awt.Image image, -int imageWidth, -int imageHeight, -double x, -double y, -double width, -double height)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getImageWidth

      -
      public int getImageWidth()
      -
      -
    • -
    • -
      -

      getImageHeight

      -
      public int getImageHeight()
      -
      -
    • -
    • -
      -

      getX

      -
      public double getX()
      -
      -
    • -
    • -
      -

      getY

      -
      public double getY()
      -
      -
    • -
    • -
      -

      getWidth

      -
      public double getWidth()
      -
      -
    • -
    • -
      -

      getHeight

      -
      public double getHeight()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.awt.Image>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawShapeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawShapeCommand.html deleted file mode 100644 index 70bd5f0..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawShapeCommand.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -DrawShapeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class DrawShapeCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<java.awt.Shape> -
org.xbib.graphics.io.vector.commands.DrawShapeCommand
-
-
-
-
-
public class DrawShapeCommand
-extends Command<java.awt.Shape>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    DrawShapeCommand​(java.awt.Shape shape) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DrawShapeCommand

      -
      public DrawShapeCommand​(java.awt.Shape shape)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawStringCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawStringCommand.html deleted file mode 100644 index 065b1e2..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/DrawStringCommand.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - -DrawStringCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class DrawStringCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<java.lang.String> -
org.xbib.graphics.io.vector.commands.DrawStringCommand
-
-
-
-
-
public class DrawStringCommand
-extends Command<java.lang.String>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    DrawStringCommand​(java.lang.String string, -double x, -double y) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetX() 
    doublegetY() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DrawStringCommand

      -
      public DrawStringCommand​(java.lang.String string, -double x, -double y)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getX

      -
      public double getX()
      -
      -
    • -
    • -
      -

      getY

      -
      public double getY()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.lang.String>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/FillShapeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/FillShapeCommand.html deleted file mode 100644 index e34dac6..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/FillShapeCommand.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -FillShapeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class FillShapeCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<java.awt.Shape> -
org.xbib.graphics.io.vector.commands.FillShapeCommand
-
-
-
-
-
public class FillShapeCommand
-extends Command<java.awt.Shape>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    FillShapeCommand​(java.awt.Shape shape) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      FillShapeCommand

      -
      public FillShapeCommand​(java.awt.Shape shape)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/Group.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/Group.html deleted file mode 100644 index 13a1241..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/Group.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - -Group (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- - -
java.lang.Object -
org.xbib.graphics.io.vector.Command<java.util.List<Command<?>>> -
org.xbib.graphics.io.vector.commands.Group
-
-
-
-
-
public class Group
-extends Command<java.util.List<Command<?>>>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Group() 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidadd​(Command<?> command) 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Group

      -
      public Group()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      add

      -
      public void add​(Command<?> command)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/RotateCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/RotateCommand.html deleted file mode 100644 index e517e41..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/RotateCommand.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - -RotateCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class RotateCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.geom.AffineTransform> -
org.xbib.graphics.io.vector.commands.AffineTransformCommand -
org.xbib.graphics.io.vector.commands.RotateCommand
-
-
-
-
-
-
-
public class RotateCommand
-extends AffineTransformCommand
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    RotateCommand​(double theta, -double centerX, -double centerY) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetCenterX() 
    doublegetCenterY() 
    doublegetTheta() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      RotateCommand

      -
      public RotateCommand​(double theta, -double centerX, -double centerY)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getTheta

      -
      public double getTheta()
      -
      -
    • -
    • -
      -

      getCenterX

      -
      public double getCenterX()
      -
      -
    • -
    • -
      -

      getCenterY

      -
      public double getCenterY()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.awt.geom.AffineTransform>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ScaleCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ScaleCommand.html deleted file mode 100644 index 18f43bf..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ScaleCommand.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - -ScaleCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class ScaleCommand

-
-
java.lang.Object - -
-
-
-
public class ScaleCommand
-extends AffineTransformCommand
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    ScaleCommand​(double scaleX, -double scaleY) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetScaleX() 
    doublegetScaleY() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      ScaleCommand

      -
      public ScaleCommand​(double scaleX, -double scaleY)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getScaleX

      -
      public double getScaleX()
      -
      -
    • -
    • -
      -

      getScaleY

      -
      public double getScaleY()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.awt.geom.AffineTransform>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetBackgroundCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetBackgroundCommand.html deleted file mode 100644 index 2b0dcb9..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetBackgroundCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetBackgroundCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetBackgroundCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Color> -
org.xbib.graphics.io.vector.commands.SetBackgroundCommand
-
-
-
-
-
-
public class SetBackgroundCommand
-extends StateCommand<java.awt.Color>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetBackgroundCommand​(java.awt.Color color) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetBackgroundCommand

      -
      public SetBackgroundCommand​(java.awt.Color color)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetClipCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetClipCommand.html deleted file mode 100644 index ef6e4c3..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetClipCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetClipCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetClipCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Shape> -
org.xbib.graphics.io.vector.commands.SetClipCommand
-
-
-
-
-
-
public class SetClipCommand
-extends StateCommand<java.awt.Shape>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetClipCommand​(java.awt.Shape shape) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetClipCommand

      -
      public SetClipCommand​(java.awt.Shape shape)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetColorCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetColorCommand.html deleted file mode 100644 index df7b1c5..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetColorCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetColorCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetColorCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Color> -
org.xbib.graphics.io.vector.commands.SetColorCommand
-
-
-
-
-
-
public class SetColorCommand
-extends StateCommand<java.awt.Color>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetColorCommand​(java.awt.Color color) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetColorCommand

      -
      public SetColorCommand​(java.awt.Color color)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetCompositeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetCompositeCommand.html deleted file mode 100644 index a199abb..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetCompositeCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetCompositeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetCompositeCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Composite> -
org.xbib.graphics.io.vector.commands.SetCompositeCommand
-
-
-
-
-
-
public class SetCompositeCommand
-extends StateCommand<java.awt.Composite>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetCompositeCommand​(java.awt.Composite composite) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetCompositeCommand

      -
      public SetCompositeCommand​(java.awt.Composite composite)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetFontCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetFontCommand.html deleted file mode 100644 index 37af80a..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetFontCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetFontCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetFontCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Font> -
org.xbib.graphics.io.vector.commands.SetFontCommand
-
-
-
-
-
-
public class SetFontCommand
-extends StateCommand<java.awt.Font>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetFontCommand​(java.awt.Font font) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetFontCommand

      -
      public SetFontCommand​(java.awt.Font font)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetHintCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetHintCommand.html deleted file mode 100644 index 7a6afb5..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetHintCommand.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - -SetHintCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetHintCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.lang.Object> -
org.xbib.graphics.io.vector.commands.SetHintCommand
-
-
-
-
-
-
public class SetHintCommand
-extends StateCommand<java.lang.Object>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetHintCommand​(java.lang.Object hintKey, -java.lang.Object hintValue) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.lang.ObjectgetKey() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetHintCommand

      -
      public SetHintCommand​(java.lang.Object hintKey, -java.lang.Object hintValue)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getKey

      -
      public java.lang.Object getKey()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.lang.Object>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetPaintCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetPaintCommand.html deleted file mode 100644 index 29cc1d1..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetPaintCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetPaintCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetPaintCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Paint> -
org.xbib.graphics.io.vector.commands.SetPaintCommand
-
-
-
-
-
-
public class SetPaintCommand
-extends StateCommand<java.awt.Paint>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetPaintCommand​(java.awt.Paint paint) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetPaintCommand

      -
      public SetPaintCommand​(java.awt.Paint paint)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetStrokeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetStrokeCommand.html deleted file mode 100644 index 7db8a5f..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetStrokeCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetStrokeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetStrokeCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Stroke> -
org.xbib.graphics.io.vector.commands.SetStrokeCommand
-
-
-
-
-
-
public class SetStrokeCommand
-extends StateCommand<java.awt.Stroke>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetStrokeCommand​(java.awt.Stroke stroke) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetStrokeCommand

      -
      public SetStrokeCommand​(java.awt.Stroke stroke)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetTransformCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetTransformCommand.html deleted file mode 100644 index f735a1b..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetTransformCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetTransformCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetTransformCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.geom.AffineTransform> -
org.xbib.graphics.io.vector.commands.SetTransformCommand
-
-
-
-
-
-
public class SetTransformCommand
-extends StateCommand<java.awt.geom.AffineTransform>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetTransformCommand​(java.awt.geom.AffineTransform transform) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetTransformCommand

      -
      public SetTransformCommand​(java.awt.geom.AffineTransform transform)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetXORModeCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetXORModeCommand.html deleted file mode 100644 index d0c5f1f..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/SetXORModeCommand.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - -SetXORModeCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SetXORModeCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.Color> -
org.xbib.graphics.io.vector.commands.SetXORModeCommand
-
-
-
-
-
-
public class SetXORModeCommand
-extends StateCommand<java.awt.Color>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SetXORModeCommand​(java.awt.Color mode) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SetXORModeCommand

      -
      public SetXORModeCommand​(java.awt.Color mode)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ShearCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ShearCommand.html deleted file mode 100644 index 93ca541..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/ShearCommand.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - -ShearCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class ShearCommand

-
-
java.lang.Object - -
-
-
-
public class ShearCommand
-extends AffineTransformCommand
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    ShearCommand​(double shearX, -double shearY) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetShearX() 
    doublegetShearY() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      ShearCommand

      -
      public ShearCommand​(double shearX, -double shearY)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getShearX

      -
      public double getShearX()
      -
      -
    • -
    • -
      -

      getShearY

      -
      public double getShearY()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.awt.geom.AffineTransform>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/StateCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/StateCommand.html deleted file mode 100644 index a8182f6..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/StateCommand.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - -StateCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class StateCommand<T>

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<T>
-
-
-
-
-
Direct Known Subclasses:
-
AffineTransformCommand, CreateCommand, DisposeCommand, SetBackgroundCommand, SetClipCommand, SetColorCommand, SetCompositeCommand, SetFontCommand, SetHintCommand, SetPaintCommand, SetStrokeCommand, SetTransformCommand, SetXORModeCommand
-
-
-
public abstract class StateCommand<T>
-extends Command<T>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    StateCommand​(T value) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      StateCommand

      -
      public StateCommand​(T value)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TransformCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TransformCommand.html deleted file mode 100644 index 396f1b1..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TransformCommand.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - -TransformCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class TransformCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.geom.AffineTransform> -
org.xbib.graphics.io.vector.commands.AffineTransformCommand -
org.xbib.graphics.io.vector.commands.TransformCommand
-
-
-
-
-
-
-
public class TransformCommand
-extends AffineTransformCommand
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    TransformCommand​(java.awt.geom.AffineTransform transform) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.awt.geom.AffineTransformgetTransform() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue, toString
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TransformCommand

      -
      public TransformCommand​(java.awt.geom.AffineTransform transform)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getTransform

      -
      public java.awt.geom.AffineTransform getTransform()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TranslateCommand.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TranslateCommand.html deleted file mode 100644 index 6822cae..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/TranslateCommand.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - -TranslateCommand (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class TranslateCommand

-
-
java.lang.Object -
org.xbib.graphics.io.vector.Command<T> -
org.xbib.graphics.io.vector.commands.StateCommand<java.awt.geom.AffineTransform> -
org.xbib.graphics.io.vector.commands.AffineTransformCommand -
org.xbib.graphics.io.vector.commands.TranslateCommand
-
-
-
-
-
-
-
public class TranslateCommand
-extends AffineTransformCommand
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    TranslateCommand​(double x, -double y) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    doublegetDeltaX() 
    doublegetDeltaY() 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.Command

    -equals, getValue
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      TranslateCommand

      -
      public TranslateCommand​(double x, -double y)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getDeltaX

      -
      public double getDeltaX()
      -
      -
    • -
    • -
      -

      getDeltaY

      -
      public double getDeltaY()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class Command<java.awt.geom.AffineTransform>
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-summary.html deleted file mode 100644 index 2f8ae00..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-summary.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.commands (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.commands

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-tree.html deleted file mode 100644 index c7197e8..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/commands/package-tree.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.commands Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.commands

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSGraphics2D.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSGraphics2D.html deleted file mode 100644 index 93cc807..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSGraphics2D.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - -EPSGraphics2D (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class EPSGraphics2D

-
-
java.lang.Object -
java.awt.Graphics -
java.awt.Graphics2D -
org.xbib.graphics.io.vector.VectorGraphics2D -
org.xbib.graphics.io.vector.eps.EPSGraphics2D
-
-
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Cloneable
-
-
-
public class EPSGraphics2D
-extends VectorGraphics2D
-
Graphics2D implementation that saves all operations to a string - in the Encapsulated PostScript® (EPS) format.
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EPSGraphics2D

      -
      public EPSGraphics2D​(double x, -double y, -double width, -double height)
      -
      Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to EPS data. The document dimensions must be specified as - parameters.
      -
      -
      Parameters:
      -
      x - Left offset.
      -
      y - Top offset
      -
      width - Width.
      -
      height - Height.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessor.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessor.html deleted file mode 100644 index ce9f358..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessor.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - -EPSProcessor (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class EPSProcessor

-
-
java.lang.Object -
org.xbib.graphics.io.vector.eps.EPSProcessor
-
-
-
-
All Implemented Interfaces:
-
Processor
-
-
-
public class EPSProcessor
-extends java.lang.Object
-implements Processor
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    EPSProcessor() 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    ProcessorResultprocess​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EPSProcessor

      -
      public EPSProcessor()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      process

      -
      public ProcessorResult process​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) - throws java.io.IOException
      -
      -
      Specified by:
      -
      process in interface Processor
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessorResult.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessorResult.html deleted file mode 100644 index 14548be..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/EPSProcessorResult.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - -EPSProcessorResult (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class EPSProcessorResult

-
-
java.lang.Object -
org.xbib.graphics.io.vector.eps.EPSProcessorResult
-
-
-
-
All Implemented Interfaces:
-
ProcessorResult
-
-
-
public class EPSProcessorResult
-extends java.lang.Object
-implements ProcessorResult
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    EPSProcessorResult​(PageSize pageSize) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidhandle​(Command<?> command) 
    voidwrite​(java.io.OutputStream out) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      EPSProcessorResult

      -
      public EPSProcessorResult​(PageSize pageSize)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public void write​(java.io.OutputStream out) - throws java.io.IOException
      -
      -
      Specified by:
      -
      write in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close()
      -
      -
      Specified by:
      -
      close in interface ProcessorResult
      -
      -
      -
    • -
    • -
      -

      handle

      -
      public void handle​(Command<?> command) - throws java.io.IOException
      -
      -
      Specified by:
      -
      handle in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-summary.html deleted file mode 100644 index cf3c2fb..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-summary.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.eps (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.eps

-
-
-
    -
  • -
    - - - - - - - - - - - - - - - - - - - - - - -
    Class Summary
    ClassDescription
    EPSGraphics2D -
    Graphics2D implementation that saves all operations to a string - in the Encapsulated PostScript® (EPS) format.
    -
    EPSProcessor 
    EPSProcessorResult 
    -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-tree.html deleted file mode 100644 index 7ad64b6..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/eps/package-tree.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.eps Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.eps

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object - -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.html deleted file mode 100644 index 8a7a2dc..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - -AbsoluteToRelativeTransformsFilter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class AbsoluteToRelativeTransformsFilter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter -
org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
public class AbsoluteToRelativeTransformsFilter
-extends Filter
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    AbsoluteToRelativeTransformsFilter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected java.util.List<Command<?>>filter​(Command<?> command) 
    Command<?>next() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.Filter

    -hasNext, iterator, remove
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AbsoluteToRelativeTransformsFilter

      -
      public AbsoluteToRelativeTransformsFilter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      next

      -
      public Command<?> next()
      -
      -
      Specified by:
      -
      next in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      next in class Filter
      -
      -
      -
    • -
    • -
      -

      filter

      -
      protected java.util.List<Command<?>> filter​(Command<?> command)
      -
      -
      Specified by:
      -
      filter in class Filter
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.html deleted file mode 100644 index 22157fa..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - -FillPaintedShapeAsImageFilter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class FillPaintedShapeAsImageFilter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter -
org.xbib.graphics.io.vector.filters.FillPaintedShapeAsImageFilter
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
public class FillPaintedShapeAsImageFilter
-extends Filter
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    FillPaintedShapeAsImageFilter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected java.util.List<Command<?>>filter​(Command<?> command) 
    Command<?>next() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.Filter

    -hasNext, iterator, remove
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      FillPaintedShapeAsImageFilter

      -
      public FillPaintedShapeAsImageFilter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      next

      -
      public Command<?> next()
      -
      -
      Specified by:
      -
      next in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      next in class Filter
      -
      -
      -
    • -
    • -
      -

      filter

      -
      protected java.util.List<Command<?>> filter​(Command<?> command)
      -
      -
      Specified by:
      -
      filter in class Filter
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/Filter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/Filter.html deleted file mode 100644 index 2e89ecf..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/Filter.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - -Filter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- - -
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
Direct Known Subclasses:
-
AbsoluteToRelativeTransformsFilter, FillPaintedShapeAsImageFilter, GroupingFilter, OptimizeFilter
-
-
-
public abstract class Filter
-extends java.lang.Object
-implements java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Filter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected abstract java.util.List<Command<?>>filter​(Command<?> command) 
    booleanhasNext() 
    java.util.Iterator<Command<?>>iterator() 
    Command<?>next() 
    voidremove() 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Filter

      -
      public Filter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      iterator

      -
      public java.util.Iterator<Command<?>> iterator()
      -
      -
      Specified by:
      -
      iterator in interface java.lang.Iterable<Command<?>>
      -
      -
      -
    • -
    • -
      -

      hasNext

      -
      public boolean hasNext()
      -
      -
      Specified by:
      -
      hasNext in interface java.util.Iterator<Command<?>>
      -
      -
      -
    • -
    • -
      -

      next

      -
      public Command<?> next()
      -
      -
      Specified by:
      -
      next in interface java.util.Iterator<Command<?>>
      -
      -
      -
    • -
    • -
      -

      remove

      -
      public void remove()
      -
      -
      Specified by:
      -
      remove in interface java.util.Iterator<Command<?>>
      -
      -
      -
    • -
    • -
      -

      filter

      -
      protected abstract java.util.List<Command<?>> filter​(Command<?> command)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/GroupingFilter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/GroupingFilter.html deleted file mode 100644 index 7b386e0..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/GroupingFilter.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - -GroupingFilter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class GroupingFilter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter -
org.xbib.graphics.io.vector.filters.GroupingFilter
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
Direct Known Subclasses:
-
StateChangeGroupingFilter
-
-
-
public abstract class GroupingFilter
-extends Filter
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    GroupingFilter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected java.util.List<Command<?>>filter​(Command<?> command) 
    booleanhasNext() 
    protected abstract booleanisGrouped​(Command<?> command) 
    Command<?>next() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.Filter

    -iterator, remove
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      GroupingFilter

      -
      public GroupingFilter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      hasNext

      -
      public boolean hasNext()
      -
      -
      Specified by:
      -
      hasNext in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      hasNext in class Filter
      -
      -
      -
    • -
    • -
      -

      next

      -
      public Command<?> next()
      -
      -
      Specified by:
      -
      next in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      next in class Filter
      -
      -
      -
    • -
    • -
      -

      filter

      -
      protected java.util.List<Command<?>> filter​(Command<?> command)
      -
      -
      Specified by:
      -
      filter in class Filter
      -
      -
      -
    • -
    • -
      -

      isGrouped

      -
      protected abstract boolean isGrouped​(Command<?> command)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/OptimizeFilter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/OptimizeFilter.html deleted file mode 100644 index 0a442b8..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/OptimizeFilter.html +++ /dev/null @@ -1,271 +0,0 @@ - - - - - -OptimizeFilter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class OptimizeFilter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter -
org.xbib.graphics.io.vector.filters.OptimizeFilter
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
public class OptimizeFilter
-extends Filter
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    OptimizeFilter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected java.util.List<Command<?>>filter​(Command<?> command) 
    booleanhasNext() 
    Command<?>next() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.Filter

    -iterator, remove
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      OptimizeFilter

      -
      public OptimizeFilter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      hasNext

      -
      public boolean hasNext()
      -
      -
      Specified by:
      -
      hasNext in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      hasNext in class Filter
      -
      -
      -
    • -
    • -
      -

      next

      -
      public Command<?> next()
      -
      -
      Specified by:
      -
      next in interface java.util.Iterator<Command<?>>
      -
      Overrides:
      -
      next in class Filter
      -
      -
      -
    • -
    • -
      -

      filter

      -
      protected java.util.List<Command<?>> filter​(Command<?> command)
      -
      -
      Specified by:
      -
      filter in class Filter
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.html deleted file mode 100644 index e878f1b..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - -StateChangeGroupingFilter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class StateChangeGroupingFilter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.filters.Filter -
org.xbib.graphics.io.vector.filters.GroupingFilter -
org.xbib.graphics.io.vector.filters.StateChangeGroupingFilter
-
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Iterable<Command<?>>, java.util.Iterator<Command<?>>
-
-
-
public class StateChangeGroupingFilter
-extends GroupingFilter
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    StateChangeGroupingFilter​(java.lang.Iterable<Command<?>> stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected booleanisGrouped​(Command<?> command) 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.GroupingFilter

    -filter, hasNext, next
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.filters.Filter

    -iterator, remove
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -

    Methods inherited from interface java.lang.Iterable

    -forEach, spliterator
    -
    -

    Methods inherited from interface java.util.Iterator

    -forEachRemaining
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      StateChangeGroupingFilter

      -
      public StateChangeGroupingFilter​(java.lang.Iterable<Command<?>> stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-summary.html deleted file mode 100644 index bffcac4..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-summary.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.filters (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.filters

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-tree.html deleted file mode 100644 index 322cfb7..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/filters/package-tree.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.filters Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.filters

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-summary.html deleted file mode 100644 index 927ffff..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-summary.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - -org.xbib.graphics.io.vector (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-tree.html deleted file mode 100644 index 4a41ef1..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/package-tree.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - -org.xbib.graphics.io.vector Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object -
      -
    • org.xbib.graphics.io.vector.Command<T>
    • -
    • java.awt.Graphics -
        -
      • java.awt.Graphics2D -
          -
        • org.xbib.graphics.io.vector.VectorGraphics2D (implements java.lang.Cloneable)
        • -
        -
      • -
      -
    • -
    • org.xbib.graphics.io.vector.GraphicsState (implements java.lang.Cloneable)
    • -
    • org.xbib.graphics.io.vector.PageSize
    • -
    -
  • -
-
-
-

Interface Hierarchy

- -
-
-

Enum Hierarchy

-
    -
  • java.lang.Object -
      -
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.lang.constant.Constable, java.io.Serializable) - -
    • -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/GeneratedPayload.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/GeneratedPayload.html deleted file mode 100644 index 00be0a2..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/GeneratedPayload.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - -GeneratedPayload (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class GeneratedPayload

-
-
java.lang.Object -
java.io.OutputStream -
org.xbib.graphics.io.vector.pdf.Payload -
org.xbib.graphics.io.vector.pdf.GeneratedPayload
-
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
Direct Known Subclasses:
-
SizePayload
-
-
-
public abstract class GeneratedPayload
-extends Payload
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    GeneratedPayload​(boolean stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected abstract byte[]generatePayload() 
    byte[]getBytes() 
    voidwrite​(int b) 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.pdf.Payload

    -addFilter, close, isStream
    -
    -

    Methods inherited from class java.io.OutputStream

    -flush, nullOutputStream, write, write
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      GeneratedPayload

      -
      public GeneratedPayload​(boolean stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getBytes

      -
      public byte[] getBytes() - throws java.io.IOException
      -
      -
      Overrides:
      -
      getBytes in class Payload
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      write

      -
      public void write​(int b) - throws java.io.IOException
      -
      -
      Overrides:
      -
      write in class Payload
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      generatePayload

      -
      protected abstract byte[] generatePayload() - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFGraphics2D.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFGraphics2D.html deleted file mode 100644 index b51ac79..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFGraphics2D.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - -PDFGraphics2D (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class PDFGraphics2D

-
-
java.lang.Object -
java.awt.Graphics -
java.awt.Graphics2D -
org.xbib.graphics.io.vector.VectorGraphics2D -
org.xbib.graphics.io.vector.pdf.PDFGraphics2D
-
-
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Cloneable
-
-
-
public class PDFGraphics2D
-extends VectorGraphics2D
-
Graphics2D implementation that saves all operations to a string - in the Portable Document Format (PDF).
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PDFGraphics2D

      -
      public PDFGraphics2D​(double x, -double y, -double width, -double height)
      -
      Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to PDF data. The document dimensions must be specified as - parameters.
      -
      -
      Parameters:
      -
      x - Left offset.
      -
      y - Top offset
      -
      width - Width.
      -
      height - Height.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFObject.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFObject.html deleted file mode 100644 index 4bfb061..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFObject.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - -PDFObject (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class PDFObject

-
-
java.lang.Object -
org.xbib.graphics.io.vector.pdf.PDFObject
-
-
-
-
Direct Known Subclasses:
-
Resources
-
-
-
public class PDFObject
-extends java.lang.Object
-
-
-
    - -
  • -
    -

    Field Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Fields
    Modifier and TypeFieldDescription
    java.util.Map<java.lang.String,​java.lang.Object>dict 
    intid 
    Payloadpayload 
    intversion 
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    PDFObject​(int id, -int version, -java.util.Map<java.lang.String,​java.lang.Object> dict, -Payload payload) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      id

      -
      public final int id
      -
      -
    • -
    • -
      -

      version

      -
      public final int version
      -
      -
    • -
    • -
      -

      dict

      -
      public final java.util.Map<java.lang.String,​java.lang.Object> dict
      -
      -
    • -
    • -
      -

      payload

      -
      public final Payload payload
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PDFObject

      -
      public PDFObject​(int id, -int version, -java.util.Map<java.lang.String,​java.lang.Object> dict, -Payload payload)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessor.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessor.html deleted file mode 100644 index e25b4c2..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessor.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - -PDFProcessor (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class PDFProcessor

-
-
java.lang.Object -
org.xbib.graphics.io.vector.pdf.PDFProcessor
-
-
-
-
All Implemented Interfaces:
-
Processor
-
-
-
public class PDFProcessor
-extends java.lang.Object
-implements Processor
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    PDFProcessor() 
    PDFProcessor​(boolean compressed) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    ProcessorResultprocess​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PDFProcessor

      -
      public PDFProcessor()
      -
      -
    • -
    • -
      -

      PDFProcessor

      -
      public PDFProcessor​(boolean compressed)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      process

      -
      public ProcessorResult process​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) - throws java.io.IOException
      -
      -
      Specified by:
      -
      process in interface Processor
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessorResult.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessorResult.html deleted file mode 100644 index d76c884..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/PDFProcessorResult.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - -PDFProcessorResult (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class PDFProcessorResult

-
-
java.lang.Object -
org.xbib.graphics.io.vector.pdf.PDFProcessorResult
-
-
-
-
All Implemented Interfaces:
-
ProcessorResult
-
-
-
public class PDFProcessorResult
-extends java.lang.Object
-implements ProcessorResult
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    PDFProcessorResult​(PageSize pageSize) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidhandle​(Command<?> command) 
    voidsetCompressed​(boolean compressed) 
    static java.lang.StringtoString​(PDFObject obj) 
    voidwrite​(java.io.OutputStream out) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PDFProcessorResult

      -
      public PDFProcessorResult​(PageSize pageSize) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      setCompressed

      -
      public void setCompressed​(boolean compressed)
      -
      -
    • -
    • -
      -

      toString

      -
      public static java.lang.String toString​(PDFObject obj) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      write

      -
      public void write​(java.io.OutputStream out) - throws java.io.IOException
      -
      -
      Specified by:
      -
      write in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      handle

      -
      public void handle​(Command<?> command) - throws java.io.IOException
      -
      -
      Specified by:
      -
      handle in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close() - throws java.io.IOException
      -
      -
      Specified by:
      -
      close in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Payload.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Payload.html deleted file mode 100644 index 03891bb..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Payload.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - - -Payload (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- - -
java.lang.Object -
java.io.OutputStream -
org.xbib.graphics.io.vector.pdf.Payload
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
Direct Known Subclasses:
-
GeneratedPayload
-
-
-
public class Payload
-extends java.io.OutputStream
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Payload​(boolean stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidaddFilter​(java.lang.Class<? extends java.io.FilterOutputStream> filterClass) 
    voidclose() 
    byte[]getBytes() 
    booleanisStream() 
    voidwrite​(int b) 
    -
    -
    -
    -

    Methods inherited from class java.io.OutputStream

    -flush, nullOutputStream, write, write
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Payload

      -
      public Payload​(boolean stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getBytes

      -
      public byte[] getBytes() - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      isStream

      -
      public boolean isStream()
      -
      -
    • -
    • -
      -

      write

      -
      public void write​(int b) - throws java.io.IOException
      -
      -
      Specified by:
      -
      write in class java.io.OutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close() - throws java.io.IOException
      -
      -
      Specified by:
      -
      close in interface java.lang.AutoCloseable
      -
      Specified by:
      -
      close in interface java.io.Closeable
      -
      Overrides:
      -
      close in class java.io.OutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      addFilter

      -
      public void addFilter​(java.lang.Class<? extends java.io.FilterOutputStream> filterClass) - throws java.lang.NoSuchMethodException, -java.lang.IllegalAccessException, -java.lang.reflect.InvocationTargetException, -java.lang.InstantiationException
      -
      -
      Throws:
      -
      java.lang.NoSuchMethodException
      -
      java.lang.IllegalAccessException
      -
      java.lang.reflect.InvocationTargetException
      -
      java.lang.InstantiationException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Resources.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Resources.html deleted file mode 100644 index 82d851d..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/Resources.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - -Resources (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class Resources

-
-
java.lang.Object -
org.xbib.graphics.io.vector.pdf.PDFObject -
org.xbib.graphics.io.vector.pdf.Resources
-
-
-
-
-
public class Resources
-extends PDFObject
-
-
-
    - -
  • -
    -

    Field Summary

    -
    -

    Fields inherited from class org.xbib.graphics.io.vector.pdf.PDFObject

    -dict, id, payload, version
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Resources​(int id, -int version) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.lang.StringgetId​(java.awt.Font font) 
    java.lang.StringgetId​(java.lang.Double transparency) 
    java.lang.StringgetId​(PDFObject image) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Resources

      -
      public Resources​(int id, -int version)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getId

      -
      public java.lang.String getId​(java.awt.Font font)
      -
      -
    • -
    • -
      -

      getId

      -
      public java.lang.String getId​(PDFObject image)
      -
      -
    • -
    • -
      -

      getId

      -
      public java.lang.String getId​(java.lang.Double transparency)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/SizePayload.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/SizePayload.html deleted file mode 100644 index 3515bc4..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/SizePayload.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - -SizePayload (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SizePayload

-
-
java.lang.Object -
java.io.OutputStream - -
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class SizePayload
-extends GeneratedPayload
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SizePayload​(PDFObject object, -java.lang.String charset, -boolean stream) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    protected byte[]generatePayload() 
    -
    -
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.pdf.GeneratedPayload

    -getBytes, write
    -
    -

    Methods inherited from class org.xbib.graphics.io.vector.pdf.Payload

    -addFilter, close, isStream
    -
    -

    Methods inherited from class java.io.OutputStream

    -flush, nullOutputStream, write, write
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SizePayload

      -
      public SizePayload​(PDFObject object, -java.lang.String charset, -boolean stream)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      generatePayload

      -
      protected byte[] generatePayload() - throws java.io.IOException
      -
      -
      Specified by:
      -
      generatePayload in class GeneratedPayload
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-summary.html deleted file mode 100644 index 65c0bb6..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-summary.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.pdf (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.pdf

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-tree.html deleted file mode 100644 index 5271000..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/pdf/package-tree.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.pdf Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.pdf

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object -
      -
    • java.awt.Graphics -
        -
      • java.awt.Graphics2D - -
      • -
      -
    • -
    • java.io.OutputStream (implements java.io.Closeable, java.io.Flushable) - -
    • -
    • org.xbib.graphics.io.vector.pdf.PDFObject -
        -
      • org.xbib.graphics.io.vector.pdf.Resources
      • -
      -
    • -
    • org.xbib.graphics.io.vector.pdf.PDFProcessor (implements org.xbib.graphics.io.vector.Processor)
    • -
    • org.xbib.graphics.io.vector.pdf.PDFProcessorResult (implements org.xbib.graphics.io.vector.ProcessorResult)
    • -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGGraphics2D.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGGraphics2D.html deleted file mode 100644 index 4cf5b6d..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGGraphics2D.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - -SVGGraphics2D (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SVGGraphics2D

-
-
java.lang.Object -
java.awt.Graphics -
java.awt.Graphics2D -
org.xbib.graphics.io.vector.VectorGraphics2D -
org.xbib.graphics.io.vector.svg.SVGGraphics2D
-
-
-
-
-
-
-
All Implemented Interfaces:
-
java.lang.Cloneable
-
-
-
public class SVGGraphics2D
-extends VectorGraphics2D
-
Graphics2D implementation that saves all operations to a string - in the Scaled Vector Graphics (SVG) format.
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SVGGraphics2D

      -
      public SVGGraphics2D​(double x, -double y, -double width, -double height)
      -
      Initializes a new VectorGraphics2D pipeline for translating Graphics2D - commands to SVG data. The document dimensions must be specified as - parameters.
      -
      -
      Parameters:
      -
      x - Left offset.
      -
      y - Top offset
      -
      width - Width.
      -
      height - Height.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessor.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessor.html deleted file mode 100644 index 9b211b0..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessor.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - -SVGProcessor (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SVGProcessor

-
-
java.lang.Object -
org.xbib.graphics.io.vector.svg.SVGProcessor
-
-
-
-
All Implemented Interfaces:
-
Processor
-
-
-
public class SVGProcessor
-extends java.lang.Object
-implements Processor
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SVGProcessor() 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    ProcessorResultprocess​(java.lang.Iterable<Command<?>> commands, -PageSize pageSize) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SVGProcessor

      -
      public SVGProcessor()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    - -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessorResult.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessorResult.html deleted file mode 100644 index 6c766cd..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/SVGProcessorResult.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - -SVGProcessorResult (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class SVGProcessorResult

-
-
java.lang.Object -
org.xbib.graphics.io.vector.svg.SVGProcessorResult
-
-
-
-
All Implemented Interfaces:
-
ProcessorResult
-
-
-
public class SVGProcessorResult
-extends java.lang.Object
-implements ProcessorResult
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    SVGProcessorResult​(PageSize pageSize) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidhandle​(Command<?> command) 
    java.lang.StringtoString() 
    voidwrite​(java.io.OutputStream out) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      SVGProcessorResult

      -
      public SVGProcessorResult​(PageSize pageSize)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public void write​(java.io.OutputStream out) - throws java.io.IOException
      -
      -
      Specified by:
      -
      write in interface ProcessorResult
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close()
      -
      -
      Specified by:
      -
      close in interface ProcessorResult
      -
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class java.lang.Object
      -
      -
      -
    • -
    • -
      -

      handle

      -
      public void handle​(Command<?> command)
      -
      -
      Specified by:
      -
      handle in interface ProcessorResult
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-summary.html deleted file mode 100644 index 8c70de0..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-summary.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.svg (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.svg

-
-
-
    -
  • -
    - - - - - - - - - - - - - - - - - - - - - - -
    Class Summary
    ClassDescription
    SVGGraphics2D -
    Graphics2D implementation that saves all operations to a string - in the Scaled Vector Graphics (SVG) format.
    -
    SVGProcessor 
    SVGProcessorResult 
    -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-tree.html deleted file mode 100644 index 7a46cbb..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/svg/package-tree.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.svg Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.svg

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object - -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ASCII85EncodeStream.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ASCII85EncodeStream.html deleted file mode 100644 index 5f84e4f..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ASCII85EncodeStream.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - -ASCII85EncodeStream (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class ASCII85EncodeStream

-
-
java.lang.Object -
java.io.OutputStream -
java.io.FilterOutputStream -
org.xbib.graphics.io.vector.util.ASCII85EncodeStream
-
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class ASCII85EncodeStream
-extends java.io.FilterOutputStream
-
-
-
    - -
  • -
    -

    Field Summary

    -
    -

    Fields inherited from class java.io.FilterOutputStream

    -out
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    ASCII85EncodeStream​(java.io.OutputStream out) 
    ASCII85EncodeStream​(java.io.OutputStream out, -java.lang.String prefix, -java.lang.String suffix) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidwrite​(int b) 
    -
    -
    -
    -

    Methods inherited from class java.io.FilterOutputStream

    -flush, write, write
    -
    -

    Methods inherited from class java.io.OutputStream

    -nullOutputStream
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      ASCII85EncodeStream

      -
      public ASCII85EncodeStream​(java.io.OutputStream out, -java.lang.String prefix, -java.lang.String suffix)
      -
      -
    • -
    • -
      -

      ASCII85EncodeStream

      -
      public ASCII85EncodeStream​(java.io.OutputStream out)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public void write​(int b) - throws java.io.IOException
      -
      -
      Overrides:
      -
      write in class java.io.FilterOutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close() - throws java.io.IOException
      -
      -
      Specified by:
      -
      close in interface java.lang.AutoCloseable
      -
      Specified by:
      -
      close in interface java.io.Closeable
      -
      Overrides:
      -
      close in class java.io.FilterOutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/AlphaToMaskOp.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/AlphaToMaskOp.html deleted file mode 100644 index 30c6c27..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/AlphaToMaskOp.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - -AlphaToMaskOp (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class AlphaToMaskOp

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.AlphaToMaskOp
-
-
-
-
All Implemented Interfaces:
-
java.awt.image.BufferedImageOp
-
-
-
public class AlphaToMaskOp
-extends java.lang.Object
-implements java.awt.image.BufferedImageOp
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    AlphaToMaskOp() 
    AlphaToMaskOp​(boolean inverted) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.awt.image.BufferedImagecreateCompatibleDestImage​(java.awt.image.BufferedImage src, -java.awt.image.ColorModel destCM) 
    java.awt.image.BufferedImagefilter​(java.awt.image.BufferedImage src, -java.awt.image.BufferedImage dest) 
    java.awt.geom.Rectangle2DgetBounds2D​(java.awt.image.BufferedImage src) 
    java.awt.geom.Point2DgetPoint2D​(java.awt.geom.Point2D srcPt, -java.awt.geom.Point2D dstPt) 
    java.awt.RenderingHintsgetRenderingHints() 
    booleanisInverted() 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      AlphaToMaskOp

      -
      public AlphaToMaskOp​(boolean inverted)
      -
      -
    • -
    • -
      -

      AlphaToMaskOp

      -
      public AlphaToMaskOp()
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      isInverted

      -
      public boolean isInverted()
      -
      -
    • -
    • -
      -

      filter

      -
      public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src, -java.awt.image.BufferedImage dest)
      -
      -
      Specified by:
      -
      filter in interface java.awt.image.BufferedImageOp
      -
      -
      -
    • -
    • -
      -

      getBounds2D

      -
      public java.awt.geom.Rectangle2D getBounds2D​(java.awt.image.BufferedImage src)
      -
      -
      Specified by:
      -
      getBounds2D in interface java.awt.image.BufferedImageOp
      -
      -
      -
    • -
    • -
      -

      createCompatibleDestImage

      -
      public java.awt.image.BufferedImage createCompatibleDestImage​(java.awt.image.BufferedImage src, -java.awt.image.ColorModel destCM)
      -
      -
      Specified by:
      -
      createCompatibleDestImage in interface java.awt.image.BufferedImageOp
      -
      -
      -
    • -
    • -
      -

      getPoint2D

      -
      public java.awt.geom.Point2D getPoint2D​(java.awt.geom.Point2D srcPt, -java.awt.geom.Point2D dstPt)
      -
      -
      Specified by:
      -
      getPoint2D in interface java.awt.image.BufferedImageOp
      -
      -
      -
    • -
    • -
      -

      getRenderingHints

      -
      public java.awt.RenderingHints getRenderingHints()
      -
      -
      Specified by:
      -
      getRenderingHints in interface java.awt.image.BufferedImageOp
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/Base64EncodeStream.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/Base64EncodeStream.html deleted file mode 100644 index 3888609..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/Base64EncodeStream.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - -Base64EncodeStream (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class Base64EncodeStream

-
-
java.lang.Object -
java.io.OutputStream -
java.io.FilterOutputStream -
org.xbib.graphics.io.vector.util.Base64EncodeStream
-
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class Base64EncodeStream
-extends java.io.FilterOutputStream
-
-
-
    - -
  • -
    -

    Field Summary

    -
    -

    Fields inherited from class java.io.FilterOutputStream

    -out
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Base64EncodeStream​(java.io.OutputStream out) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidwrite​(int b) 
    -
    -
    -
    -

    Methods inherited from class java.io.FilterOutputStream

    -flush, write, write
    -
    -

    Methods inherited from class java.io.OutputStream

    -nullOutputStream
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Base64EncodeStream

      -
      public Base64EncodeStream​(java.io.OutputStream out)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public void write​(int b) - throws java.io.IOException
      -
      -
      Overrides:
      -
      write in class java.io.FilterOutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close() - throws java.io.IOException
      -
      -
      Specified by:
      -
      close in interface java.lang.AutoCloseable
      -
      Specified by:
      -
      close in interface java.io.Closeable
      -
      Overrides:
      -
      close in class java.io.FilterOutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/DataUtils.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/DataUtils.html deleted file mode 100644 index d1dc714..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/DataUtils.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - -DataUtils (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class DataUtils

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.DataUtils
-
-
-
-
public abstract class DataUtils
-extends java.lang.Object
-
Abstract class that contains utility functions for working with data - collections like maps or lists.
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - -
    Constructors
    ModifierConstructorDescription
    protected DataUtils() -
    Default constructor that prevents creation of class.
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    static java.util.List<java.lang.Double>asList​(double[] elements) -
    Converts an array of double numbers to a list of Doubles.
    -
    static java.util.List<java.lang.Float>asList​(float[] elements) -
    Converts an array of float numbers to a list of Floats.
    -
    static java.lang.Stringformat​(java.lang.Number number) -
    Returns a formatted string of the specified number.
    -
    static java.lang.Stringformat​(java.lang.Object obj) -
    Returns a formatted string of the specified object.
    -
    static java.lang.Stringjoin​(java.lang.String separator, -double[] elements) -
    Returns a string containing all double numbers concatenated by a - specified separator.
    -
    static java.lang.Stringjoin​(java.lang.String separator, -float[] elements) -
    Returns a string containing all float numbers concatenated by a - specified separator.
    -
    static java.lang.Stringjoin​(java.lang.String separator, -java.lang.Object[] elements) -
    Returns a string containing all elements concatenated by a specified - separator.
    -
    static java.lang.Stringjoin​(java.lang.String separator, -java.util.List<?> elements) -
    Returns a string containing all elements concatenated by a specified - separator.
    -
    static <K,​ -V> java.util.Map<K,​V>map​(K[] keys, -V[] values) -
    Creates a mapping from two arrays, one with keys, one with values.
    -
    static intmax​(int... values) -
    Returns the largest of all specified values.
    -
    static java.lang.StringstripTrailing​(java.lang.String s, -java.lang.String substr) -
    Removes the specified trailing pattern from a string.
    -
    static voidtransfer​(java.io.InputStream in, -java.io.OutputStream out, -int bufferSize) -
    Copies data from an input stream to an output stream using a buffer of - specified size.
    -
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      DataUtils

      -
      protected DataUtils()
      -
      Default constructor that prevents creation of class.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      map

      -
      public static <K,​ -V> java.util.Map<K,​V> map​(K[] keys, -V[] values)
      -
      Creates a mapping from two arrays, one with keys, one with values.
      -
      -
      Type Parameters:
      -
      K - Data type of the keys.
      -
      V - Data type of the values.
      -
      Parameters:
      -
      keys - Array containing the keys.
      -
      values - Array containing the values.
      -
      Returns:
      -
      Map with keys and values from the specified arrays.
      -
      -
      -
    • -
    • -
      -

      join

      -
      public static java.lang.String join​(java.lang.String separator, -java.util.List<?> elements)
      -
      Returns a string containing all elements concatenated by a specified - separator.
      -
      -
      Parameters:
      -
      separator - Separator string.
      -
      elements - List of elements that should be concatenated.
      -
      Returns:
      -
      a concatenated string.
      -
      -
      -
    • -
    • -
      -

      join

      -
      public static java.lang.String join​(java.lang.String separator, -java.lang.Object[] elements)
      -
      Returns a string containing all elements concatenated by a specified - separator.
      -
      -
      Parameters:
      -
      separator - Separator string.
      -
      elements - Array of elements that should be concatenated.
      -
      Returns:
      -
      a concatenated string.
      -
      -
      -
    • -
    • -
      -

      join

      -
      public static java.lang.String join​(java.lang.String separator, -double[] elements)
      -
      Returns a string containing all double numbers concatenated by a - specified separator.
      -
      -
      Parameters:
      -
      separator - Separator string.
      -
      elements - Array of double numbers that should be concatenated.
      -
      Returns:
      -
      a concatenated string.
      -
      -
      -
    • -
    • -
      -

      join

      -
      public static java.lang.String join​(java.lang.String separator, -float[] elements)
      -
      Returns a string containing all float numbers concatenated by a - specified separator.
      -
      -
      Parameters:
      -
      separator - Separator string.
      -
      elements - Array of float numbers that should be concatenated.
      -
      Returns:
      -
      a concatenated string.
      -
      -
      -
    • -
    • -
      -

      max

      -
      public static int max​(int... values)
      -
      Returns the largest of all specified values.
      -
      -
      Parameters:
      -
      values - Several integer values.
      -
      Returns:
      -
      largest value.
      -
      -
      -
    • -
    • -
      -

      transfer

      -
      public static void transfer​(java.io.InputStream in, -java.io.OutputStream out, -int bufferSize) - throws java.io.IOException
      -
      Copies data from an input stream to an output stream using a buffer of - specified size.
      -
      -
      Parameters:
      -
      in - Input stream.
      -
      out - Output stream.
      -
      bufferSize - Size of the copy buffer.
      -
      Throws:
      -
      java.io.IOException - when an error occurs while copying.
      -
      -
      -
    • -
    • -
      -

      format

      -
      public static java.lang.String format​(java.lang.Number number)
      -
      Returns a formatted string of the specified number. All trailing zeroes - or decimal points will be stripped.
      -
      -
      Parameters:
      -
      number - Number to convert to a string.
      -
      Returns:
      -
      A formatted string.
      -
      -
      -
    • -
    • -
      -

      format

      -
      public static java.lang.String format​(java.lang.Object obj)
      -
      Returns a formatted string of the specified object.
      -
      -
      Parameters:
      -
      obj - Object to convert to a string.
      -
      Returns:
      -
      A formatted string.
      -
      -
      -
    • -
    • -
      -

      asList

      -
      public static java.util.List<java.lang.Float> asList​(float[] elements)
      -
      Converts an array of float numbers to a list of Floats. - The list will be empty if the array is empty or null.
      -
      -
      Parameters:
      -
      elements - Array of float numbers.
      -
      Returns:
      -
      A list with all numbers as Float.
      -
      -
      -
    • -
    • -
      -

      asList

      -
      public static java.util.List<java.lang.Double> asList​(double[] elements)
      -
      Converts an array of double numbers to a list of Doubles. - The list will be empty if the array is empty or null.
      -
      -
      Parameters:
      -
      elements - Array of double numbers.
      -
      Returns:
      -
      A list with all numbers as Double.
      -
      -
      -
    • -
    • -
      -

      stripTrailing

      -
      public static java.lang.String stripTrailing​(java.lang.String s, -java.lang.String substr)
      -
      Removes the specified trailing pattern from a string.
      -
      -
      Parameters:
      -
      s - string.
      -
      substr - trailing pattern.
      -
      Returns:
      -
      A string without the trailing pattern.
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FlateEncodeStream.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FlateEncodeStream.html deleted file mode 100644 index 57b9668..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FlateEncodeStream.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - -FlateEncodeStream (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class FlateEncodeStream

-
-
java.lang.Object -
java.io.OutputStream -
java.io.FilterOutputStream -
java.util.zip.DeflaterOutputStream -
org.xbib.graphics.io.vector.util.FlateEncodeStream
-
-
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class FlateEncodeStream
-extends java.util.zip.DeflaterOutputStream
-
-
-
    - -
  • -
    -

    Field Summary

    -
    -

    Fields inherited from class java.util.zip.DeflaterOutputStream

    -buf, def
    -
    -

    Fields inherited from class java.io.FilterOutputStream

    -out
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    FlateEncodeStream​(java.io.OutputStream out) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class java.util.zip.DeflaterOutputStream

    -close, deflate, finish, flush, write, write
    -
    -

    Methods inherited from class java.io.FilterOutputStream

    -write
    -
    -

    Methods inherited from class java.io.OutputStream

    -nullOutputStream
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      FlateEncodeStream

      -
      public FlateEncodeStream​(java.io.OutputStream out)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FormattingWriter.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FormattingWriter.html deleted file mode 100644 index 0c2e018..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/FormattingWriter.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - -FormattingWriter (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class FormattingWriter

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.FormattingWriter
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class FormattingWriter
-extends java.lang.Object
-implements java.io.Closeable, java.io.Flushable
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    FormattingWriter​(java.io.OutputStream out, -java.lang.String encoding, -java.lang.String eol) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidclose() 
    voidflush() 
    FormattingWriterformat​(java.lang.String format, -java.lang.Object... args) 
    longtell() 
    FormattingWriterwrite​(java.lang.Number number) 
    FormattingWriterwrite​(java.lang.String string) 
    FormattingWriterwriteln() 
    FormattingWriterwriteln​(java.lang.Number number) 
    FormattingWriterwriteln​(java.lang.String string) 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      FormattingWriter

      -
      public FormattingWriter​(java.io.OutputStream out, -java.lang.String encoding, -java.lang.String eol)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public FormattingWriter write​(java.lang.String string) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      write

      -
      public FormattingWriter write​(java.lang.Number number) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      writeln

      -
      public FormattingWriter writeln() - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      writeln

      -
      public FormattingWriter writeln​(java.lang.String string) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      writeln

      -
      public FormattingWriter writeln​(java.lang.Number number) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      format

      -
      public FormattingWriter format​(java.lang.String format, -java.lang.Object... args) - throws java.io.IOException
      -
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      flush

      -
      public void flush() - throws java.io.IOException
      -
      -
      Specified by:
      -
      flush in interface java.io.Flushable
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      close

      -
      public void close() - throws java.io.IOException
      -
      -
      Specified by:
      -
      close in interface java.lang.AutoCloseable
      -
      Specified by:
      -
      close in interface java.io.Closeable
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    • -
      -

      tell

      -
      public long tell()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/GraphicsUtils.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/GraphicsUtils.html deleted file mode 100644 index 935430b..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/GraphicsUtils.html +++ /dev/null @@ -1,375 +0,0 @@ - - - - - -GraphicsUtils (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class GraphicsUtils

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.GraphicsUtils
-
-
-
-
public abstract class GraphicsUtils
-extends java.lang.Object
-
Abstract class that contains utility functions for working with graphics. - For example, this includes font handling.
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - -
    Constructors
    ModifierConstructorDescription
    protected GraphicsUtils() -
    Default constructor that prevents creation of class.
    -
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    static java.awt.Shapeclone​(java.awt.Shape shape) 
    static booleanequals​(java.awt.Shape shapeA, -java.awt.Shape shapeB) 
    static java.awt.image.BufferedImagegetAlphaImage​(java.awt.image.BufferedImage image) 
    static java.awt.FontgetPhysicalFont​(java.awt.Font logicalFont) 
    static java.awt.FontgetPhysicalFont​(java.awt.Font logicalFont, -java.lang.String testText) -
    Try to guess physical font from the properties of a logical font, like - "Dialog", "Serif", "Monospaced" etc.
    -
    static booleanhasAlpha​(java.awt.Image image) -
    This method returns true if the specified image has the - possibility to store transparent pixels.
    -
    static java.awt.image.BufferedImagetoBufferedImage​(java.awt.Image image) -
    This method returns a buffered image with the contents of an image.
    -
    static java.awt.image.BufferedImagetoBufferedImage​(java.awt.image.RenderedImage image) -
    Converts an arbitrary image to a BufferedImage.
    -
    static booleanusesAlpha​(java.awt.Image image) -
    This method returns true if the specified image has at least one - pixel that is not fully opaque.
    -
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      GraphicsUtils

      -
      protected GraphicsUtils()
      -
      Default constructor that prevents creation of class.
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      hasAlpha

      -
      public static boolean hasAlpha​(java.awt.Image image)
      -
      This method returns true if the specified image has the - possibility to store transparent pixels. - Inspired by http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html
      -
      -
      Parameters:
      -
      image - Image that should be checked for alpha channel.
      -
      Returns:
      -
      true if the specified image can have transparent pixels, - false otherwise
      -
      -
      -
    • -
    • -
      -

      usesAlpha

      -
      public static boolean usesAlpha​(java.awt.Image image)
      -
      This method returns true if the specified image has at least one - pixel that is not fully opaque.
      -
      -
      Parameters:
      -
      image - Image that should be checked for non-opaque pixels.
      -
      Returns:
      -
      true if the specified image has transparent pixels, - false otherwise
      -
      -
      -
    • -
    • -
      -

      toBufferedImage

      -
      public static java.awt.image.BufferedImage toBufferedImage​(java.awt.image.RenderedImage image)
      -
      Converts an arbitrary image to a BufferedImage.
      -
      -
      Parameters:
      -
      image - Image that should be converted.
      -
      Returns:
      -
      a buffered image containing the image pixels, or the original - instance if the image already was of type BufferedImage.
      -
      -
      -
    • -
    • -
      -

      toBufferedImage

      -
      public static java.awt.image.BufferedImage toBufferedImage​(java.awt.Image image)
      -
      This method returns a buffered image with the contents of an image. - Taken from http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html
      -
      -
      Parameters:
      -
      image - Image to be converted
      -
      Returns:
      -
      a buffered image with the contents of the specified image
      -
      -
      -
    • -
    • -
      -

      clone

      -
      public static java.awt.Shape clone​(java.awt.Shape shape)
      -
      -
    • -
    • -
      -

      getPhysicalFont

      -
      public static java.awt.Font getPhysicalFont​(java.awt.Font logicalFont, -java.lang.String testText)
      -
      Try to guess physical font from the properties of a logical font, like - "Dialog", "Serif", "Monospaced" etc.
      -
      -
      Parameters:
      -
      logicalFont - Logical font object.
      -
      testText - Text used to determine font properties.
      -
      Returns:
      -
      An object of the first matching physical font. The original font - object is returned if it was a physical font or no font matched.
      -
      -
      -
    • -
    • -
      -

      getPhysicalFont

      -
      public static java.awt.Font getPhysicalFont​(java.awt.Font logicalFont)
      -
      -
    • -
    • -
      -

      getAlphaImage

      -
      public static java.awt.image.BufferedImage getAlphaImage​(java.awt.image.BufferedImage image)
      -
      -
    • -
    • -
      -

      equals

      -
      public static boolean equals​(java.awt.Shape shapeA, -java.awt.Shape shapeB)
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.Interleaving.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.Interleaving.html deleted file mode 100644 index e4f783e..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.Interleaving.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - -ImageDataStream.Interleaving (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Enum ImageDataStream.Interleaving

-
-
java.lang.Object -
java.lang.Enum<ImageDataStream.Interleaving> -
org.xbib.graphics.io.vector.util.ImageDataStream.Interleaving
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Serializable, java.lang.Comparable<ImageDataStream.Interleaving>, java.lang.constant.Constable
-
-
-
Enclosing class:
-
ImageDataStream
-
-
-
public static enum ImageDataStream.Interleaving
-extends java.lang.Enum<ImageDataStream.Interleaving>
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    -

    Nested classes/interfaces inherited from class java.lang.Enum

    -java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    -
    -
  • - -
  • -
    -

    Enum Constant Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Enum Constants
    Enum ConstantDescription
    ALPHA_ONLY 
    ROW 
    SAMPLE 
    WITHOUT_ALPHA 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    static ImageDataStream.InterleavingvalueOf​(java.lang.String name) -
    Returns the enum constant of this type with the specified name.
    -
    static ImageDataStream.Interleaving[]values() -
    Returns an array containing the constants of this enum type, in -the order they are declared.
    -
    -
    -
    -
    -

    Methods inherited from class java.lang.Enum

    -clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
    -
    -

    Methods inherited from class java.lang.Object

    -getClass, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Enum Constant Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      values

      -
      public static ImageDataStream.Interleaving[] values()
      -
      Returns an array containing the constants of this enum type, in -the order they are declared.
      -
      -
      Returns:
      -
      an array containing the constants of this enum type, in the order they are declared
      -
      -
      -
    • -
    • -
      -

      valueOf

      -
      public static ImageDataStream.Interleaving valueOf​(java.lang.String name)
      -
      Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.)
      -
      -
      Parameters:
      -
      name - the name of the enum constant to be returned.
      -
      Returns:
      -
      the enum constant with the specified name
      -
      Throws:
      -
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      -
      java.lang.NullPointerException - if the argument is null
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.html deleted file mode 100644 index 07b0551..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/ImageDataStream.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - -ImageDataStream (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class ImageDataStream

-
-
java.lang.Object -
java.io.InputStream -
org.xbib.graphics.io.vector.util.ImageDataStream
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.lang.AutoCloseable
-
-
-
public class ImageDataStream
-extends java.io.InputStream
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    - - - - - - - - - - - - - - - - -
    Nested Classes
    Modifier and TypeClassDescription
    static class ImageDataStream.Interleaving 
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    ImageDataStream​(java.awt.image.BufferedImage image, -ImageDataStream.Interleaving interleaving) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.awt.image.BufferedImagegetImage() 
    ImageDataStream.InterleavinggetInterleaving() 
    intread() 
    -
    -
    -
    -

    Methods inherited from class java.io.InputStream

    -available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    - -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getImage

      -
      public java.awt.image.BufferedImage getImage()
      -
      -
    • -
    • -
      -

      getInterleaving

      -
      public ImageDataStream.Interleaving getInterleaving()
      -
      -
    • -
    • -
      -

      read

      -
      public int read() - throws java.io.IOException
      -
      -
      Specified by:
      -
      read in class java.io.InputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/LineWrapOutputStream.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/LineWrapOutputStream.html deleted file mode 100644 index 534ab23..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/LineWrapOutputStream.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - -LineWrapOutputStream (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class LineWrapOutputStream

-
-
java.lang.Object -
java.io.OutputStream -
java.io.FilterOutputStream -
org.xbib.graphics.io.vector.util.LineWrapOutputStream
-
-
-
-
-
-
All Implemented Interfaces:
-
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
-
public class LineWrapOutputStream
-extends java.io.FilterOutputStream
-
-
-
    - -
  • -
    -

    Field Summary

    -
    - - - - - - - - - - - - - - - - -
    Fields
    Modifier and TypeFieldDescription
    static java.lang.StringSTANDARD_EOL 
    -
    -
    -

    Fields inherited from class java.io.FilterOutputStream

    -out
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    LineWrapOutputStream​(java.io.OutputStream sink, -int lineWidth) 
    LineWrapOutputStream​(java.io.OutputStream sink, -int lineWidth, -java.lang.String eol) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    voidwrite​(int b) 
    -
    -
    -
    -

    Methods inherited from class java.io.FilterOutputStream

    -close, flush, write, write
    -
    -

    Methods inherited from class java.io.OutputStream

    -nullOutputStream
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      STANDARD_EOL

      -
      public static final java.lang.String STANDARD_EOL
      -
      -
      See Also:
      -
      Constant Field Values
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      LineWrapOutputStream

      -
      public LineWrapOutputStream​(java.io.OutputStream sink, -int lineWidth, -java.lang.String eol)
      -
      -
    • -
    • -
      -

      LineWrapOutputStream

      -
      public LineWrapOutputStream​(java.io.OutputStream sink, -int lineWidth)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      write

      -
      public void write​(int b) - throws java.io.IOException
      -
      -
      Overrides:
      -
      write in class java.io.FilterOutputStream
      -
      Throws:
      -
      java.io.IOException
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Key.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Key.html deleted file mode 100644 index aee65f0..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Key.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - -VectorHints.Key (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class VectorHints.Key

-
-
java.lang.Object -
java.awt.RenderingHints.Key -
org.xbib.graphics.io.vector.util.VectorHints.Key
-
-
-
-
-
Enclosing class:
-
VectorHints
-
-
-
public static class VectorHints.Key
-extends java.awt.RenderingHints.Key
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Key​(int privateKey, -java.lang.String description) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    intgetIndex() 
    booleanisCompatibleValue​(java.lang.Object val) 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class java.awt.RenderingHints.Key

    -equals, hashCode, intKey
    -
    -

    Methods inherited from class java.lang.Object

    -clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Key

      -
      public Key​(int privateKey, -java.lang.String description)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      getIndex

      -
      public int getIndex()
      -
      -
    • -
    • -
      -

      isCompatibleValue

      -
      public boolean isCompatibleValue​(java.lang.Object val)
      -
      -
      Specified by:
      -
      isCompatibleValue in class java.awt.RenderingHints.Key
      -
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class java.lang.Object
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Value.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Value.html deleted file mode 100644 index f187cab..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.Value.html +++ /dev/null @@ -1,263 +0,0 @@ - - - - - -VectorHints.Value (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class VectorHints.Value

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.VectorHints.Value
-
-
-
-
Enclosing class:
-
VectorHints
-
-
-
public static class VectorHints.Value
-extends java.lang.Object
-
-
-
    - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - -
    Constructors
    ConstructorDescription
    Value​(VectorHints.Key key, -int index, -java.lang.String description) 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Modifier and TypeMethodDescription
    java.lang.StringgetId() 
    intgetIndex() 
    booleanisCompatibleKey​(java.awt.RenderingHints.Key key) 
    java.lang.StringtoString() 
    -
    -
    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      Value

      -
      public Value​(VectorHints.Key key, -int index, -java.lang.String description)
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      isCompatibleKey

      -
      public boolean isCompatibleKey​(java.awt.RenderingHints.Key key)
      -
      -
    • -
    • -
      -

      getIndex

      -
      public int getIndex()
      -
      -
    • -
    • -
      -

      getId

      -
      public java.lang.String getId()
      -
      -
    • -
    • -
      -

      toString

      -
      public java.lang.String toString()
      -
      -
      Overrides:
      -
      toString in class java.lang.Object
      -
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.html deleted file mode 100644 index 488799b..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/VectorHints.html +++ /dev/null @@ -1,314 +0,0 @@ - - - - - -VectorHints (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
- - -

Class VectorHints

-
-
java.lang.Object -
org.xbib.graphics.io.vector.util.VectorHints
-
-
-
-
public abstract class VectorHints
-extends java.lang.Object
-
-
-
    - -
  • -
    -

    Nested Class Summary

    -
    - - - - - - - - - - - - - - - - - - - - - -
    Nested Classes
    Modifier and TypeClassDescription
    static class VectorHints.Key 
    static class VectorHints.Value 
    -
    -
    -
  • - -
  • -
    -

    Field Summary

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Fields
    Modifier and TypeFieldDescription
    static VectorHints.KeyKEY_EXPORT 
    static VectorHints.KeyKEY_TEXT 
    static java.lang.ObjectVALUE_EXPORT_QUALITY 
    static java.lang.ObjectVALUE_EXPORT_READABILITY 
    static java.lang.ObjectVALUE_EXPORT_SIZE 
    static java.lang.ObjectVALUE_TEXT_DEFAULT 
    static java.lang.ObjectVALUE_TEXT_VECTOR 
    -
    -
    -
  • - -
  • -
    -

    Constructor Summary

    -
    - - - - - - - - - - - - - - - - -
    Constructors
    ModifierConstructorDescription
    protected VectorHints() 
    -
    -
    -
  • - -
  • -
    -

    Method Summary

    -
    -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -
    -
  • -
-
-
-
    - -
  • -
    -

    Field Details

    -
      -
    • -
      -

      KEY_EXPORT

      -
      public static final VectorHints.Key KEY_EXPORT
      -
      -
    • -
    • -
      -

      VALUE_EXPORT_READABILITY

      -
      public static final java.lang.Object VALUE_EXPORT_READABILITY
      -
      -
    • -
    • -
      -

      VALUE_EXPORT_QUALITY

      -
      public static final java.lang.Object VALUE_EXPORT_QUALITY
      -
      -
    • -
    • -
      -

      VALUE_EXPORT_SIZE

      -
      public static final java.lang.Object VALUE_EXPORT_SIZE
      -
      -
    • -
    • -
      -

      KEY_TEXT

      -
      public static final VectorHints.Key KEY_TEXT
      -
      -
    • -
    • -
      -

      VALUE_TEXT_DEFAULT

      -
      public static final java.lang.Object VALUE_TEXT_DEFAULT
      -
      -
    • -
    • -
      -

      VALUE_TEXT_VECTOR

      -
      public static final java.lang.Object VALUE_TEXT_VECTOR
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      VectorHints

      -
      protected VectorHints()
      -
      -
    • -
    -
    -
  • -
-
- -
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-summary.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-summary.html deleted file mode 100644 index acf8071..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-summary.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.util (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
- -

Package org.xbib.graphics.io.vector.util

-
-
- -
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-tree.html b/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-tree.html deleted file mode 100644 index 5578957..0000000 --- a/io-vector/build/docs/javadoc/org.xbib.graphics.io.vector/org/xbib/graphics/io/vector/util/package-tree.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - -org.xbib.graphics.io.vector.util Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package org.xbib.graphics.io.vector.util

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object -
      -
    • org.xbib.graphics.io.vector.util.AlphaToMaskOp (implements java.awt.image.BufferedImageOp)
    • -
    • org.xbib.graphics.io.vector.util.DataUtils
    • -
    • org.xbib.graphics.io.vector.util.FormattingWriter (implements java.io.Closeable, java.io.Flushable)
    • -
    • org.xbib.graphics.io.vector.util.GraphicsUtils
    • -
    • java.io.InputStream (implements java.io.Closeable) - -
    • -
    • java.io.OutputStream (implements java.io.Closeable, java.io.Flushable) - -
    • -
    • java.awt.RenderingHints.Key - -
    • -
    • org.xbib.graphics.io.vector.util.VectorHints
    • -
    • org.xbib.graphics.io.vector.util.VectorHints.Value
    • -
    -
  • -
-
-
-

Enum Hierarchy

-
    -
  • java.lang.Object -
      -
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.lang.constant.Constable, java.io.Serializable) - -
    • -
    -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/overview-tree.html b/io-vector/build/docs/javadoc/overview-tree.html deleted file mode 100644 index 918c680..0000000 --- a/io-vector/build/docs/javadoc/overview-tree.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - -Class Hierarchy (io-vector 3.0.0 API) - - - - - - - - - - - - - -
- -
-
- -
-

Class Hierarchy

- -
-
-

Interface Hierarchy

- -
-
-

Enum Hierarchy

-
    -
  • java.lang.Object - -
  • -
-
-
- -
-
- - diff --git a/io-vector/build/docs/javadoc/package-search-index.js b/io-vector/build/docs/javadoc/package-search-index.js deleted file mode 100644 index 8baa428..0000000 --- a/io-vector/build/docs/javadoc/package-search-index.js +++ /dev/null @@ -1 +0,0 @@ -packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.commands"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.eps"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.filters"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.pdf"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.svg"},{"m":"org.xbib.graphics.io.vector","l":"org.xbib.graphics.io.vector.util"}];updateSearchResults(); \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/resources/glass.png b/io-vector/build/docs/javadoc/resources/glass.png deleted file mode 100644 index a7f591f467a1c0c949bbc510156a0c1afb860a6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 499 zcmVJoRsvExf%rEN>jUL}qZ_~k#FbE+Q;{`;0FZwVNX2n-^JoI; zP;4#$8DIy*Yk-P>VN(DUKmPse7mx+ExD4O|;?E5D0Z5($mjO3`*anwQU^s{ZDK#Lz zj>~{qyaIx5K!t%=G&2IJNzg!ChRpyLkO7}Ry!QaotAHAMpbB3AF(}|_f!G-oI|uK6 z`id_dumai5K%C3Y$;tKS_iqMPHg<*|-@e`liWLAggVM!zAP#@l;=c>S03;{#04Z~5 zN_+ss=Yg6*hTr59mzMwZ@+l~q!+?ft!fF66AXT#wWavHt30bZWFCK%!BNk}LN?0Hg z1VF_nfs`Lm^DjYZ1(1uD0u4CSIr)XAaqW6IT{!St5~1{i=i}zAy76p%_|w8rh@@c0Axr!ns=D-X+|*sY6!@wacG9%)Qn*O zl0sa739kT-&_?#oVxXF6tOnqTD)cZ}2vi$`ZU8RLAlo8=_z#*P3xI~i!lEh+Pdu-L zx{d*wgjtXbnGX_Yf@Tc7Q3YhLhPvc8noGJs2DA~1DySiA&6V{5JzFt ojAY1KXm~va;tU{v7C?Xj0BHw!K;2aXV*mgE07*qoM6N<$f;4TDA^-pY diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png deleted file mode 100644 index 34abd18f32d3a55a297fdcf93409bd033ae573e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 335 zcmeAS@N?(olHy`uVBq!ia0vp^j6gI&fCnc6a#?2AmP!?*K(O3p^r= zfwTu0yPeFo12TF&T^vI^j=w#x$i?I+((tf;UXnmgbH|3oY>pC!)f}(GR!16S-u+#{ ze6YEqRkW=8vGl=5qArKM<9}TC-}iEvB{zdaTcX5$wyRTK&ALRXUCGx5b?-VBQkUm|IuXOmYJrBRJgj{Vx zMbNnqUkncy+qa2-mWYc>swkcIuvGK#>(0d)B7)5f`@$Ei28nH~0h*~=;u=wsl30>z zm0Xkxq!^403@vmGjdTsnLJUl-Obo4zO|=aStPBhe<(7X!(U6;;l9^VCTf=69^L{`L N44$rjF6*2UngDu&PXPb` diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png deleted file mode 100644 index a90afb8bf8028404d206114965669b023dcb85ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 262 zcmeAS@N?(olHy`uVBq!ia0vp^j6gI&0LWmFTHNUZq?nSt-Ch3w7g=q17Rci)@Q5r1 z(jH*!b~4)z#PD=+46!(!TrvH)L6@80)r*_cdCvDr%)6ghVL16=s@mbz7H!uRdGeDa z?kzLg)16i!f8fKx84s0>4hES%`s&m5HI1v5B^Uft7(lid2moiiX_$l+3hB+!{pPkNg5^ OVDNPHb6Mw<&;$T*0!_~V diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png deleted file mode 100644 index dbe091f6dc036fc1dc11b005738e951e27a43f7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 332 zcmeAS@N?(olHy`uVBq!ia0vp^j6gI&fCnc6a#?2AmP!?*K(O3p^r= zfwTu0yPeFo12VciT^vI^j=w#>k(V)1qW$CZ|6)SVV-&*#dav<$DMuV&n0Dbpw@aE%W-S*bfB&J`pw9sa4-R?IGW?p~6`>jMSP&M+u3 zY@9al)zrvpHlQu4C9V-ADTyViR>?)FK#IZ0z|cb1&`8(7EX2UX%EZvh*hJgFz{Ot{4q9c^pg%OaK6Yqo^RG1puHty#h|2KYM!0=6Ogw z8K9N2ybORL_{i$}QxC&U!O-)`D*V04jXJ#n04P`#Wh8ZcmyUA%?QMqxhsEu>DC;^~ z{8O8G!7ta)D{l)9O_iD5-A{FwUpb*$IVfjou`0AAQAiyPXs{~wzE|2cZ&-acSF5PE zECGBcRRVEnRHOae;6NyU=IDOFj1wfusG0S<3Q6l>z)~KZvoIliF0!*y?O)1|ko7+n z>+zd%4dS;8>iMJUMwP(40V}{-=QZ#}vlkKtjgT?gI8R3`s`{eg^A0iB|9C;N3jtvV z-Ng~;#kXO^6$qh)N`faRB-+@-bRYixX&v+7cZ47thp08jNs?kcf|lu#~em zp9vU17gB)u1qJ$;?70533PMsKum#Eq1WJ#2?+bZ7pACeTd>j>;rVp1okB*+jU>j7I z%j60+UbCER>?m`t-k_0UMwtLk6PNMY=f5dhQ8l$!D_vWBr7CGPcDXr`NYC0uXipIi(5RZ4R25t$~o-$U3fdSZ+t8-MmF==ihWU zps_B2WTuZJSqfEd1jJTJmIrBIIwGFP-`8)$-Iqppx}nZ^1vgyQ|l#q!hDI^2df&H%uZ~e0(cO7rqdczX@s)(9Eo-vb-MZ9T{=?X2emAalsxjR} zDp-RS7ef2fYsNm|W!_~xs+U7sTjX>);xAM$zqqaVh4|Euxo{YB$Ue0yH`R1%LS$R3 z_E+lO@6`C-O(hNK66x`)5glEd?{N3v6k%2iXu|DB7JlD_tIlHzQyL8|YqSl}2YGDC zVO=PpVE0uei+57#cSm-&mw%S6mdRjiXxq5W{LsvhSJ)azPC6$j8(XY|f^_Z&*1)W@ zy3m>x-39!zm0@c~zOZVs=NV_}R#gjtmK1&jPTBe7AFZ@zbRGz_6UwWLFcH!wR&|Kh zZORU;Y=?b=mQgrwQ7Jg5s`cWOAy<{^y4=~BY|8kNP41J6stuM$_oKMaSoT+r{gE=%vLbm}y-G-s!n*{3q^tC?7saRyDEHx#C%bDVlF- zT{dLhAcKm7_JHGWuM**1_IMVdiq^ z7D85%apck0)*q}ipK9LUem#)m&v^B|Widn`=US)y=oK{$PHqJfvPxXB01zn#HFdLP zQ&f?0$}kSU6DYm1#Q#-wfTbj=yH!1g2x|0WP2z>tuyO>41bFp+m<`<8K(}e{bVRRc z;_)`s&>3Igl%b}j4U`xH6cyED;w`@e*RvZRe2WjElbi=jJ?KR2PO|E4(J3bsCK3K3 zO01O90g8f8lG@TKjOF|Rq%J+HV&UYOoY19`zLkp~FG{YsK8Ir~X$|7*;yB&_zla!o zjYA=|t$atYh-F)y4Yz_vl#Mfhr7?c5+w!f^NDNI!Z?A?TFj8jfkyqH$zWRai4c9qe^hVZXz8Ua{_Qt*H|88x@P1f|(u2`*pny^DSvt z0cPlYpbVeN$&S_0igz=*jS?B}QmUqqvPHqKaAx2G>fO4YRa{E>XB6Xs(Qzm?KF6{) zH*UG(7f?FngNv=%+Zmde2NyXUJG!M`!A5Mki?MT(W9PZmXv@ zmep!=;N_2(YH&j9mbmVOT4-HZILhZTNTy1NuR|!sWu45-D4y_D0QqJt{zs;jlrvoW zMFI`6#{NR91Oga_$sPvQT2>*W zRIBmn5wo&P6T=9La7LKS#PfEKzLL;iMp+{1Q`z*5zFAs*0Ls&H`$&3{Kj4$V_i@Y3 zQ5#cDOZZXP4LiO`exN`(4@q9eQ8uV|2&zu8c<`IAi}X>xjQ2rZjo9+7c~B?p(#|;v zer1U!kvAG8TJgQf$Vb%&$$*?mTT^8q!mb=&j!S9)P#ih$wSndg2IQ$5(%D4r5YvN6 zSlmi#A+9~6hT+SJhfNn)&@?dH$60LL#zBHZW2#jikLi?i+d6FT_TdaEj!3q>= zs3B{;qsuhOi~=T+n7bcnD>mKC9SPia&sf-S6=bWBZ&k_0DVVff(=-5WLMn9=GM7-h zI0uf;xB8kYZb^lJ0n~JvuvK$V>}r19I>e+O66f|wPr+;wZh})Gw^&qqYZA}x4c57y`^h7)C>5Z1%3*cW z)cL6g#o{A8TI2pxi@_j)Q_eBD)Y1zWnK6FCJ*Vusx`G!m)?EOSA0act>OlBcw2kno znt+5a_hNxdJ!=)?x{qU|#3A*G_rm|KnYzPYV{szQS;o+Vc_nTJny7jnL?4}g| zq}9Rn^^$O}pD>4Wzz073HN<|S{OaO`3SdI%H!gr$kE|3cZg#S#ZmtN6jU!-W@kLCX2^KjZN_cvo3qAj2yCB?L16iZiG(a`(MHoh@NuA?dUdwAZsu^p~Uhti2ZH!rb9pRfx3K8kW z_?}^DSUvk!SkI1_Ny((_yDi!;g+*N#ElFI*hGVTo^~6evaow^^-a3wu+^vYErC)MU zEPyLe@#)2))oWu=PU`!)g^X7j-n;da0;cWGPIx}|{5}0&Gqw&mh_FTI_8yp+ZyIs# zi~~~V0>b733>{kC2`xluGp9ko+Syq=cLVEdK6dYbAnqPQpJ0yP1^$LT-{4Y$I*shl-3{@hbXlEaQ{OVJr6@vM$U7%VXui z69mW&G~@=wLkd6GC5LthA@FO8P^{E$HP}ph8}5s#;Fxy2?&9$ADS==?cc9DBgZ^BP z_DJ*8;w>hq(8u#n@8pPzhy{cF{4*+k-5}N1fZ&QXpqw@-WKbl7G-h<-fqQ5cUWgtZ ziPTTk*ivA(LV;7lZd*s>eSsM}+`^Lx#d$*#KPXr1pVrK0_^RM)uk}!!5L8>TO42Ru)kIb>l@A`(fi(etM0m#G<>kwwV~O zw(xaW6da4~#^(Y}PMxbp(iU(Th3CZf}3l^;h0r| z=MBo3m?-`p-VaQZT{78zLHSWNm32oJxoy&ks72t34^d!Gj8=dH+swRGn`d&6|j&n&PXLhwd zY?@dYT9b2uRt2;Fk>XXgPObcg`WLnv)u0L7*LN9TQ!dI4(B!mp9~}26atgA|Vl-1g zG1Mt)k?;6P4~*b9-+9z*fz4Xirg8k=gdS5xM_x#bV2|fmb8UMyiN$jH6WDG-k&!?G z7St9U#R|{RkKRcgSQnjdIK`zJd)?yFvD(DPh5-hpASH|!dA=)}N`Sxzdd7x9cr;&x z0?>+V`+=QN8F#cdo=5>iLeFsFc?ywL+hR9-dzt%0?%k)DK`Q zQ)!Pt6Auj>-6d23k2rTJpgSt=6SoV46u@%xuQKC8?cPl+>*s=DEZVpN7$>q1boY5* zW0O0~;UO$-=GT`m&GNYD-B<_TuV1~NR7&M0g7vw8=6o*KiL1c-3(y&pYSCOg_bjc`cG%->f>UT`;z zd<`+z@DhiS8g3Ej`NeU079;}kV+@JEqw=S1M4S)vpZ>f#e9Sb7)?;J*jPQ$o%jcL( z9$^>WxCE2zM$4Kh%Eo-KYvU}3BuuOxw#eC!({l2D6&`xunIoF$i2=Gg0oOH^x|Al; ziE$^IzopsMH;7d|WB#*{?LS*KYZR`8vFpVXe0x7M7(cI?fu)Yy9Qf zJg5w2#h`;t_ksT~YSk0fp6bXA&oHh|`M_xKx|irpxo|F)x82hH58PF|R4t27)9cKqaDz~7a@Ub32?mq5-4r4x9%Iem7Lr&xv>xdzdT4a%LsTjG12W?qN^+ z@!iZ3G`0DLzjcvM4RBD?gd5nN<_J(I18CxC>BNi_)y31reLH!#llOMD_Bg16eH%Z+ zI@5tf6YFG76bE+OR-tMscC-@k{FJTg^1cx>`h^6`{VI4q?#JA4s=KcG>oiD^L_xi+ zB9fNx(}VD&&!0Vp)p;!Sq@biL&x|Y2nRO@szL>_T7f_d^t2f=H1rP6$*dNk9oAK?! zN8kT+^=Y)gvMi3OX~M4qet%`%xvxqm{V^J4{^~Hs3Q6-Ozj$q&l*nDAhHS?*SuBJT z>1JWh2gQ14CnBI6K5U@JQIZuh#0MSj4qreM_!q_$+5dMzf-WI`F#D0l6JQxO0w~nN zN+2rI*O$V^wBuB(e=TPm5fA@tIVG9)#Aa$#3gm`FIbATR^{iB-qf&ubqlbcZ1yjl| zD-G(`AB!|X{kCx~J&%J(tINbfI_uV-SBuuHe1`iI;+Fc-{}H>dI0Y8;hq-TLYGv#= zhtQaY6vT2bzz+NAc&43SvdjlIGFF&@ybK!Fw*HDu_i7fBlm1z0*!SY)u7<9ZY$O+TBqN|FN9Is93lc2hfxq9nTU-D+<)*)73G?0Tbyq-0-Cy$ptt z(t0Hr5qmTCUdNWnmw-k*AjEr&Our;Q8=j1&G=lNvQt&r`N(Za9h0Hi?xKemGQofjwQ6 zEfOUxr~hNrrOY=DeNV)MHAz2xVyBip17X`9g*GZTExdiraYcBBk4MP1N-uBUATzwL z(z076^l1D(WzqG?hXB;P+t~YZT{6!yRk<1RRh#?lrI~d^{5EioHD^r!QsGeT9$#Nb z=cJt4L(J8!Yu(LMHCXyUUA*XMAeb%To(5CqTah||6kx@DMr!X_#1p!dW0fQv&nulS zOv9Nvw>;;%zuZ&z>2W@Ns^9w*v8;KpQHLsLeN%B9pufo^@$Abp1*uxTLE-IYWFj2A zo?eRJCYJFH-lL(A0b6A2icAbemDxEoRkbBCSVS_#pQZc^@503DOu6mquJ*#i`7CSU zMLUE>+8QgcPYL34g1*$KkR6=qQRmqHEk5A1LG#i4S-PJ+D|g(Jh=NHlAfcI&rk`Bg_ySed@e8Hq&)UIEwY_S;&-MbLul^u<^-*}B?;p5!e6 z5#0kXU8Yj~oxOH^gOg$mH;Nk3ap)|~){hGPm0MolJMP^O6W{JFcGSzvT?l;Xk)@<@x=`k3Q*F8qv z;&cbNL}{uYIMz@oRd|#JJSZ&(jm~LzN~q&j#$eMOEX1PL&m{W^W+%XLYMki&Z$kJW z3%K>=u5Y0?M}#F))ibW!sD-!weE{?W7W#FTzQ-*BBc@RDU+x!dFQ4_as9bt?>+JL;8sTYo&@eAiY~+@<*P0<1~jO0P2;5hMtQ<13y0#*{n`AT zj!xOv50?u8TDy6x1^-ynNWte0LY)Htw>Vyb?a?C|D6~gIOy>lWpLKmbHtoGfBOUdN zNTcrHea*|K-6wfOB>G~L9QHlr^�_j6WK+Gj+xJRxVvl#lh7y-4uY);t)n47k4ot z9YsU`HVk7fg4;r{;)FHk7ZHyZJ+W|$aKwj=g&_$VCVFn5%XzSA`|z}+4ItZ|`hB}R z>h-6Be`d>nmv8;kQHJg!HMr^cCGG=T5;3HhZ_JRq0_4a3TsY7Pz{V+}z>;!R^U4*c zJ>wRI59B-)92Vi?b&EWvH(`<(G5A?W)z>EuDMG@VENAb7aHa`I#tKw{0uUc3(#J8& z*_S%A_ZxCIY385{%qN-b1K)TWmCjUA4nWKx_ZnKLSvEf0($&_0@DS~ zN8JOXJXXcaFm^OCYrz(R7N5DQkXKGnnt}yzfw^8s%=A?7hxza;ylJ;XQ&XtC`pM%b z6$5Ff0{(ALcSlTKvIbr@mR`0Z)*iM`2EfO|E5OMk$jQsE!^mat*drqV diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png b/io-vector/build/docs/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png deleted file mode 100644 index 1f5f49756ca64bd20a1048bd7a3a584457d4bf00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4549 zcmeHK2U8PFw@yL`geFZ|P@*V;w1D&)N-z*QNarO;QRz)l2oR(yU5bE$@JbZ~M4A){ zMUW<7Xc|gHkY1#>kc)mZ-`x8j?lU`k&hG3pXZP8eGv_=pHoVEqz{dap0GM^r+NJ;i z@XQ5l($k#H6S{hbXB#ZW`sOH!2L%N^&k_wk58Uw#*BX~{9Oe{(!2H)ZKd9X_X#oyfU5m#1Q82_f^tw6O11(<7c zWrG0%qDlJqcA8#ZrRU7cn@;N9VJUYHk^lTY3j(~2xv33^rM-YYTR?r#*8XSqkBCLbg&Z9G zp-dC_BuoqAkc7;MJ$9jCDbZN_FFIp=mvYI8l)OlkJ2GcKGFRh03>eyeeRF`W3VO-< zC@;;5k3f&*z5C#XoxT-q8o(%^R8K&f=k{8C{Y0uqmWi%PaU6jYo(5);yFd`Pn(!El z9h1vEhwlH1Q*|5X!lGvH`BD!7(^?OdAd$XP8=x~O{-Q}sy<2@T8`8IN;o*)L;K1*C zz~`x^5S%i=-8fHXQ{cyPiZj`|pV*e}T1g-QFmGBzZJ}z9t&~LL?-9yqp3x_EMw?h% zR0P^RfsG7yxX`l^uHgxl8V3PJTxM-b@>%bt-xEPCC)WNC4L*~?BL_6;e`XLVLVOkZ zaY1crUf;C9r#r|ebAHIp$KdM#$G60s#+4?*)mH)^4Rrn^&ZPOyOvZQO09veRcnbCX zWQc5fEAPmQd7=aqrZPBYAy;!Ph{cmfC@z-hpTuotqr$Mt? zY7woww1bOdZZNt7uHxGKm9$w8ozW}U!S8~V?{0A^bi{^$t00v7M zy;S7sm>vMCBz+=8TH~>zJ3!E9INJ1E6=!x^{;q9Biu$){2DGEIbB=oh!`QMCEx$ds$)Rc&7P*}`pd3{PqA}tIjp&y&{w{YrsPqhxaO4qerTDpM`WTlW5 zu*{F5ID98N%XU%ltVphxZ4Tra!)bpNih&)&Xx+d#q1{G`5icBuvTfv^7X{W}JXD*B z5!u=L*x{^0TXODlF@ziPt+=ars9OiJOv1hU4sSKFa z=)|j@+%OFH1Oa3f>ffz{O6~wHhDJrN4=)Y|I6DD)9CPw@Ytx6M2-O;{GQTQG&gg?A zr_VPJ&6+f^hXn|7pvwa+o;bXAc{n)lTn{~TF;3#>=AS1_iaGZheU=*xbHD8CUNUCj z^3&DKA#op+3tPQa@eK1RUg%D!n%5J4ICni7xELQIvd$Qz&+%!EZ!S{js)F!S5x>3O zLCB>-TbYHXS1?}__Xfm{r>(wAU3INPvHaWIIYbsxO^Oe0h0xglZWFakn6z+$6`V(< zSimFunLw;GdHMnWx=-GqPeuvo)l|sHaFJ~`DxMN)4Y7U!J8D=^MqeQn$`lS|1%mdN zK^morEND%3ee@_Yb<>IVIW2*6NZ^*QDg@w`H$3}uYsbleFidycDox+uzraGexRKEV z)Wd(JYU$(enZkGJ3{9REQOJppi6EBrWrXU;Ho*EGRUG&RC-ceTd@*C1J$c=Jk~Ty0 zAJE}+ZgP611Nw}-*K%$Od}R)=^6W|sl);faH`l2OA>=zFmy@8vVK$&%4OTWEhnx^< zs6V-c51bUMvJ@`4zcieGu?{L+ z6(ZMYhQND%M5s7uB)($Pv`1e&xPRDwWGD>e&;;;sA;yn_>F>rJH-M!+=wbl1_|+h6ttu(NB3r*FCdU;|1QOB?AGaVz-O zFMj-^FpfDR$apG zp!5Ji|53`FLrz-d>YnYEv6T0wDN8?-+$@_Nk-6nai){TtA=w&Qa=^woXbB~azV{PSFnB7zJF-k|zJbp8E$W1!v#tcX8%TiKFo-n7uCut-v(fLn$6ypSnrZ z$*S34s_(`S1jtESyVuI|{3uW2BhK-{jQp05>-^UGi}#K$%3bE8bM>i8<~MKu=Z4e! zh0A#tX_IOB39o+SdnJzu7<`KoCri$9{I*mr4A2uJr&$q1-r=Lzfussme7r{sQYl;m0a`a^hI)69ux681k(h4* zN9|Ywb^i7xF=uPVr*az7RYlVWPxhKmOE)Fgo>mlB<7pYaz6VsBW7J04%DxENck4rx zgM6#>hT78o;>S1Jt8MqV+4Jng1ERmSoX9dGIW`CC2VaF9CwL8-Bi|83mD2!Dee`Lm zCU-luuD>aLYJU7ZD?3R8tYYSVzoEVM_7n=hEcv1FN{h`Dk*ik1Q)z?ie^&}a1;86B!(s%}s%T_y4o&Ilh~d4DHn(86bo>p-*Ct4!-v)W$h1{J?4IrLKT@^?`26FF*@(2A4^@6og<7ngtWmIBVp>g{gwCG=1WX4srm*>E(6gC>!E~o-<{=AHg;~h zr)4{j`glAMBt_n{+%n8))~tNAyYCizc)D8wlZ8(Mn(svkWSi{A*vq>kCT}fIzl|Cn zy>PR|9cIRx;PBE5*-4+O?~_|$F<}5ur(2S|FAw=N&4pNnTk#=xhxAK3L=6a{X{DRocw%r8utUc^U?}*_ zr(y*T#U}{tCh=GT-ig;Dn~K`ilK*9stV#@EBAC9TOf4ugkA;~Nt2ej0?du%%-=F_m zz_LA$2jOO2Xk0r}zAZwZs7;VwA4S}3#)0t0SXSerLIo`;%;<|0ji~+vl}hOk9i+zx zUuZGWeo-DskUoPx=uJ)C!2Ep5@-PzwsF1^fj6kXJV!gU9L;{+5Gue#|!$uOssQo@K zR+uvJS*YTwuIPpVsz4PRkj93f17`97b|eBhl?7-Z9~n0f6EDor>foo2fPb$h4?A7> zT%r7x%5bpcUlV8+ByvZ7G1za^zhKiWJonD$xaS#k!hAE4p;QgaM*&tH)GI*HnxRE` zKM&1Lk7kAdR0w0M^qbP-LBil+NXKi;ihqCio{6=#|O(C$v0m`Z##4NXD+__-g z(_-U=I?+`IvcD6z77?Nw;fys4D9CFwg)Aldh6fQ?7N5`ui7^y6CC!+Es(Gr9qTHPK z-0ma)tFN+?V$ZP1e1t=yi(Zs8_S&zkh{hmaoulswfZ1Dqa1RNYC-25^Rm!I<>GW3k zjUOHLY78yVOfQ4@4mA&>xohn_3&n{JwbI7c3dEV^o%%0Fv=51+iH6T4?jF;IPPfqw zokxnwN5uxo9?XI&Sz@-f12P;WQ%GNbFK1CCdDhs}sVDCdBr~;?W)WZ)U0iw42JJnB z7i*tnrsnBMBpw^Ay}gobnSM$V#D;&2_@aql^X86vylX4gc?Y;m(y8v2NuB;;wJQoV^z3UpIO6adgOK|rh`I83cQ92vN z*nDrN5bxLa^N8pN&PPh7e;t?O#;^ACf0T)hr9bD^{p0K0aKs6fP=#ZL0@Q)?jH1G4 zmGhC&x$cBzQD~bW$K$+5{ylRuGYJ=lL0%_3KE(evW+WZI`zqmN3H0Yi?*N0(R64#J z>}+>eAmE{uko29IXjycIN3NS#IqY;9$u>caW?(bvKw+_ zgG{F`FVBpFDwJwR~R;O-V!9D+Lphp>2% zCAeJPdrp0I&;9O?nVzZYuAY9Td#2`@Ff|ofJRC|K004j|F9+2C0DzA}z%e%ZV=t5G zEb%Bnri!vqfK1uzM9#CcN_%;z#n=8gA#PS3;tcI;~uofXisxsK~{&;VR#1 z!o>>A2X%jk6mmfdq0-jyMN=cu0=VG)#_Jf_>&KuMX8ti@lH{h`>lhL}=z0k4IB519 z2z+_ZC;46kNd^v6LH`zyWz zc=pCDRd~N_<2su2s8&{(HU!aVC@&H;3-}=D4 zmn4&Xqtz|N;fr4ZX*`x)O>~I#fDAFWbF}%9b@c^V1-YMxSf6U)DQRkB+43Xqb9MFy zjo;f7Zl(+0@U{ZOZ-5LtI^A(gphls-(I>bAO%b)X0%Rr}JgWGZvD+JlsTxN^% zxJBLbH-$q!0L=#%jxX5Vq_FKJ<2w!*===-Y@qzQ*_ z&ov@B+(5Xb?{lf2ViA!OfgI3o#$9BtFq%%7KSq&MDxi7pySJYoi*Mo(W6r!DLSMQT z5R^D?yx*g7)k}}4ziwHEoWI5K%3hPst6voipJkIw?!%9N$K$TWC4VuQM9)7yVq;a$ z=Z;n#4~)-1561t|Pxey=Qu^0P2#JYboJR5co5Ktl*iAC2?$BN>JINDo_+7dptH4MZ z=#a=xrMtj%`CVN()`GKp3RFADpy$xF7~O&&p0-yeG=xW8uhj9Af`YV6uf@~_v;;D#h=*T)D!O`_6(IwY zIw^B!$W|O05eRI*b>Pe%GGlOW`<(mkpbS$G@7HEko`s{=g~2c4kqO2D{R_c$HXzr|(vU9~bVZ9Zw90;2AsK2ig}XTGY6fY#HgGpEaxY zO`D_Z@O8%f#^@5G;myQ5fA(JXK{rgcieDr!{s`~{nU%CRe=1;4og^%^Ts{A8>Sq8@ z7MLFuiJ9lh@TXEbSXQb0;l#nbg^u{Ky;vCuCLR537HT%5FxM^fs5pS1gq3J(Tf!*6 zAc~!aiCB8(;cEmBeX<`V&xqvsk92&%dsXd*G@M$W7!TVsoD%c%!p~lGHEz(ckd{tR z##JAyc1)YR0b@JW|HWX=EIHNMaui<>jUPal5F|-#l#?ar-oHSbCyZG*EuqOC?V5Iz zROd8mBy{ukJ_DuzLTBsPdF^WZ7NW}CWcww?Uwp))_brh+D#JdL%%G}bh zEbmg}yJc_xX1_|6iSomOV4IgTV&UNVe-P4B!*v}&@hLXe=h7%`bcW^Eta_BE?bf*&82)UKj^6nE@ zA$RoKncM;1&!nmY^=yjr6=wgBr%e9BXAxKh^0A1=&iQhn5mfUB$_1N5DJ-DZ4!pLCChW*MHin>-!AX+Twe_SsV%)n#? z9m<01Z}*b;{SU$Rd-`axfZ;y8#-Dau@wD~tukEo#I1b5JhkDp%r;hf2&TH29Y`$=G zCT=}&CU#_(G5)E0y~*>piG@IHnT&WP>Bef5eoMnuRP?tb7aFH_AYy@I!S34oD{g9j zt&5vt`pheqh=GvgZDzlqDuidT)11qC;R35@PC4Z4(p=SICoeHq+3uEqgbmq)}q|_NRzcOHv0J`WLpt+1=j?0A{<5%OLxd!f~^V zfofe-Y;s4+yganmBlRs9L-MCkb@HkcIGzakx6p52sHx;MA}LA_@xo(MP} zDc);OVH(SgwrVlgqy!Vb7cIqe8X$!ECB5e#-)15warssOnkR%x%-o>1T_T=}^z83m z>?c?Vcl|}zH)Gve#!UTymO66c$B^I*%B*@2y23hf5=?aCeBzz7EJe|b9Sex0(wO>7 zRb>P4peOZ<5iwK?l!Imu++&w7Syj6VQ7HaGhAd%tr!?^1W9BpDb9K6w6&K*5X?Mg{ zJ-9!QlR>z>DK+)226mPe<+h_rzFAHI!mzVV#GU?Fzw~_RoaIT4yg6y4BAsT`&lzDE zN8&hg3mPdVnZE*z(B&{cUCbdEZcwCc!M07oJQWk{gQd-> zr9dqLy@o0}77srWq=#f}hD*4;Wr{`XhNy3(QRG7u=})1~*VvvJg7)}?r}&$RlQwv$ zXdGV%bswf)=onk3jFfL;P++Q%v8Zx@HLpgdXD??Rgfd0J7%TheMo&G8Ri zY%xQ58GYjiumJ@R#%;;*4f6=Jqyt;B^WLz4)&y*MwAuEm);Ad)VfKQ8Sr0CY@t@~> zUQjgZ#QB*y&{~9gc(!{BsVt<##<@4;&)IsJD6YtQmo_p%?&3O=8)wZazJdioWa<4X zlrD5`HRzYUVx9XSHNrRMeJbsZXE$L%`CjK>#AvI+17q)*ws2o~m+2h|RXRpuvZ;D* zQY%WR`fzBy@JjoZU*XW8`Fqv?ZRVOCeS4``J028Q{72zS6OggtuOq;?NrF=gLU{T1 z2Ey5bAX2R!_@I`V<&n7vuSD$!&t^oE$C16?6i^2+oXgJEQ^GRtyq7y|3J zjS5W(iH2Od&+O~1mD#qt_V(U2`D~yWIe}Wmh)Pz z`3B*tPj%Q1@@njj!dC^nL67Y3HjBux!~dkMt88TTtEyZ&gy!?kq=hW3X+P_Vrv0a= zk$G`d4jR#UC3q&uVr_NfxeAI|1?9Qb7nKH>x*7HzWEl1J7=Vy~_xZtg^d+=;~q6HX~P<3!HF61g_w>7y^ge1>z>0>CJBlwhy*m zu^e%|FDE`Pg>^K2tw_~`;#;lt;kHE=dWx%}d@{Ep`+}fUYEkRY@7R4z^Gi3a z%p3!^U0{T-%L?kl_g;>HbVbT_)6tT-&YtzE=5CeyU1!c&e8r`X(rWY(&&Hn$;!z<3 z@ZD^M|7w69ux8!!$a=u3Jm9vMnxk@c@;-#Vi;?20XYrZU4{Zg*wkL!!)33(XXlz1R zYdSCxbAF4VGcc|P>jR^>ye$Fvd;}`W;VnrnsgUp09az2h?}6$Hh^S}<)Tc=<&3>*uCLEyR_hY_tr{or zrLSkS#T^|h1|_TSdo$fLueegLlN{0i)^=e2EtbySBh*?saAY}fWW_pZPj89qIdGQG zuxq;}FZf}T8*ZUnyil7Q8o@Dmf8dp6l_IDkJXm0=&ivCe1tvmX*|Y9)KZx>*u)cj!gV3~eOWE0KE$Vd(C$NowTz3Z#GR58MoW7U>(7WibQR7zU zr(M+U)R3#cCD?IbC3MmtR7?nlyi9(d)Z8dBwm5Yv#gE zH~5Y@zD>tVcGN_vSwLt5=jvf;p2JDnXQDL55iWH_(o7-&$C@w1ezEAGF`loMo{^9s z+qL-4cT!g|bS7(^aDM{#4CP=QsdpQhA-B3WQ@8x}1Z~5_L6>yv41-IOKT3S%nn6e5 zjJw+eepy<9mtX+LaCH|?5I*+c*Y9Mnr%8@i5vn4Hu@i=9XtWGol{AM#ixz~m!Q15N zdc*o)e1I~VccQpl$M!|<;DHX$F%un;kJwM!;3X{(+24sQz;UoP+D;pG5OrK;NSpRJ zAoo7h4z`5^2%$YZK@il;j!YY-k-Zk}e^u&AqL*9qyz-Oxo3!(5hwER%GJ1>eeJHnI(0ne%RzAyI5mDgG%|(-4~b=*CY8r|1uLy`6pa z`a`AqLvAMzmPMnOi;v!%;Z#k2RPeMo!UaOYtBz2^Z@;8%ZuCM|L0q-P*6`3fqiw^L zL3`*T0~C5-#Fy`zV$lw~_4mI6WLZS@zu$b)@(M16E0J%hHBZ=3P0gJyo*6+fXZ0|) zB~_}943 z?Lc#&-_51qs+HcN0==Y{;S2E*(c#J}TF1dOq>+oBq7^BO)gtN36`@RskHQ1S3iYcE zdr^>R{%$WSvX(kRE8=0x3WtG3iW!hA)a`Qss{lN*6S62fAT80qpF>~U0K*^ef>uYa zroXwa>=4bE(Me{aSAcQ#S=$1-=uQTg;;=5KvvH5q>2fiJX)f+RsBB9uXVi%6<=o_J z;Fb|nE-|%J+QxjX*FPtOMZ0yTw$HWu++eB$65&pLY_$8rd6A`F5DZM&a@ox>EyZF; zI35+4PUyZ(Fq1PdiWWylndF0L`Bi&mEFQ4%ig#h6sXl- zY}`wuiiW&n92*N#!?nXU?R|&(llg1N@n!AqFF{IZ&>!ujl|0-wU5gGY2E08{lSjF4 zt|sNhwGNVmJc`EVWEc7S%r0=*uWj19qAzg@1=s-H)o&Wz<Lli7-+}2Ha{kq=!XZ~pZc&+Q=0Cr|?#_d2wy>XJyrz^0!NJym zO7^0TjMo8~-}C35db!jXTrFn2nwOg2p{IJ)TMKtnrmOTK9*AKe0{j(&<)*eqt8N!v zpq|U58&sl=USB36p%G@>`5=>n9`TBDZ+p}y$w2uADdGxvcz^~D|-g+X6KZ?b`a6w%sL2=P|o1#BP})wq9P6^I;EBnI=7-f6T*2aKAh(r zXjh?;*}}bE?&sMes#m4`20olUS!0kmkhy2DS0V9I zOVfN+i{L@-)F3v$JA2t)D}TAUs6WZNKJ{$kx`%Omgx%I7Je24zhTUZh(V%L!aHijs zeCcMA`}iNqfj%Fu?+*QOj<}bl1LV*Ss@{fNU5=lL+RyR}X`nw|5$c(I=~X%=VUF8A zjt6XyO6Eiq%OTZ+GJkTSuKVD2LWrlV!?~tMbg?upc?2iFnnE_oJ8?xt5w%`pFE$TSofbGY9Nn%^00N{i~> z!<-d}5xbK}N##I0*iFO8_PIgdMSVO=^HewXRYhMjzGFhagblsyGGu2-wW7GZZ{ zQoU1S*zc%l7-^UdxP0GxT<1fpCrTSsH9D$z?_|R6 z_Vg7Qh~N<#KqCEj{{Z9*u}7$G?~LK>=6PI~v3uf)l@UJV^0t@wG+ak)aZ`yOwUxZ0 ziHYw>>qDBv?tyTN>lry=XZ*IuTz=$P-6wpGW>1{a66PVs?H#@p6~=_6dhZ zQ_C6oC7I*oSKm7UI^y|S@_%pNF_jc0z9XL9|03`HyXxpE1D3c|=~P-|F$QK4)n|(p zysic<{o^^p=+kD)6#_wCVnRh3{vm;FfO(3hp^DhdCadwzK8XzOBXkoPy^at}Pap*v zBU(QN-y|aejaOi@kWw<2H}EDHC;A&JKG2L*Bi1ZUvuMuO9`swC=#*((@P6()>?sWt zSXDf0QV4qoH^Tn-f32+A7sI%V8~ZP)1~6@8g`2`)UUIaRX&f=wzC8&T0D+%B;88ZL z&{X@v#(SwT20&G$4|rq^D~AiK(oG-XF=1UsB7s4^AE5^`5hh(e;#fOR%+1EhfO@H| z^%1^X;6oC2lZX7+_QP$!5C2yH7CdlD4a*frVc;CDYPb|XeSReoPs*JS;SMlZ9?j#N z08l}h{pNsNINt0bkR@G~?a{{%xO{8T{LwZ*OrlaiqT}-+i-P#Wt~zlIz^>o7J46EY zIKG)9Tbm%h6~Cx4ESc-WZhQQJVs@2z?`m%1Y5_5Gws;f(UNDa!Cs>G+hwmK^7{bc~ z5fI@3gCSrr6)-H~KMd?0&220_|EB?11i~u_5#axq0cs?h@X_G;KOQt4EnVGBoGk#7 j=8mQoFXZh_tSmGvOw2u<1}#J%l>qWGD$oikWB>mG5~xOM diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_888888_256x240.png b/io-vector/build/docs/javadoc/script-dir/images/ui-icons_888888_256x240.png deleted file mode 100644 index ee5e33f27235d1b5cf0259f63f3894a6be33c679..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6999 zcmZvBWmsH6vi9I^!4hPU5L^Zs2n2T@2=4Cg4nwd3lHdeFfC<5aTkx4cu%N-+2@Dnp z?w8&DzUSG!cYmByefref{ZyTr&!bfS=cPE{A_)M{_^Qau=myRos0#;zfZ>Q;mcGYRie@({fXRC!lf?(~P}uA5O=^WkN6w$E?Bk(QZ@d56yF zvzCin``<%De?$=3f{5%D%>3Rj1G6Iggn@+A<^UREK7ar#ZuV1uR{tmF0D1KqJXc{A z%xfM%w}%vYbcT&PdfJXWqe{@F-Trf1G!PdObSLjZ_+aq%)c>XFRvZg-spg=oj_&;fOm^QKjzig4q;#%o~svm01A0n%NG{&+6qNHCHpjv5-Fjdm&ppQW@gOQc^ZHpV-IqO+^k-I=s7UxRF z-R`7Yak0kmg&9$h1hga2of%GS5j?9PZP3G8 zY0qVzY1dmU>_646Aaqp@=~(-1S>H3%0EF{C8r?%6R{leTHmW}L4@byn3zD(w<~E9O z=Fn0y) zY}2L1AsRK!Z$gx%=12t}dqV5_&hRH<7OR=c;+t`wxrz(}MSDEjxp{*oahH%kyf6V` zAo0S<{8~I3yH)g{!uPj5<8J|IT@-Tc^VzIyi?Tzb@L}&FlF5%e%5=Qa7^9eVC$*`A z82?nDIx;)K2d}6&TMusbX4q*~w<0H@sgZGE!VEh_&x+dXmDx|3XGE*TVtenrF_d@& zOU1DjvGy|ES4oRGhn5;zFm!vDs_}%x318u~U0qSGUuPr#>uUIi_kw&J*SY-yYi=+Y zSWKOfJiwcNofx>;_vN4L2ROpKgvHuiY9Bx)xB^t%?MF zP?PQuootUA?J1D>+&m*iHdeItn?^Q2;v3DFgbnkz4*vq({R&KBB3%!cV5_LAc2V8- z%u0X{E5>%S@Xqv9^EGx&wLfk}FC%4`U@@CmaTcu!eHJ*GV~aaFP>(5pa6C#n46Fa{ zL)oQX4`ZT>4YUe>7xww~^l$y45w{tA^R6X5E9FWBI~%}{6KQ_uk5|hIXc^T%=0M0<<#BJ0RRd_O;3 zsb-D8O$U4S5BOLl_;#4cj;)2Hw;;O_e`}b{FVzp-3IL54{lXt|va~$t(hFS=qc!L) z-3e~P6-a%iT5Ri_Lr?B+gKG~s+?*f;UVI_B^JO>bs$O@!q-4u7(Ml7m|0^KP0oU)W zKGt(FB7jKjw2q%eJLKSlr6|R_MXbz$Lo%+mpGFNp){u);^4_8Q@dp# z(C`~#{#iw$hiaH|e>D#7J1QrG#1@WlsC!qB+e+0yo@4d=SpTXkr--hWpbISfyP>Mc zYi2kQBa1khy84P)({Me9RIes%E`2#p2KKd*kKN1Q%(M|Y>o1(dB7l}m6tl%M{_Fc- zlLA37rfpNZGi_--$j?kmH>Ao0CMGF~4OIuoyBJeGYckr{@11Tf=O-0{8O!w>=)vwA ztf$Cr5BLRwW%tqR@{BrIoS1n(hReKhl7J@GP8|Zf-XdoS7Rn{}qED97tGi<4k7H9*9qX~33TOxusi*f(HP z&viDOR1te?v8OHDy4Pj1M2(q+$ELZQcTaHtGdXfknhJ2j-5AvL%4v$HRh0~PBL4N+ za)Hyn-KMJqXLDdZLy3~% zQze#I%SMB6QK>s`t`$If5J3%(O9R7zZ9!7WBrhq&sWhXw*%Vp!4Eey}bMe=Y??HU! zb)us6SBE=Ax*ulxk;mrf0T*OMQ8$rfO}qtCpd_?icx1?f8OWKKSv<}E=@$orqgn0$ zf1W(L`+WxsKnJDXJt;lDGWz|}V={IGOp1qeHTB{e($_>WB^Is3CQpnzN7ku-vgWz# zEPgAYrzU=WLN!xAEIf0P`5LphqD6{EC&@YQbIF2r7miQFZ?-~Hd`Wt}`#V!iV{U@T zdV{*T(|fvYAr*(4T`JMaY;~#>68=#ibONi$`qx`kTV0TP^EbTPS{ZF$+S%_Ud)3DO zM466a+aQJA%vb%~h)VOdU8#yO3NRcJo-%(8GI=&pb|Rn3hh9^j9b=-8+s`SuQ&T#C zG`x0elQvoRIyHRm%}r*NmJCMWxu~l#gL1zt92X?FvBzCq(!TY=%}T(M`2fk%*IK;L zBXT~eU|)AqjR&~?Fz|X7o3)jQBygoIaU$uRnV2WVA*`hie6NFj{fSYR$tSf6-H=*d zdg}V*#wU?b6zPJx_?i*)^2ZdWsa5|LJ@!W|k<1z1=y^2{->z_u{ii?p@!+*1 z{h8i=ictpi5|yFmiDrcW;%N!e{dA-3vMkJ6wh__#hsHxo;NDM7S9sqrR*Ea%B8bay z%X~oeF6AiMIIttj{)0rXEtx0%X!)!~g*1q(y!4>GqHs<~ni<`37IN#`5Y=we;sV48 z0^j>rz6pk@HOv9#P1osT_@$Rqji)f6X1^9>Z_zAx7ZYa@{Y<|wF-ZqzZ;N3*tvyWUlgZae9C@OZ_LDT2H`F?q&u z!k&TYj{q-6?lkD3=IGZNqwuV3sEQZglk180ch%^iZfE(@dqorO^(^oR2@#VUjpZ92 z*us5g!F35st14zVf55PT_N3~({Bvd_NP8L)=`w+^BdtEgl=jgASgv%&x1HhxA5DJI zz6c)lWhxJ6F7wU9r|m)ug)F^-AVN@O;4qgQPN2i#$La#d(AxaQE-p)9WvV}$aZXJ# zz)-VGidtmqQHL?Egt@AMsbz!!2?#$6J>2Z_?vp(u*f1Jy86l;U1fr|I&^Aw>lTt-r z<)_$xVFFdc`nS+{OiM!u^4E2?nETPkyl1m2;|2$E+_PRAPnKYr_#g8`WNKaK4F7^` z?Ubvq{W1>s1^7Y{HItAy&8^_JgrpO%s=DZp4tZCbahEi+1%pC0#fCYEu7hL3$tZ50 zXuFu6Yp-chB5r{mj(GFKp_Ly^d~x}|agLYR8*{vMq*5frzoTSB4MIX`VXWcT5J(p$ zvb|v$4c?8v;T!4IdUfGv>>H^7+@>gzX^B|paL3B~Eke}ziUGpPQ}dIn03g4gRNJh8wrgjZppN344yAl%PT>?dXQfM#P!sRwL z;KMIu(ce?sUkiv?!Vy1m=vGTp^K>83Yjo?d$#<=t-KkL}_==YbTSL3tgWR6)-Ro8r zg>cv=%3Rb9yeFBfD78$8J*?6gjy>9c`q1R8Qn(CxX}XM8Mj^JBOyR>=?rRKQXO9*gvJyjfbJrs0U~2168KVOU;jdTE zc^Mh^)?{DY*$cO1{5f&&9Bm`e-;2K6o#q?)^0k*DB`UkBhVcdDfrep|D->3J#MJp+ zXY1nE?S}HFz60zQiVNOD@25Sa*0SK_@r3 zC(tKK+*fXb0BXgdWEt29pxJlcGHzY zJkOun3<4jbr>1T_TTE+(G2fT~#EBMFE0%pmldkXeM2*ccV3jW|Q1%;GkEKr2f0jK$5CC(%my!&suy}Ege*D+mwSTsfwKm{=38iPdckt95#-u`Gvf%NB z;Jh9Y$q!*z#v9yQDy~nPEHhs8Qkw?&{9op;3~$xMQ7^lQ+Vhi5nq!hLeB_uq=fV`i z!E)geaw+Zv{3e01>Ja?YPHdnFy?gNc=tt*_9!=`7Pxa?6vDx7m z-0>Iz7kq>(phWuFYjg~71xPKq{iPwgaFzo`h735{1u|PL&;op4?W}XU z*Zy62q5Zpw>NWW%j9#6bduP-Wx-U7vc>pnX^^HJeuMF)nYzFL z%R|OuztH2Mvi-7KmK*i^jJvfjk^KvfFB=8yB`>Tf2m;=skPWJI`bo3orf~30518bt<-Gc+ep2#?If-gL z;_V5G4bEA`J=zvwI~Q@$Og=!W8uwTmkeO|h{T!d3G}TRwN4S(@6%mj>r>tEd-;I6xK}CyHNR z`W}vjd36p~^P67IHm7n0WplM~-h0G4d(^lQdh*;f$GS9QH}m7A_@SjdB<{Q@lSpks z#9Z>MGSepD!)70Z0=($IJ>f|tC992?O1@XfyaXPp;h$rKrsx6fGn7zu0DK-m%11pb zGs9l*hMI>!-euGLyZpfz$09N2tK7I|b;S-_#kFUjE5M#v)sglMJH-hP9PYzL!(X=C z&l?pTPZ)^!L+CzJldxTEnRX$U#7DonI=OJLC|?k4#%1GNfv4AB1Wnw!xI3XLtci;D z>-ZQ7cE%tm1TrT|p*;#G65?!pEWW|rV?DJVanShnI9f(F!n8!3pJz=ASgeotHM#nQlcCth-Uv8eYLIFq|3 z$8;wJtnCMzOA2y}?03AoxqP{&<<^LHq+AC=(zuu(*k+;i3vxtnzWwUcSRvqT@9p9U z6B$%<@gcw_XUet5{BmU@iP+3ij=x_$z4QHD)k`HvNGXwccALGY(cnw0iuw^T!X3kM zCPp%7p}~l8b7j81O$PF3Yj&4)EbM@*agLVppE|pzn$sS(tEqN45aMSbu8N?*|P}v74M2!K~C@*$2i}SB=KKK-lw5%5K-;( zx7f;>L=##Ydm&d@RA~naR#0%3 z%Jt(5o)V(kBwAXNS$kQ*X>zg{Hz$*p)jQ~CPvPAOXWSlU?UV&`;kEB#yUYYnQYm~( zM{Wz^qIPF1>EY9Qm zs(bJSW9*o|Vh+{F4kmXlq<#GjIhTPKk38K-n5^lF$9s-<)ehAI3h7s(%ZAM}PxI~BVn6$b^R>=qIM4`F$ zHJIDKBpfOts&!OC?+vc@YFza+(}>X6gGd#)^)Y1hg_B@0JN)W{o&aj8uTC07^&Ms0 z+%4m=-h-4rU;#PK3cr=COqN7gJd2o&8|~IR-aaTjI5t4v;163AT%imiB9*B`OHKYd z7NM%=d}-LtFW0pp5c*3wNhme>^b+O=nYY9$&%s0Sj+J~*BL>Kh_`#Nl)sIOAZg z@t&kUUg#t5=ox78pG2wvT1_sF)`xJ~q{34riYgi$4F=znBeG~miClofeMJwEaUBJtDa?9tQBUX0F$_zoU8SmzfCfb$uMED{p)utjDJe)DYI z|CEyh*7Tn9ST3$vSa2?msDZYHy%xc@6F?0j`BW54t!2@(cVeLa`6Iqa(Vt=&R~pre z+kdK%&@j?q&W~Vtepw;nuBC_|N39bWl{VjCMLK`6Dg076ctt`Gz>vl+96WWc@{?M> zSc-4f6T=QQ^XGcPBDe*8N z6p)h91fy@X^D`W}r!QrGa69d*j; z0IVCMHC8T5WH;YpbB8+~JA^kzJs&&r?!uzKV&i7BhyG;ZzAYoGHQ!UkNW2O?$))({W;@58;aMHIOGn@%AJsy8Vz3^2q^tH9}wG*@PwtEx+0T9114@iWE zUr?7HBqqQw1{UQ4fy6){TD17Y{{Xmo*gDw<{W}08DkdN-1{V4k;A9w1`UrUTj~R44 r?0o~QyzKxowjS1Yj4Ezc4tB5YtZak42JFNil>jOVn(|e$mT&$CkHH7} diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png b/io-vector/build/docs/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png deleted file mode 100644 index 7e8ebc180a2d2a74739059799407b8b7b57a9092..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4549 zcmeHK2U8PFw@yL`geFb85=9ZD1*F$df}vOGyaXvKy$K2df>fnT5l|3bse%xZCPhLK zq(s2bG?a)Sy-1T5a?x+*n|uGmeP(CR*`0mn>^?hl=A6f-#y6Q6_!s~H0J9!S#~c6v zp1FW6dYZF&QcwTzY=gzr&=N^tVEF&>Uj<|d!K-Hi*#?;#TL5@jZ-D7d+aKjhUB2ay za7XiT$P6-HQsvS@8Ne>u30;%65Ra9O$98#q8tPF*3bZzTz*N?kB)u+wBUmd+0T!5D z*<^r#Xj1>ZovB|~<30Q0ri+GeWcuAh#6Q2zf&gzD+|&Ui&|W~DEuelV+rTsX$43El z`#jYFfOD>TI+~UbzO6elx{w;!AbqIU%Q;US-y3k0y&ZS`{PXJ9%GKuT? zA=YB~_}-7h}grk~UMM~1{IJu5z36&nH&VPs=tlLlQ$TWf}@j0@_1Mr{7PN}kZ@ zU@9N%V%HL9eSE z*BdLzdW%d9Pf1SA5`lAsx?6C@pGL*pIra&^83Gx%WYG^8aT%R?OG4Ou=0P3R5)KZ5 z2&PGFszDp$u%zsXBYLrEImJ}xFS--_mkY=#l)@OKCnEoMOo8S*eqcoB^(_J&4tmM< zs4&xp4^NNgy&HVP!O(^_6JQclp)V-Ib9=q9aWcaz*Gx~fED_HM%LFsYU%*S)OnQwc zjLYYoLk)hxsCi6qp^!9HRp8G%b|f68yfB?n<^DBz9!E*WgJ2gV*g5_E7alHp*g2_wbc8Pw7*-B9ToxV53c2rO-Vs4Px{7M!NqIXUcMSHv1cqfD&&RnMQs) z8771gCX+j09M{&*+~vB&SSU^b{}8I6?+$$T9I*OL*{LYxAHX;*iW?dX43jc> zp~TZQLjbC#e#FPvV$ou|K+q=`%KR&iGq0m)&%Qcc{(18s?cH)B<=dn&oKq#&CVm$KVlo#Io;OGBX$ckfqw0sl%9n2giktQ~NFXr`I; z@h650el?%I!6y~!d;+G2vdswoOkzni?&A=OT9T`SipWyQFEyIunl_G*e?HE^ zx7hkb*WF(Q-{^pB`|k8FH76TXH6UL4I}2h>bLnbqDDskSJx^zYBqL{y$Sn($8Qire zMAVY2aEEb~T~WwSd>Zm#SF3TtfRem42m@SaPkNC3#AX)UgT%TW=5u7S=dxp|3h~tk+8yZee}?!M9HI@f1WTU?%HqiNq#8O^RmBZ`M8nW z4|fZvl;5BN{Lb=BYDGdiZ)y8 zAJE}UL0VRg6Y7k--*#>qd}SW1`t(XXl);%iKi{ne!56tAR#KrNk#?YdO;$EPr~Ghg zL?F4G51g8yyaYA|gz0Frg48>AICegIAO6!sUwFPVn!UV}NVFIh?iYutyf9vPz5yy( z6DHSbg~R&3N2@w%ro3d+aztG`xPRDrWGn*Y&;syq!6%Nw=lpy*v1>S; zz{fdE9!dF+My~C&wlU5dQQi|liohaCEU{7=clSmk*wsDU+doSXunDD0ppEf~z7_WK zr+{Ip?==2A3sWeggPH~cD#9z$y`Scm$bJE%)>E|H9P>`Q=3WWq&5Gckv?(2+idix- z=}@U*Mw5z1u`6g?w5skq?WtvLzqBse`dg0I`$C5Hc0=;s zkPHED_%Qv>At$X$ZQoAYc=|i@^yMF^9@eeSh=MAFRi5FHuyr-LC*Z!C9W%qiV99!$ z+O4V2zvRN1wsMwg1WGvGv~LqgOA2pQZi~E#pY5Lj`j`sW1jcRidq&GPu(oq7&iz*W zKqyJ$uZ1uC=#zeW>zJF-nx-gt-}Ak+qN{)H+eFKjl(8fvzoS10rN}hbM=2ZHn7&EW z&8^#HYV0+@3zAc}_pVhH22dU+MW5s4HwjodZU|T(EZaZ2D1Vuc&fO1}CSck5&kdJ% zi5gTPGKuKSk8XiGTl>tjIdMWO%>rJ^?&*|Ie1H+ zQLN{pqOrow2FVb%V>X_jBIhzH6s6~oS_oYp;iE>C%Z8w|lf!Ev?jfhYkP?FOAJ=__ zr3Ndn*>IP;iK|Ccxw##$W6H7snuYuHC7o)bP}ir&X4B|!Zd3cDm`a244dW*}1CN%5 zXbw16r3xZMsYF85zpYIaVr} z?@&!YCHZY9Dhmzcwq`}f17^3P{$})GtY|@wRkgs2TGgSwUV|As8%gAY&4}SLTG6V7 zW4_tEA;9}Q!A@(ZaEcrzDlf2bSL%{R)ka6gH9z06;tUEGAxQhi>~Q}sg1^506i46bzM;PHOzX~mY*`jhIiS}ZN2&$pmjO9S=Mj>^wMj=hEu zl~8}2{%}WDK+?okXRZA{H+!LjL{Qw9wi7vK1jiPkap+~_ak9^lCE_h!OeGWGGC-f1 zVRpAm`}*sOCzi+Ga`RF(!KxOX_nSKFZ%-ou%u?^0ue8}s6S?Xo-QGlc{EYuH{+mQ} z>M!OEuy)pxcgz<<{Cz|GC0u}FhbpDfLsov{TnAe9J`HN1 za$1aaKcULuO}iD`>6xOm$wW+_K_~{}#cJyGb!F&r_u_WE*8>}sUhJ6ueSj+chaBTO z_5$EOo-Ic;$S9Ktg;7Yrv0}eqi8w*$7sq2td!fj=Cb#w8?(xBoqj;W#K&Bk`$}tA3 z9AGH_)V?G6ZC=jUdQlN6RDFWODgd0RQQ;0q(jfFwegfKM0~6S+>;@7olQV~&k49?f4c6ReTPQa($S^cob|b_kZ$#iX{C8Kz*x0%0 zo>cBW9N_VWlazSRa?1##MXSou-fxeD!_&QLemU3-p!Hs?V4m6Uct-_K_|&bHnK!W$ zV;63=dGgzIvcKFCOuQk~(75AeyWPI#G+g@N6{x%iJmUeHX;4Zap?8EBjG*?Rg>>ai z2KP;zLI>J)rrvOVNW5NFP3LK%e~$B;2#8-H>%?dKvqQey7_%N$0BA{1=_#M`>JpGj zx^=X=@Ue4rw&8wAx+E@QbDpFk)D;j9<|OP%PJua#2WVcDDKfA63c=(IOQ-ItOLyLj z#xi9OEcg{vTTL1PH0YM4?khk(&TzrkU^aY+ypr5 z{jp4uL+LRby+u5hgmq)J$>w4X_2hrqq;M%gOnCFRl<7qk=J7~NV(r#;uVaI=;k)yH z3s|;iNg&Le8;yH+`qw4sWA#bWtE1?ftr!s26wPW{TB4{eZ7}vcT{CttS+z#yeHZD` z!Dm{7xPVwM1jvxV5cImPfv~WUzB0lD0V?KmAfl1#yl9`E3o(FJ-W+yQ`0C&D)y6G7Fqei&raMZE$9ts7fa z4f4?J_L;XiwLe#tFZPq{Hi=d2HL_a#J6156HfF@TAh; z*?Y}c7mP70lKYjiy#yEAjAE=?L_%I!DCR2DHw8zdS^Oe`Q{pKe%3AToxCN@8lKi~y z{NBUBt1t6X6V9;2e1t)uN}rcE_dBkxip3*do}=#z;&-%u?-?GxK;Dbzs!>Q^*6ptj zm^eD>*BoA?nOOnx9cmrMao0O|mq-wu>SauA6^XMeyN#cZXde*AQjDKU-aV#`nCYM! zK93Mnh)oEUJD3C2u*7fg1Z6u(rIWt=TFIqI@vO6HP*2{$Nfzqqt)jply2Pr`P1<{K zAJze>9Iexn7%VzWXJ<9dI_s1qgpT?U{aFjU?#mtfXwP1}`wno0q-!-Ch4te$o&7NO zv0K{_tOX8j$%GwNi1XUiA4V4r(b+)i-C0MYc`g)V`!_Vllu=)fmSLWy3MWmjV{~>( z2}Qmx;l8gN7vOQhu1Ct|e;v2u<}Z#5f0Ri`pg-r)`~A!ONc0I6kHauS0UE#sMlq4I z%K6CTTyOG<7_>u(<5A(mz`ps}+2ji&AfFQ+KjMEIGm>t=ebp$kBvqJzq Mq_Ix57W&cu0AIB!=l}o! diff --git a/io-vector/build/docs/javadoc/script-dir/jquery-3.5.1.min.js b/io-vector/build/docs/javadoc/script-dir/jquery-3.5.1.min.js deleted file mode 100644 index b061403..0000000 --- a/io-vector/build/docs/javadoc/script-dir/jquery-3.5.1.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("
"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"