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 a7f591f..0000000 Binary files a/io-vector/build/docs/javadoc/resources/glass.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/resources/x.png b/io-vector/build/docs/javadoc/resources/x.png deleted file mode 100644 index 30548a7..0000000 Binary files a/io-vector/build/docs/javadoc/resources/x.png and /dev/null differ 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 34abd18..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png deleted file mode 100644 index f058a93..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_65_dadada_1x400.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png deleted file mode 100644 index 2ce04c1..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_dadada_1x400.png and /dev/null differ 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 a90afb8..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png and /dev/null differ 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 dbe091f..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/io-vector/build/docs/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png deleted file mode 100644 index 5dc3593..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_222222_256x240.png b/io-vector/build/docs/javadoc/script-dir/images/ui-icons_222222_256x240.png deleted file mode 100644 index e723e17..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_222222_256x240.png and /dev/null differ 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 1f5f497..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_2e83ff_256x240.png and /dev/null differ diff --git a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_454545_256x240.png b/io-vector/build/docs/javadoc/script-dir/images/ui-icons_454545_256x240.png deleted file mode 100644 index 618f5b0..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_454545_256x240.png and /dev/null differ 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 ee5e33f..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_888888_256x240.png and /dev/null differ 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 7e8ebc1..0000000 Binary files a/io-vector/build/docs/javadoc/script-dir/images/ui-icons_cd0a0a_256x240.png and /dev/null differ 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:"
    ",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("
      ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("
      ").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("
      ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(t("
      ").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("
      ").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete}); \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/script-dir/jquery-ui.structure.min.css b/io-vector/build/docs/javadoc/script-dir/jquery-ui.structure.min.css deleted file mode 100644 index e880892..0000000 --- a/io-vector/build/docs/javadoc/script-dir/jquery-ui.structure.min.css +++ /dev/null @@ -1,5 +0,0 @@ -/*! jQuery UI - v1.12.1 - 2018-12-06 -* http://jqueryui.com -* Copyright jQuery Foundation and other contributors; Licensed MIT */ - -.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/script.js b/io-vector/build/docs/javadoc/script.js deleted file mode 100644 index 4428408..0000000 --- a/io-vector/build/docs/javadoc/script.js +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2013, 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. - */ - -var moduleSearchIndex; -var packageSearchIndex; -var typeSearchIndex; -var memberSearchIndex; -var tagSearchIndex; -function loadScripts(doc, tag) { - createElem(doc, tag, 'search.js'); - - createElem(doc, tag, 'module-search-index.js'); - createElem(doc, tag, 'package-search-index.js'); - createElem(doc, tag, 'type-search-index.js'); - createElem(doc, tag, 'member-search-index.js'); - createElem(doc, tag, 'tag-search-index.js'); -} - -function createElem(doc, tag, path) { - var script = doc.createElement(tag); - var scriptElement = doc.getElementsByTagName(tag)[0]; - script.src = pathtoroot + path; - scriptElement.parentNode.insertBefore(script, scriptElement); -} - -function show(type) { - count = 0; - for (var key in data) { - var row = document.getElementById(key); - if ((data[key] & type) !== 0) { - row.style.display = ''; - row.className = (count++ % 2) ? rowColor : altColor; - } - else - row.style.display = 'none'; - } - updateTabs(type); -} - -function updateTabs(type) { - var firstRow = document.getElementById(Object.keys(data)[0]); - var table = firstRow.closest('table'); - for (var value in tabs) { - var tab = document.getElementById(tabs[value][0]); - if (value == type) { - tab.className = activeTableTab; - tab.innerHTML = tabs[value][1]; - tab.setAttribute('aria-selected', true); - tab.setAttribute('tabindex',0); - table.setAttribute('aria-labelledby', tabs[value][0]); - } - else { - tab.className = tableTab; - tab.setAttribute('aria-selected', false); - tab.setAttribute('tabindex',-1); - tab.setAttribute('onclick', "show("+ value + ")"); - tab.innerHTML = tabs[value][1]; - } - } -} - -function switchTab(e) { - if (e.keyCode == 37 || e.keyCode == 38) { - $("[aria-selected=true]").prev().click().focus(); - e.preventDefault(); - } - if (e.keyCode == 39 || e.keyCode == 40) { - $("[aria-selected=true]").next().click().focus(); - e.preventDefault(); - } -} - -var updateSearchResults = function() {}; - -function indexFilesLoaded() { - return moduleSearchIndex - && packageSearchIndex - && typeSearchIndex - && memberSearchIndex - && tagSearchIndex; -} diff --git a/io-vector/build/docs/javadoc/search.js b/io-vector/build/docs/javadoc/search.js deleted file mode 100644 index 9d19ba1..0000000 --- a/io-vector/build/docs/javadoc/search.js +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright (c) 2015, 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. - */ - -var noResult = {l: "No results found"}; -var loading = {l: "Loading search index..."}; -var catModules = "Modules"; -var catPackages = "Packages"; -var catTypes = "Types"; -var catMembers = "Members"; -var catSearchTags = "SearchTags"; -var highlight = "$&"; -var searchPattern = ""; -var RANKING_THRESHOLD = 2; -var NO_MATCH = 0xffff; -var MAX_RESULTS_PER_CATEGORY = 500; -var UNNAMED = ""; -function escapeHtml(str) { - return str.replace(//g, ">"); -} -function getHighlightedText(item, matcher) { - var escapedItem = escapeHtml(item); - return escapedItem.replace(matcher, highlight); -} -function getURLPrefix(ui) { - var urlPrefix=""; - var slash = "/"; - if (ui.item.category === catModules) { - return ui.item.l + slash; - } else if (ui.item.category === catPackages && ui.item.m) { - return ui.item.m + slash; - } else if (ui.item.category === catTypes || ui.item.category === catMembers) { - if (ui.item.m) { - urlPrefix = ui.item.m + slash; - } else { - $.each(packageSearchIndex, function(index, item) { - if (item.m && ui.item.p === item.l) { - urlPrefix = item.m + slash; - } - }); - } - return urlPrefix; - } - return urlPrefix; -} -function makeCamelCaseRegex(term) { - var pattern = ""; - var isWordToken = false; - term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { - if (index > 0) { - // whitespace between identifiers is significant - pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; - } - var tokens = w.split(/(?=[A-Z,.()<>[\/])/); - for (var i = 0; i < tokens.length; i++) { - var s = tokens[i]; - if (s === "") { - continue; - } - pattern += $.ui.autocomplete.escapeRegex(s); - isWordToken = /\w$/.test(s); - if (isWordToken) { - pattern += "([a-z0-9_$<>\\[\\]]*?)"; - } - } - }); - return pattern; -} -function createMatcher(pattern, flags) { - var isCamelCase = /[A-Z]/.test(pattern); - return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); -} -var watermark = 'Search'; -$(function() { - $("#search").val(''); - $("#search").prop("disabled", false); - $("#reset").prop("disabled", false); - $("#search").val(watermark).addClass('watermark'); - $("#search").blur(function() { - if ($(this).val().length == 0) { - $(this).val(watermark).addClass('watermark'); - } - }); - $("#search").on('click keydown paste', function() { - if ($(this).val() == watermark) { - $(this).val('').removeClass('watermark'); - } - }); - $("#reset").click(function() { - $("#search").val(''); - $("#search").focus(); - }); - $("#search").focus(); - $("#search")[0].setSelectionRange(0, 0); -}); -$.widget("custom.catcomplete", $.ui.autocomplete, { - _create: function() { - this._super(); - this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); - }, - _renderMenu: function(ul, items) { - var rMenu = this; - var currentCategory = ""; - rMenu.menu.bindings = $(); - $.each(items, function(index, item) { - var li; - if (item.category && item.category !== currentCategory) { - ul.append("
    • " + item.category + "
    • "); - currentCategory = item.category; - } - li = rMenu._renderItemData(ul, item); - if (item.category) { - li.attr("aria-label", item.category + " : " + item.l); - li.attr("class", "result-item"); - } else { - li.attr("aria-label", item.l); - li.attr("class", "result-item"); - } - }); - }, - _renderItem: function(ul, item) { - var label = ""; - var matcher = createMatcher(escapeHtml(searchPattern), "g"); - if (item.category === catModules) { - label = getHighlightedText(item.l, matcher); - } else if (item.category === catPackages) { - label = getHighlightedText(item.l, matcher); - } else if (item.category === catTypes) { - label = (item.p && item.p !== UNNAMED) - ? getHighlightedText(item.p + "." + item.l, matcher) - : getHighlightedText(item.l, matcher); - } else if (item.category === catMembers) { - label = (item.p && item.p !== UNNAMED) - ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher) - : getHighlightedText(item.c + "." + item.l, matcher); - } else if (item.category === catSearchTags) { - label = getHighlightedText(item.l, matcher); - } else { - label = item.l; - } - var li = $("
    • ").appendTo(ul); - var div = $("
      ").appendTo(li); - if (item.category === catSearchTags) { - if (item.d) { - div.html(label + " (" + item.h + ")
      " - + item.d + "
      "); - } else { - div.html(label + " (" + item.h + ")"); - } - } else { - if (item.m) { - div.html(item.m + "/" + label); - } else { - div.html(label); - } - } - return li; - } -}); -function rankMatch(match, category) { - if (!match) { - return NO_MATCH; - } - var index = match.index; - var input = match.input; - var leftBoundaryMatch = 2; - var periferalMatch = 0; - var delta = 0; - // make sure match is anchored on a left word boundary - if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index - 1] || "_" === input[index]) { - leftBoundaryMatch = 0; - } else if (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input)) { - leftBoundaryMatch = 1; - } - var matchEnd = index + match[0].length; - var leftParen = input.indexOf("("); - // exclude peripheral matches - if (category !== catModules && category !== catSearchTags) { - var endOfName = leftParen > -1 ? leftParen : input.length; - var delim = category === catPackages ? "/" : "."; - if (leftParen > -1 && leftParen < index) { - periferalMatch += 2; - } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { - periferalMatch += 2; - } - } - for (var i = 1; i < match.length; i++) { - // lower ranking if parts of the name are missing - if (match[i]) - delta += match[i].length; - } - if (category === catTypes) { - // lower ranking if a type name contains unmatched camel-case parts - if (/[A-Z]/.test(input.substring(matchEnd))) - delta += 5; - if (/[A-Z]/.test(input.substring(0, index))) - delta += 5; - } - return leftBoundaryMatch + periferalMatch + (delta / 200); - -} -function doSearch(request, response) { - var result = []; - var newResults = []; - - searchPattern = makeCamelCaseRegex(request.term); - if (searchPattern === "") { - return this.close(); - } - var camelCaseMatcher = createMatcher(searchPattern, ""); - var boundaryMatcher = createMatcher("\\b" + searchPattern, ""); - - function concatResults(a1, a2) { - a2.sort(function(e1, e2) { - return e1.ranking - e2.ranking; - }); - a1 = a1.concat(a2.map(function(e) { return e.item; })); - a2.length = 0; - return a1; - } - - if (moduleSearchIndex) { - $.each(moduleSearchIndex, function(index, item) { - item.category = catModules; - var ranking = rankMatch(boundaryMatcher.exec(item.l), catModules); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ ranking: ranking, item: item }); - } - return newResults.length < MAX_RESULTS_PER_CATEGORY; - }); - result = concatResults(result, newResults); - } - if (packageSearchIndex) { - $.each(packageSearchIndex, function(index, item) { - item.category = catPackages; - var name = (item.m && request.term.indexOf("/") > -1) - ? (item.m + "/" + item.l) - : item.l; - var ranking = rankMatch(boundaryMatcher.exec(name), catPackages); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ ranking: ranking, item: item }); - } - return newResults.length < MAX_RESULTS_PER_CATEGORY; - }); - result = concatResults(result, newResults); - } - if (typeSearchIndex) { - $.each(typeSearchIndex, function(index, item) { - item.category = catTypes; - var name = request.term.indexOf(".") > -1 - ? item.p + "." + item.l - : item.l; - var ranking = rankMatch(camelCaseMatcher.exec(name), catTypes); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ ranking: ranking, item: item }); - } - return newResults.length < MAX_RESULTS_PER_CATEGORY; - }); - result = concatResults(result, newResults); - } - if (memberSearchIndex) { - $.each(memberSearchIndex, function(index, item) { - item.category = catMembers; - var name = request.term.indexOf(".") > -1 - ? item.p + "." + item.c + "." + item.l - : item.l; - var ranking = rankMatch(camelCaseMatcher.exec(name), catMembers); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ ranking: ranking, item: item }); - } - return newResults.length < MAX_RESULTS_PER_CATEGORY; - }); - result = concatResults(result, newResults); - } - if (tagSearchIndex) { - $.each(tagSearchIndex, function(index, item) { - item.category = catSearchTags; - var ranking = rankMatch(boundaryMatcher.exec(item.l), catSearchTags); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ ranking: ranking, item: item }); - } - return newResults.length < MAX_RESULTS_PER_CATEGORY; - }); - result = concatResults(result, newResults); - } - if (!indexFilesLoaded()) { - updateSearchResults = function() { - doSearch(request, response); - } - result.unshift(loading); - } else { - updateSearchResults = function() {}; - } - response(result); -} -$(function() { - $("#search").catcomplete({ - minLength: 1, - delay: 300, - source: doSearch, - response: function(event, ui) { - if (!ui.content.length) { - ui.content.push(noResult); - } else { - $("#search").empty(); - } - }, - autoFocus: true, - focus: function(event, ui) { - return false; - }, - position: { - collision: "flip" - }, - select: function(event, ui) { - if (ui.item.category) { - var url = getURLPrefix(ui); - if (ui.item.category === catModules) { - url += "module-summary.html"; - } else if (ui.item.category === catPackages) { - if (ui.item.u) { - url = ui.item.u; - } else { - url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; - } - } else if (ui.item.category === catTypes) { - if (ui.item.u) { - url = ui.item.u; - } else if (ui.item.p === UNNAMED) { - url += ui.item.l + ".html"; - } else { - url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; - } - } else if (ui.item.category === catMembers) { - if (ui.item.p === UNNAMED) { - url += ui.item.c + ".html" + "#"; - } else { - url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; - } - if (ui.item.u) { - url += ui.item.u; - } else { - url += ui.item.l; - } - } else if (ui.item.category === catSearchTags) { - url += ui.item.u; - } - if (top !== window) { - parent.classFrame.location = pathtoroot + url; - } else { - window.location.href = pathtoroot + url; - } - $("#search").focus(); - } - } - }); -}); diff --git a/io-vector/build/docs/javadoc/stylesheet.css b/io-vector/build/docs/javadoc/stylesheet.css deleted file mode 100644 index 79a9d97..0000000 --- a/io-vector/build/docs/javadoc/stylesheet.css +++ /dev/null @@ -1,792 +0,0 @@ -/* - * Javadoc style sheet - */ - -@import url('resources/fonts/dejavu.css'); - -/* - * Styles for individual HTML elements. - * - * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular - * HTML element throughout the page. - */ - -body { - background-color:#ffffff; - color:#353833; - font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:14px; - margin:0; - padding:0; - height:100%; - width:100%; -} -iframe { - margin:0; - padding:0; - height:100%; - width:100%; - overflow-y:scroll; - border:none; -} -a:link, a:visited { - text-decoration:none; - color:#4A6782; -} -a[href]:hover, a[href]:focus { - text-decoration:none; - color:#bb7a2a; -} -a[name] { - color:#353833; -} -pre { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; -} -h1 { - font-size:20px; -} -h2 { - font-size:18px; -} -h3 { - font-size:16px; -} -h4 { - font-size:13px; -} -h5 { - font-size:12px; -} -h6 { - font-size:11px; -} -ul { - list-style-type:disc; -} -code, tt { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; - margin-top:8px; - line-height:1.4em; -} -dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - padding-top:4px; -} -table tr td dt code { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - vertical-align:top; - padding-top:4px; -} -sup { - font-size:8px; -} -button { - font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size: 14px; -} -/* - * Styles for HTML generated by javadoc. - * - * These are style classes that are used by the standard doclet to generate HTML documentation. - */ - -/* - * Styles for document title and copyright. - */ -.clear { - clear:both; - height:0px; - overflow:hidden; -} -.about-language { - float:right; - padding:0px 21px; - font-size:11px; - z-index:200; - margin-top:-9px; -} -.legal-copy { - margin-left:.5em; -} -.tab { - background-color:#0066FF; - color:#ffffff; - padding:8px; - width:5em; - font-weight:bold; -} -/* - * Styles for navigation bar. - */ -@media screen { - .flex-box { - position:fixed; - display:flex; - flex-direction:column; - height: 100%; - width: 100%; - } - .flex-header { - flex: 0 0 auto; - } - .flex-content { - flex: 1 1 auto; - overflow-y: auto; - } -} -.top-nav { - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.bottom-nav { - margin-top:10px; - background-color:#4D7A97; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; - font-size:12px; -} -.sub-nav { - background-color:#dee3e9; - float:left; - width:100%; - overflow:hidden; - font-size:12px; -} -.sub-nav div { - clear:left; - float:left; - padding:0 0 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list { - padding-top:5px; -} -ul.nav-list, ul.sub-nav-list { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.nav-list li{ - list-style:none; - float:left; - padding: 5px 6px; - text-transform:uppercase; -} -.sub-nav .nav-list-search { - float:right; - margin:0 0 0 0; - padding:5px 6px; - clear:none; -} -.nav-list-search label { - position:relative; - right:-16px; -} -ul.sub-nav-list li { - list-style:none; - float:left; - padding-top:10px; -} -.top-nav a:link, .top-nav a:active, .top-nav a:visited, .bottom-nav a:link, .bottom-nav a:active, .bottom-nav a:visited { - color:#FFFFFF; - text-decoration:none; - text-transform:uppercase; -} -.top-nav a:hover, .bottom-nav a:hover { - text-decoration:none; - color:#bb7a2a; - text-transform:uppercase; -} -.nav-bar-cell1-rev { - background-color:#F8981D; - color:#253441; - margin: auto 5px; -} -.skip-nav { - position:absolute; - top:auto; - left:-9999px; - overflow:hidden; -} -/* - * Hide navigation links and search box in print layout - */ -@media print { - ul.nav-list, div.sub-nav { - display:none; - } -} -/* - * Styles for page header and footer. - */ -.title { - color:#2c4557; - margin:10px 0; -} -.sub-title { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 15px 0; - padding:0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:13px; -} -/* - * Styles for headings. - */ -body.class-declaration-page .summary h2, -body.class-declaration-page .details h2, -body.class-use-page h2, -body.module-declaration-page .block-list h2 { - font-style: italic; - padding:0; - margin:15px 0; -} -body.class-declaration-page .summary h3, -body.class-declaration-page .details h3, -body.class-declaration-page .summary .inherited-list h2 { - background-color:#dee3e9; - border:1px solid #d0d9e0; - margin:0 0 6px -8px; - padding:7px 5px; -} -/* - * Styles for page layout containers. - */ -main { - clear:both; - padding:10px 20px; - position:relative; -} -dl.notes > dt { - font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; - font-size:12px; - font-weight:bold; - margin:10px 0 0 0; - color:#4E4E4E; -} -dl.notes > dd { - margin:5px 0 10px 0px; - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} -dl.name-value > dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -dl.name-value > dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* - * Styles for lists. - */ -li.circle { - list-style:circle; -} -ul.horizontal li { - display:inline; - font-size:0.9em; -} -div.inheritance { - margin:0; - padding:0; -} -div.inheritance div.inheritance { - margin-left:2em; -} -ul.block-list, -ul.details-list, -ul.member-list, -ul.summary-list { - margin:10px 0 10px 0; - padding:0; -} -ul.block-list > li, -ul.details-list > li, -ul.member-list > li, -ul.summary-list > li { - list-style:none; - margin-bottom:15px; - line-height:1.4; -} -table tr td dl, table tr td dl dt, table tr td dl dd { - margin-top:0; - margin-bottom:1px; -} -/* - * Styles for tables. - */ -.overview-summary table, .member-summary table, .type-summary table, .use-summary table, .constants-summary table, .deprecated-summary table, -.requires-summary table, .packages-summary table, .provides-summary table, .uses-summary table, .system-properties-summary table { - width:100%; - border-spacing:0; - border-left:1px solid #EEE; - border-right:1px solid #EEE; - border-bottom:1px solid #EEE; -} -.overview-summary table, .member-summary table, .requires-summary table, .packages-summary table, -.provides-summary table, .uses-summary table, .system-properties-summary table { - padding:0px; -} -.overview-summary caption, .member-summary caption, .type-summary caption, -.use-summary caption, .constants-summary caption, .deprecated-summary caption, -.requires-summary caption, .packages-summary caption, .provides-summary caption, -.uses-summary caption, .system-properties-summary caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#253441; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0px; - padding-top:10px; - padding-left:1px; - margin:0px; - white-space:pre; -} -.constants-summary caption a:link, .constants-summary caption a:visited, -.use-summary caption a:link, .use-summary caption a:visited { - color:#1f389c; -} -.overview-summary caption a:link, .member-summary caption a:link, .type-summary caption a:link, -.deprecated-summary caption a:link, -.requires-summary caption a:link, .packages-summary caption a:link, .provides-summary caption a:link, -.uses-summary caption a:link, -.overview-summary caption a:hover, .member-summary caption a:hover, .type-summary caption a:hover, -.use-summary caption a:hover, .constants-summary caption a:hover, .deprecated-summary caption a:hover, -.requires-summary caption a:hover, .packages-summary caption a:hover, .provides-summary caption a:hover, -.uses-summary caption a:hover, -.overview-summary caption a:active, .member-summary caption a:active, .type-summary caption a:active, -.use-summary caption a:active, .constants-summary caption a:active, .deprecated-summary caption a:active, -.requires-summary caption a:active, .packages-summary caption a:active, .provides-summary caption a:active, -.uses-summary caption a:active, -.overview-summary caption a:visited, .member-summary caption a:visited, .type-summary caption a:visited, -.deprecated-summary caption a:visited, -.requires-summary caption a:visited, .packages-summary caption a:visited, .provides-summary caption a:visited, -.uses-summary caption a:visited { - color:#FFFFFF; -} -.overview-summary caption span, .member-summary caption span, .type-summary caption span, -.use-summary caption span, .constants-summary caption span, .deprecated-summary caption span, -.requires-summary caption span, .packages-summary caption span, .provides-summary caption span, -.uses-summary caption span, .system-properties-summary caption span { - white-space:nowrap; - padding-top:5px; - padding-left:12px; - padding-right:12px; - padding-bottom:7px; - display:inline-block; - float:left; - background-color:#F8981D; - border: none; - height:16px; -} - -div.table-tabs > button { - border: none; - cursor: pointer; - padding: 5px 12px 7px 12px; - font-weight: bold; - margin-right: 3px; -} -div.table-tabs > button.active-table-tab { - background: #F8981D; - color: #253441; -} -div.table-tabs > button.table-tab { - background: #4D7A97; - color: #FFFFFF; -} - -.row-color th, -.alt-color th { - font-weight:normal; -} -.overview-summary td, .member-summary td, .type-summary td, -.use-summary td, .constants-summary td, .deprecated-summary td, -.requires-summary td, .packages-summary td, .provides-summary td, -.uses-summary td, .system-properties-summary td { - text-align:left; - padding:0px 0px 12px 10px; -} -th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .use-summary th, -.constants-summary th, .packages-summary th, td.col-first, td.col-second, td.col-last, .use-summary td, -.constants-summary td, .system-properties-summary th { - vertical-align:top; - padding-right:0px; - padding-top:8px; - padding-bottom:3px; -} -th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .constants-summary th, -.packages-summary th { - background:#dee3e9; - text-align:left; - padding:8px 3px 3px 7px; -} -td.col-first, th.col-first { - font-size:13px; -} -td.col-second, th.col-second, td.col-last, th.col-constructor-name, th.col-deprecated-item-name, th.col-last { - font-size:13px; -} -.constants-summary th, .packages-summary th { - font-size:13px; -} -.provides-summary th.col-first, .provides-summary th.col-last, .provides-summary td.col-first, -.provides-summary td.col-last { - white-space:normal; - font-size:13px; -} -.overview-summary td.col-first, .overview-summary th.col-first, -.requires-summary td.col-first, .requires-summary th.col-first, -.packages-summary td.col-first, .packages-summary td.col-second, .packages-summary th.col-first, .packages-summary th, -.uses-summary td.col-first, .uses-summary th.col-first, -.provides-summary td.col-first, .provides-summary th.col-first, -.member-summary td.col-first, .member-summary th.col-first, -.member-summary td.col-second, .member-summary th.col-second, .member-summary th.col-constructor-name, -.type-summary td.col-first, .type-summary th.col-first { - vertical-align:top; -} -.packages-summary th.col-last, .packages-summary td.col-last { - white-space:normal; -} -td.col-first a:link, td.col-first a:visited, -td.col-second a:link, td.col-second a:visited, -th.col-first a:link, th.col-first a:visited, -th.col-second a:link, th.col-second a:visited, -th.col-constructor-name a:link, th.col-constructor-name a:visited, -th.col-deprecated-item-name a:link, th.col-deprecated-item-name a:visited, -.constant-values-container td a:link, .constant-values-container td a:visited, -.all-classes-container td a:link, .all-classes-container td a:visited, -.all-packages-container td a:link, .all-packages-container td a:visited { - font-weight:bold; -} -.table-sub-heading-color { - background-color:#EEEEFF; -} -.alt-color, .alt-color th { - background-color:#FFFFFF; -} -.row-color, .row-color th { - background-color:#EEEEEF; -} -/* - * Styles for contents. - */ -.description pre { - margin-top:0; -} -.deprecated-content { - margin:0; - padding:10px 0; -} -div.block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; -} -td.col-last div { - padding-top:0px; -} -td.col-last a { - padding-bottom:3px; -} -div.member-signature { - font-family:'DejaVu Sans Mono', monospace; - font-size:14px; - margin:14px 0; - white-space: pre-wrap; -} -div.member-signature span.annotations { - white-space: pre-wrap; -} -div.member-signature span.type-parameters-long, -div.member-signature span.parameters, -div.member-signature span.exceptions { - display: inline-block; - vertical-align: top; - white-space: pre; -} -div.member-signature span.type-parameters { - white-space: normal; -} -/* - * Styles for formatting effect. - */ -.source-line-no { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:10px; -} -.block { - display:block; - margin:0 10px 5px 0; - color:#474747; -} -.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, -.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, -.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link { - font-weight:bold; -} -.deprecation-comment, .help-footnote, .interface-name { - font-style:italic; -} -.deprecation-block { - font-size:14px; - font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; - border-style:solid; - border-width:thin; - border-radius:10px; - padding:10px; - margin-bottom:10px; - margin-right:10px; - display:inline-block; -} -div.block div.deprecation-comment, div.block div.block span.emphasized-phrase, -div.block div.block span.interface-name { - font-style:normal; -} -/* - * Styles specific to HTML5 elements. - */ -main, nav, header, footer, section { - display:block; -} -/* - * Styles for javadoc search. - */ -.ui-autocomplete-category { - font-weight:bold; - font-size:15px; - padding:7px 0 7px 3px; - background-color:#4D7A97; - color:#FFFFFF; -} -.result-item { - font-size:13px; -} -.ui-autocomplete { - max-height:85%; - max-width:65%; - overflow-y:scroll; - overflow-x:scroll; - white-space:nowrap; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); -} -ul.ui-autocomplete { - position:fixed; - z-index:999999; -} -ul.ui-autocomplete li { - float:left; - clear:both; - width:100%; -} -.result-highlight { - font-weight:bold; -} -#search { - background-image:url('resources/glass.png'); - background-size:13px; - background-repeat:no-repeat; - background-position:2px 3px; - padding-left:20px; - position:relative; - right:-18px; - width:400px; -} -#reset { - background-color: rgb(255,255,255); - background-image:url('resources/x.png'); - background-position:center; - background-repeat:no-repeat; - background-size:12px; - border:0 none; - width:16px; - height:16px; - position:relative; - left:-4px; - top:-4px; - font-size:0px; -} -.watermark { - color:#545454; -} -.search-tag-desc-result { - font-style:italic; - font-size:11px; -} -.search-tag-holder-result { - font-style:italic; - font-size:12px; -} -.search-tag-result:target { - background-color:yellow; -} -.module-graph span { - display:none; - position:absolute; -} -.module-graph:hover span { - display:block; - margin: -100px 0 0 100px; - z-index: 1; -} -.inherited-list { - margin: 10px 0 10px 0; -} -section.description { - line-height: 1.4; -} -.summary section[class$="-summary"], .details section[class$="-details"], -.class-uses .detail, .serialized-class-details { - padding: 0px 20px 5px 10px; - border: 1px solid #ededed; - background-color: #f8f8f8; -} -.inherited-list, section[class$="-details"] .detail { - padding:0 0 5px 8px; - background-color:#ffffff; - border:none; -} -.vertical-separator { - padding: 0 5px; -} -ul.help-section-list { - margin: 0; -} -/* - * Indicator icon for external links. - */ -main a[href*="://"]::after { - content:""; - display:inline-block; - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); - background-size:100% 100%; - width:7px; - height:7px; - margin-left:2px; - margin-bottom:4px; -} -main a[href*="://"]:hover::after, -main a[href*="://"]:focus::after { - background-image:url('data:image/svg+xml; utf8, \ - \ - \ - '); -} - -/* - * Styles for user-provided tables. - * - * borderless: - * No borders, vertical margins, styled caption. - * This style is provided for use with existing doc comments. - * In general, borderless tables should not be used for layout purposes. - * - * plain: - * Plain borders around table and cells, vertical margins, styled caption. - * Best for small tables or for complex tables for tables with cells that span - * rows and columns, when the "striped" style does not work well. - * - * striped: - * Borders around the table and vertical borders between cells, striped rows, - * vertical margins, styled caption. - * Best for tables that have a header row, and a body containing a series of simple rows. - */ - -table.borderless, -table.plain, -table.striped { - margin-top: 10px; - margin-bottom: 10px; -} -table.borderless > caption, -table.plain > caption, -table.striped > caption { - font-weight: bold; - font-size: smaller; -} -table.borderless th, table.borderless td, -table.plain th, table.plain td, -table.striped th, table.striped td { - padding: 2px 5px; -} -table.borderless, -table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, -table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { - border: none; -} -table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { - background-color: transparent; -} -table.plain { - border-collapse: collapse; - border: 1px solid black; -} -table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { - background-color: transparent; -} -table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, -table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { - border: 1px solid black; -} -table.striped { - border-collapse: collapse; - border: 1px solid black; -} -table.striped > thead { - background-color: #E3E3E3; -} -table.striped > thead > tr > th, table.striped > thead > tr > td { - border: 1px solid black; -} -table.striped > tbody > tr:nth-child(even) { - background-color: #EEE -} -table.striped > tbody > tr:nth-child(odd) { - background-color: #FFF -} -table.striped > tbody > tr > th, table.striped > tbody > tr > td { - border-left: 1px solid black; - border-right: 1px solid black; -} -table.striped > tbody > tr > th { - font-weight: normal; -} diff --git a/io-vector/build/docs/javadoc/tag-search-index.js b/io-vector/build/docs/javadoc/tag-search-index.js deleted file mode 100644 index 0367dae..0000000 --- a/io-vector/build/docs/javadoc/tag-search-index.js +++ /dev/null @@ -1 +0,0 @@ -tagSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/io-vector/build/docs/javadoc/type-search-index.js b/io-vector/build/docs/javadoc/type-search-index.js deleted file mode 100644 index a9a7afd..0000000 --- a/io-vector/build/docs/javadoc/type-search-index.js +++ /dev/null @@ -1 +0,0 @@ -typeSearchIndex = [{"p":"org.xbib.graphics.io.vector.filters","l":"AbsoluteToRelativeTransformsFilter"},{"p":"org.xbib.graphics.io.vector.commands","l":"AffineTransformCommand"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"org.xbib.graphics.io.vector.util","l":"AlphaToMaskOp"},{"p":"org.xbib.graphics.io.vector.util","l":"ASCII85EncodeStream"},{"p":"org.xbib.graphics.io.vector.util","l":"Base64EncodeStream"},{"p":"org.xbib.graphics.io.vector","l":"Command"},{"p":"org.xbib.graphics.io.vector.commands","l":"CreateCommand"},{"p":"org.xbib.graphics.io.vector.util","l":"DataUtils"},{"p":"org.xbib.graphics.io.vector.commands","l":"DisposeCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"DrawImageCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"DrawShapeCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"DrawStringCommand"},{"p":"org.xbib.graphics.io.vector.eps","l":"EPSGraphics2D"},{"p":"org.xbib.graphics.io.vector.eps","l":"EPSProcessor"},{"p":"org.xbib.graphics.io.vector.eps","l":"EPSProcessorResult"},{"p":"org.xbib.graphics.io.vector.filters","l":"FillPaintedShapeAsImageFilter"},{"p":"org.xbib.graphics.io.vector.commands","l":"FillShapeCommand"},{"p":"org.xbib.graphics.io.vector.filters","l":"Filter"},{"p":"org.xbib.graphics.io.vector.util","l":"FlateEncodeStream"},{"p":"org.xbib.graphics.io.vector.util","l":"FormattingWriter"},{"p":"org.xbib.graphics.io.vector.pdf","l":"GeneratedPayload"},{"p":"org.xbib.graphics.io.vector","l":"GraphicsState"},{"p":"org.xbib.graphics.io.vector.util","l":"GraphicsUtils"},{"p":"org.xbib.graphics.io.vector.commands","l":"Group"},{"p":"org.xbib.graphics.io.vector.filters","l":"GroupingFilter"},{"p":"org.xbib.graphics.io.vector.util","l":"ImageDataStream"},{"p":"org.xbib.graphics.io.vector.util","l":"ImageDataStream.Interleaving"},{"p":"org.xbib.graphics.io.vector.util","l":"VectorHints.Key"},{"p":"org.xbib.graphics.io.vector.util","l":"LineWrapOutputStream"},{"p":"org.xbib.graphics.io.vector.filters","l":"OptimizeFilter"},{"p":"org.xbib.graphics.io.vector","l":"PageSize"},{"p":"org.xbib.graphics.io.vector.pdf","l":"Payload"},{"p":"org.xbib.graphics.io.vector.pdf","l":"PDFGraphics2D"},{"p":"org.xbib.graphics.io.vector.pdf","l":"PDFObject"},{"p":"org.xbib.graphics.io.vector.pdf","l":"PDFProcessor"},{"p":"org.xbib.graphics.io.vector.pdf","l":"PDFProcessorResult"},{"p":"org.xbib.graphics.io.vector","l":"Processor"},{"p":"org.xbib.graphics.io.vector","l":"ProcessorResult"},{"p":"org.xbib.graphics.io.vector.pdf","l":"Resources"},{"p":"org.xbib.graphics.io.vector.commands","l":"RotateCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"ScaleCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetBackgroundCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetClipCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetColorCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetCompositeCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetFontCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetHintCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetPaintCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetStrokeCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetTransformCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"SetXORModeCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"ShearCommand"},{"p":"org.xbib.graphics.io.vector.pdf","l":"SizePayload"},{"p":"org.xbib.graphics.io.vector.filters","l":"StateChangeGroupingFilter"},{"p":"org.xbib.graphics.io.vector.commands","l":"StateCommand"},{"p":"org.xbib.graphics.io.vector.svg","l":"SVGGraphics2D"},{"p":"org.xbib.graphics.io.vector.svg","l":"SVGProcessor"},{"p":"org.xbib.graphics.io.vector.svg","l":"SVGProcessorResult"},{"p":"org.xbib.graphics.io.vector.commands","l":"TransformCommand"},{"p":"org.xbib.graphics.io.vector.commands","l":"TranslateCommand"},{"p":"org.xbib.graphics.io.vector.util","l":"VectorHints.Value"},{"p":"org.xbib.graphics.io.vector","l":"VectorGraphics2D"},{"p":"org.xbib.graphics.io.vector","l":"VectorGraphicsFormat"},{"p":"org.xbib.graphics.io.vector.util","l":"VectorHints"}];updateSearchResults(); \ No newline at end of file diff --git a/io-vector/build/libs/io-vector-3.0.0-javadoc.jar b/io-vector/build/libs/io-vector-3.0.0-javadoc.jar deleted file mode 100644 index 25cd4f6..0000000 Binary files a/io-vector/build/libs/io-vector-3.0.0-javadoc.jar and /dev/null differ diff --git a/io-vector/build/libs/io-vector-3.0.0-sources.jar b/io-vector/build/libs/io-vector-3.0.0-sources.jar deleted file mode 100644 index f1e11d7..0000000 Binary files a/io-vector/build/libs/io-vector-3.0.0-sources.jar and /dev/null differ diff --git a/io-vector/build/libs/io-vector-3.0.0.jar b/io-vector/build/libs/io-vector-3.0.0.jar index ae846a1..a69f94f 100644 Binary files a/io-vector/build/libs/io-vector-3.0.0.jar and b/io-vector/build/libs/io-vector-3.0.0.jar differ diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.html deleted file mode 100644 index f14f528..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest - - - - - -
      -

      Class org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.016s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testAbsoluteAndRelativeTransformsIdentical()0.001spassed
      testRelativeTransformAfterDispose()0spassed
      testTranslateCorrect()0.015spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.html deleted file mode 100644 index 4e96fc9..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest - - - - - -
      -

      Class org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      2
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      1.956s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testFillShapeNotReplacedWithoutPaintCommand()0.013spassed
      testFillShapeReplacedWithDrawImage()1.943spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FilterTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FilterTest.html deleted file mode 100644 index 390144f..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.FilterTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.filters.FilterTest - - - - - -
      -

      Class org.xbib.graphics.io.filters.FilterTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.004s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      duplicate()0.001spassed
      filterAll()0.001spassed
      filterNone()0.002spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.GroupingFilterTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.GroupingFilterTest.html deleted file mode 100644 index 1cf1308..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.filters.GroupingFilterTest.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.filters.GroupingFilterTest - - - - - -
      -

      Class org.xbib.graphics.io.filters.GroupingFilterTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      1
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.001s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - -
      TestDurationResult
      filtered()0.001spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.GraphicsStateTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.GraphicsStateTest.html deleted file mode 100644 index 899fc52..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.GraphicsStateTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.GraphicsStateTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.GraphicsStateTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.003s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testClone()0.002spassed
      testEquals()0.001spassed
      testInitialStateIsEqualToGraphics2D()0spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.TestUtilsTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.TestUtilsTest.html deleted file mode 100644 index 403186a..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.TestUtilsTest.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.TestUtilsTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.TestUtilsTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      8
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.005s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testParseXMLAttributesTag()0.001spassed
      testParseXmlCDATA()0spassed
      testParseXmlComment()0spassed
      testParseXmlDeclaration()0spassed
      testParseXmlDoctype()0.001spassed
      testParseXmlEmptyElement()0.001spassed
      testParseXmlEndTag()0.001spassed
      testParseXmlStartTag()0.001spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.VectorGraphics2DTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.VectorGraphics2DTest.html deleted file mode 100644 index ebf146f..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.VectorGraphics2DTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.VectorGraphics2DTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.VectorGraphics2DTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.006s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testCreateEmitsCreateCommand()0spassed
      testDisposeCommandEmitted()0.001spassed
      testEmptyVectorGraphics2DStartsWithCreateCommand()0.005spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.eps.EPSProcessorTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.eps.EPSProcessorTest.html deleted file mode 100644 index 5f6a3f7..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.eps.EPSProcessorTest.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.eps.EPSProcessorTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.eps.EPSProcessorTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      1
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      3.546s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - -
      TestDurationResult
      envelopeForEmptyDocument()3.546spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.pdf.PDFProcessorTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.pdf.PDFProcessorTest.html deleted file mode 100644 index 1b4711a..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.pdf.PDFProcessorTest.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.pdf.PDFProcessorTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.pdf.PDFProcessorTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      1
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.312s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - -
      TestDurationResult
      envelopeForEmptyDocument()0.312spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.svg.SVGProcessorTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.svg.SVGProcessorTest.html deleted file mode 100644 index f8513e6..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.svg.SVGProcessorTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.svg.SVGProcessorTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.svg.SVGProcessorTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.103s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      drawShapeBlack()0.004spassed
      envelopeForEmptyDocument()0.005spassed
      fillShapeBlack()0.094spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.html deleted file mode 100644 index 781e7e4..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.002s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testEmpty()0.001spassed
      testEncoding()0.001spassed
      testPadding()0spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.html deleted file mode 100644 index 10f3724..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.util.Base64EncodeStreamTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.util.Base64EncodeStreamTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.002s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testEmpty()0spassed
      testEncoding()0.001spassed
      testPadding()0.001spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.DataUtilsTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.DataUtilsTest.html deleted file mode 100644 index 55192d3..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.DataUtilsTest.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.util.DataUtilsTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.util.DataUtilsTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.002s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      stripComplexSubstring()0.001spassed
      stripTrailingSpaces()0.001spassed
      stripTrailingSpacesInMultilineString()0spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.GraphicsUtilsTest.html b/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.GraphicsUtilsTest.html deleted file mode 100644 index 39a7f0b..0000000 --- a/io-vector/build/reports/tests/test/classes/org.xbib.graphics.io.vector.util.GraphicsUtilsTest.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - -Test results - Class org.xbib.graphics.io.vector.util.GraphicsUtilsTest - - - - - -
      -

      Class org.xbib.graphics.io.vector.util.GraphicsUtilsTest

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      4
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.397s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Tests

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      TestDurationResult
      testCloneShape()0.003spassed
      testHasAlpha()0spassed
      testPhysicalFont()0.370spassed
      testToBufferedImage()0.024spassed
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/css/base-style.css b/io-vector/build/reports/tests/test/css/base-style.css deleted file mode 100644 index 4afa73e..0000000 --- a/io-vector/build/reports/tests/test/css/base-style.css +++ /dev/null @@ -1,179 +0,0 @@ - -body { - margin: 0; - padding: 0; - font-family: sans-serif; - font-size: 12pt; -} - -body, a, a:visited { - color: #303030; -} - -#content { - padding-left: 50px; - padding-right: 50px; - padding-top: 30px; - padding-bottom: 30px; -} - -#content h1 { - font-size: 160%; - margin-bottom: 10px; -} - -#footer { - margin-top: 100px; - font-size: 80%; - white-space: nowrap; -} - -#footer, #footer a { - color: #a0a0a0; -} - -#line-wrapping-toggle { - vertical-align: middle; -} - -#label-for-line-wrapping-toggle { - vertical-align: middle; -} - -ul { - margin-left: 0; -} - -h1, h2, h3 { - white-space: nowrap; -} - -h2 { - font-size: 120%; -} - -ul.tabLinks { - padding-left: 0; - padding-top: 10px; - padding-bottom: 10px; - overflow: auto; - min-width: 800px; - width: auto !important; - width: 800px; -} - -ul.tabLinks li { - float: left; - height: 100%; - list-style: none; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - margin-bottom: 0; - -moz-border-radius: 7px; - border-radius: 7px; - margin-right: 25px; - border: solid 1px #d4d4d4; - background-color: #f0f0f0; -} - -ul.tabLinks li:hover { - background-color: #fafafa; -} - -ul.tabLinks li.selected { - background-color: #c5f0f5; - border-color: #c5f0f5; -} - -ul.tabLinks a { - font-size: 120%; - display: block; - outline: none; - text-decoration: none; - margin: 0; - padding: 0; -} - -ul.tabLinks li h2 { - margin: 0; - padding: 0; -} - -div.tab { -} - -div.selected { - display: block; -} - -div.deselected { - display: none; -} - -div.tab table { - min-width: 350px; - width: auto !important; - width: 350px; - border-collapse: collapse; -} - -div.tab th, div.tab table { - border-bottom: solid #d0d0d0 1px; -} - -div.tab th { - text-align: left; - white-space: nowrap; - padding-left: 6em; -} - -div.tab th:first-child { - padding-left: 0; -} - -div.tab td { - white-space: nowrap; - padding-left: 6em; - padding-top: 5px; - padding-bottom: 5px; -} - -div.tab td:first-child { - padding-left: 0; -} - -div.tab td.numeric, div.tab th.numeric { - text-align: right; -} - -span.code { - display: inline-block; - margin-top: 0em; - margin-bottom: 1em; -} - -span.code pre { - font-size: 11pt; - padding-top: 10px; - padding-bottom: 10px; - padding-left: 10px; - padding-right: 10px; - margin: 0; - background-color: #f7f7f7; - border: solid 1px #d0d0d0; - min-width: 700px; - width: auto !important; - width: 700px; -} - -span.wrapped pre { - word-wrap: break-word; - white-space: pre-wrap; - word-break: break-all; -} - -label.hidden { - display: none; -} \ No newline at end of file diff --git a/io-vector/build/reports/tests/test/css/style.css b/io-vector/build/reports/tests/test/css/style.css deleted file mode 100644 index 3dc4913..0000000 --- a/io-vector/build/reports/tests/test/css/style.css +++ /dev/null @@ -1,84 +0,0 @@ - -#summary { - margin-top: 30px; - margin-bottom: 40px; -} - -#summary table { - border-collapse: collapse; -} - -#summary td { - vertical-align: top; -} - -.breadcrumbs, .breadcrumbs a { - color: #606060; -} - -.infoBox { - width: 110px; - padding-top: 15px; - padding-bottom: 15px; - text-align: center; -} - -.infoBox p { - margin: 0; -} - -.counter, .percent { - font-size: 120%; - font-weight: bold; - margin-bottom: 8px; -} - -#duration { - width: 125px; -} - -#successRate, .summaryGroup { - border: solid 2px #d0d0d0; - -moz-border-radius: 10px; - border-radius: 10px; -} - -#successRate { - width: 140px; - margin-left: 35px; -} - -#successRate .percent { - font-size: 180%; -} - -.success, .success a { - color: #008000; -} - -div.success, #successRate.success { - background-color: #bbd9bb; - border-color: #008000; -} - -.failures, .failures a { - color: #b60808; -} - -.skipped, .skipped a { - color: #c09853; -} - -div.failures, #successRate.failures { - background-color: #ecdada; - border-color: #b60808; -} - -ul.linkList { - padding-left: 0; -} - -ul.linkList li { - list-style: none; - margin-bottom: 5px; -} diff --git a/io-vector/build/reports/tests/test/index.html b/io-vector/build/reports/tests/test/index.html deleted file mode 100644 index 6b4ccca..0000000 --- a/io-vector/build/reports/tests/test/index.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - -Test results - Test Summary - - - - - -
      -

      Test Summary

      -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      41
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      6.355s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Packages

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      PackageTestsFailuresIgnoredDurationSuccess rate
      -org.xbib.graphics.io.filters -9001.977s100%
      -org.xbib.graphics.io.vector -14000.014s100%
      -org.xbib.graphics.io.vector.eps -1003.546s100%
      -org.xbib.graphics.io.vector.pdf -1000.312s100%
      -org.xbib.graphics.io.vector.svg -3000.103s100%
      -org.xbib.graphics.io.vector.util -13000.403s100%
      -
      -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest -3000.016s100%
      -org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest -2001.956s100%
      -org.xbib.graphics.io.filters.FilterTest -3000.004s100%
      -org.xbib.graphics.io.filters.GroupingFilterTest -1000.001s100%
      -org.xbib.graphics.io.vector.GraphicsStateTest -3000.003s100%
      -org.xbib.graphics.io.vector.TestUtilsTest -8000.005s100%
      -org.xbib.graphics.io.vector.VectorGraphics2DTest -3000.006s100%
      -org.xbib.graphics.io.vector.eps.EPSProcessorTest -1003.546s100%
      -org.xbib.graphics.io.vector.pdf.PDFProcessorTest -1000.312s100%
      -org.xbib.graphics.io.vector.svg.SVGProcessorTest -3000.103s100%
      -org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest -3000.002s100%
      -org.xbib.graphics.io.vector.util.Base64EncodeStreamTest -3000.002s100%
      -org.xbib.graphics.io.vector.util.DataUtilsTest -3000.002s100%
      -org.xbib.graphics.io.vector.util.GraphicsUtilsTest -4000.397s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/js/report.js b/io-vector/build/reports/tests/test/js/report.js deleted file mode 100644 index 83bab4a..0000000 --- a/io-vector/build/reports/tests/test/js/report.js +++ /dev/null @@ -1,194 +0,0 @@ -(function (window, document) { - "use strict"; - - var tabs = {}; - - function changeElementClass(element, classValue) { - if (element.getAttribute("className")) { - element.setAttribute("className", classValue); - } else { - element.setAttribute("class", classValue); - } - } - - function getClassAttribute(element) { - if (element.getAttribute("className")) { - return element.getAttribute("className"); - } else { - return element.getAttribute("class"); - } - } - - function addClass(element, classValue) { - changeElementClass(element, getClassAttribute(element) + " " + classValue); - } - - function removeClass(element, classValue) { - changeElementClass(element, getClassAttribute(element).replace(classValue, "")); - } - - function initTabs() { - var container = document.getElementById("tabs"); - - tabs.tabs = findTabs(container); - tabs.titles = findTitles(tabs.tabs); - tabs.headers = findHeaders(container); - tabs.select = select; - tabs.deselectAll = deselectAll; - tabs.select(0); - - return true; - } - - function getCheckBox() { - return document.getElementById("line-wrapping-toggle"); - } - - function getLabelForCheckBox() { - return document.getElementById("label-for-line-wrapping-toggle"); - } - - function findCodeBlocks() { - var spans = document.getElementById("tabs").getElementsByTagName("span"); - var codeBlocks = []; - for (var i = 0; i < spans.length; ++i) { - if (spans[i].className.indexOf("code") >= 0) { - codeBlocks.push(spans[i]); - } - } - return codeBlocks; - } - - function forAllCodeBlocks(operation) { - var codeBlocks = findCodeBlocks(); - - for (var i = 0; i < codeBlocks.length; ++i) { - operation(codeBlocks[i], "wrapped"); - } - } - - function toggleLineWrapping() { - var checkBox = getCheckBox(); - - if (checkBox.checked) { - forAllCodeBlocks(addClass); - } else { - forAllCodeBlocks(removeClass); - } - } - - function initControls() { - if (findCodeBlocks().length > 0) { - var checkBox = getCheckBox(); - var label = getLabelForCheckBox(); - - checkBox.onclick = toggleLineWrapping; - checkBox.checked = false; - - removeClass(label, "hidden"); - } - } - - function switchTab() { - var id = this.id.substr(1); - - for (var i = 0; i < tabs.tabs.length; i++) { - if (tabs.tabs[i].id === id) { - tabs.select(i); - break; - } - } - - return false; - } - - function select(i) { - this.deselectAll(); - - changeElementClass(this.tabs[i], "tab selected"); - changeElementClass(this.headers[i], "selected"); - - while (this.headers[i].firstChild) { - this.headers[i].removeChild(this.headers[i].firstChild); - } - - var h2 = document.createElement("H2"); - - h2.appendChild(document.createTextNode(this.titles[i])); - this.headers[i].appendChild(h2); - } - - function deselectAll() { - for (var i = 0; i < this.tabs.length; i++) { - changeElementClass(this.tabs[i], "tab deselected"); - changeElementClass(this.headers[i], "deselected"); - - while (this.headers[i].firstChild) { - this.headers[i].removeChild(this.headers[i].firstChild); - } - - var a = document.createElement("A"); - - a.setAttribute("id", "ltab" + i); - a.setAttribute("href", "#tab" + i); - a.onclick = switchTab; - a.appendChild(document.createTextNode(this.titles[i])); - - this.headers[i].appendChild(a); - } - } - - function findTabs(container) { - return findChildElements(container, "DIV", "tab"); - } - - function findHeaders(container) { - var owner = findChildElements(container, "UL", "tabLinks"); - return findChildElements(owner[0], "LI", null); - } - - function findTitles(tabs) { - var titles = []; - - for (var i = 0; i < tabs.length; i++) { - var tab = tabs[i]; - var header = findChildElements(tab, "H2", null)[0]; - - header.parentNode.removeChild(header); - - if (header.innerText) { - titles.push(header.innerText); - } else { - titles.push(header.textContent); - } - } - - return titles; - } - - function findChildElements(container, name, targetClass) { - var elements = []; - var children = container.childNodes; - - for (var i = 0; i < children.length; i++) { - var child = children.item(i); - - if (child.nodeType === 1 && child.nodeName === name) { - if (targetClass && child.className.indexOf(targetClass) < 0) { - continue; - } - - elements.push(child); - } - } - - return elements; - } - - // Entry point. - - window.onload = function() { - initTabs(); - initControls(); - }; -} (window, window.document)); \ No newline at end of file diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.filters.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.filters.html deleted file mode 100644 index 46414bc..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.filters.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.filters - - - - - -
      -

      Package org.xbib.graphics.io.filters

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      9
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      1.977s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -AbsoluteToRelativeTransformsFilterTest -3000.016s100%
      -FillPaintedShapeAsImageFilterTest -2001.956s100%
      -FilterTest -3000.004s100%
      -GroupingFilterTest -1000.001s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.eps.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.eps.html deleted file mode 100644 index ed2fa13..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.eps.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.vector.eps - - - - - -
      -

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

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      1
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      3.546s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -EPSProcessorTest -1003.546s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.html deleted file mode 100644 index 11db431..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.vector - - - - - -
      -

      Package org.xbib.graphics.io.vector

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      14
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.014s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -GraphicsStateTest -3000.003s100%
      -TestUtilsTest -8000.005s100%
      -VectorGraphics2DTest -3000.006s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.pdf.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.pdf.html deleted file mode 100644 index 4797191..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.pdf.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.vector.pdf - - - - - -
      -

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

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      1
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.312s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -PDFProcessorTest -1000.312s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.svg.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.svg.html deleted file mode 100644 index 790872c..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.svg.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.vector.svg - - - - - -
      -

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

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      3
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.103s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -SVGProcessorTest -3000.103s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.util.html b/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.util.html deleted file mode 100644 index 3c61dde..0000000 --- a/io-vector/build/reports/tests/test/packages/org.xbib.graphics.io.vector.util.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - -Test results - Package org.xbib.graphics.io.vector.util - - - - - -
      -

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

      - -
      - - - - - -
      -
      - - - - - - - -
      -
      -
      13
      -

      tests

      -
      -
      -
      -
      0
      -

      failures

      -
      -
      -
      -
      0
      -

      ignored

      -
      -
      -
      -
      0.403s
      -

      duration

      -
      -
      -
      -
      -
      -
      100%
      -

      successful

      -
      -
      -
      -
      - -
      -

      Classes

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      ClassTestsFailuresIgnoredDurationSuccess rate
      -ASCII85EncodeStreamTest -3000.002s100%
      -Base64EncodeStreamTest -3000.002s100%
      -DataUtilsTest -3000.002s100%
      -GraphicsUtilsTest -4000.397s100%
      -
      -
      - -
      - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.xml deleted file mode 100644 index 7048c5c..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.xml deleted file mode 100644 index 29d9978..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FilterTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FilterTest.xml deleted file mode 100644 index fd9eb15..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.FilterTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.GroupingFilterTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.GroupingFilterTest.xml deleted file mode 100644 index 9ac5228..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.filters.GroupingFilterTest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.GraphicsStateTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.GraphicsStateTest.xml deleted file mode 100644 index 3cfa68e..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.GraphicsStateTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.TestUtilsTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.TestUtilsTest.xml deleted file mode 100644 index 807a49b..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.TestUtilsTest.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.VectorGraphics2DTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.VectorGraphics2DTest.xml deleted file mode 100644 index 0c0968b..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.VectorGraphics2DTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.eps.EPSProcessorTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.eps.EPSProcessorTest.xml deleted file mode 100644 index 63b28f7..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.eps.EPSProcessorTest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.pdf.PDFProcessorTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.pdf.PDFProcessorTest.xml deleted file mode 100644 index 884ab97..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.pdf.PDFProcessorTest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.svg.SVGProcessorTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.svg.SVGProcessorTest.xml deleted file mode 100644 index d1295dd..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.svg.SVGProcessorTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.xml deleted file mode 100644 index b4fdfc9..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.xml deleted file mode 100644 index 6ef4051..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.Base64EncodeStreamTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.DataUtilsTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.DataUtilsTest.xml deleted file mode 100644 index 0f97322..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.DataUtilsTest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.GraphicsUtilsTest.xml b/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.GraphicsUtilsTest.xml deleted file mode 100644 index 9a5a447..0000000 --- a/io-vector/build/test-results/test/TEST-org.xbib.graphics.io.vector.util.GraphicsUtilsTest.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/io-vector/build/test-results/test/binary/output.bin b/io-vector/build/test-results/test/binary/output.bin deleted file mode 100644 index e69de29..0000000 diff --git a/io-vector/build/test-results/test/binary/output.bin.idx b/io-vector/build/test-results/test/binary/output.bin.idx deleted file mode 100644 index f76dd23..0000000 Binary files a/io-vector/build/test-results/test/binary/output.bin.idx and /dev/null differ diff --git a/io-vector/build/test-results/test/binary/results.bin b/io-vector/build/test-results/test/binary/results.bin deleted file mode 100644 index 214794e..0000000 Binary files a/io-vector/build/test-results/test/binary/results.bin and /dev/null differ diff --git a/io-vector/build/tmp/compileJava/source-classes-mapping.txt b/io-vector/build/tmp/compileJava/source-classes-mapping.txt index 6dbfeb6..68c2313 100644 --- a/io-vector/build/tmp/compileJava/source-classes-mapping.txt +++ b/io-vector/build/tmp/compileJava/source-classes-mapping.txt @@ -6,30 +6,30 @@ org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.java org.xbib.graphics.io.vector.filters.StateChangeGroupingFilter org/xbib/graphics/io/vector/commands/TransformCommand.java org.xbib.graphics.io.vector.commands.TransformCommand -org/xbib/graphics/io/vector/PageSize.java - org.xbib.graphics.io.vector.PageSize +org/xbib/graphics/io/vector/eps/EPSGraphics2D.java + org.xbib.graphics.io.vector.eps.EPSGraphics2D org/xbib/graphics/io/vector/util/AlphaToMaskOp.java org.xbib.graphics.io.vector.util.AlphaToMaskOp org/xbib/graphics/io/vector/commands/SetFontCommand.java org.xbib.graphics.io.vector.commands.SetFontCommand org/xbib/graphics/io/vector/commands/ShearCommand.java org.xbib.graphics.io.vector.commands.ShearCommand -org/xbib/graphics/io/vector/commands/SetColorCommand.java - org.xbib.graphics.io.vector.commands.SetColorCommand +org/xbib/graphics/io/vector/pdf/Resources.java + org.xbib.graphics.io.vector.pdf.Resources org/xbib/graphics/io/vector/commands/SetPaintCommand.java org.xbib.graphics.io.vector.commands.SetPaintCommand org/xbib/graphics/io/vector/util/FlateEncodeStream.java org.xbib.graphics.io.vector.util.FlateEncodeStream -org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.java - org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter +org/xbib/graphics/io/vector/commands/DisposeCommand.java + org.xbib.graphics.io.vector.commands.DisposeCommand org/xbib/graphics/io/vector/commands/RotateCommand.java org.xbib.graphics.io.vector.commands.RotateCommand -org/xbib/graphics/io/vector/pdf/GeneratedPayload.java - org.xbib.graphics.io.vector.pdf.GeneratedPayload -org/xbib/graphics/io/vector/commands/AffineTransformCommand.java - org.xbib.graphics.io.vector.commands.AffineTransformCommand +org/xbib/graphics/io/vector/pdf/PDFProcessorResult.java + org.xbib.graphics.io.vector.pdf.PDFProcessorResult org/xbib/graphics/io/vector/ProcessorResult.java org.xbib.graphics.io.vector.ProcessorResult +org/xbib/graphics/io/vector/commands/AffineTransformCommand.java + org.xbib.graphics.io.vector.commands.AffineTransformCommand org/xbib/graphics/io/vector/util/GraphicsUtils.java org.xbib.graphics.io.vector.util.GraphicsUtils org.xbib.graphics.io.vector.util.GraphicsUtils$FontExpressivenessComparator @@ -37,8 +37,8 @@ org/xbib/graphics/io/vector/util/VectorHints.java org.xbib.graphics.io.vector.util.VectorHints org.xbib.graphics.io.vector.util.VectorHints$Key org.xbib.graphics.io.vector.util.VectorHints$Value -org/xbib/graphics/io/vector/Command.java - org.xbib.graphics.io.vector.Command +org/xbib/graphics/io/vector/commands/CreateCommand.java + org.xbib.graphics.io.vector.commands.CreateCommand org/xbib/graphics/io/vector/commands/StateCommand.java org.xbib.graphics.io.vector.commands.StateCommand org/xbib/graphics/io/vector/GraphicsState.java @@ -46,34 +46,34 @@ org/xbib/graphics/io/vector/GraphicsState.java org/xbib/graphics/io/vector/util/ImageDataStream.java org.xbib.graphics.io.vector.util.ImageDataStream org.xbib.graphics.io.vector.util.ImageDataStream$Interleaving -org/xbib/graphics/io/vector/util/Base64EncodeStream.java - org.xbib.graphics.io.vector.util.Base64EncodeStream +org/xbib/graphics/io/vector/util/FormattingWriter.java + org.xbib.graphics.io.vector.util.FormattingWriter org/xbib/graphics/io/vector/commands/ScaleCommand.java org.xbib.graphics.io.vector.commands.ScaleCommand org/xbib/graphics/io/vector/commands/FillShapeCommand.java org.xbib.graphics.io.vector.commands.FillShapeCommand org/xbib/graphics/io/vector/commands/SetCompositeCommand.java org.xbib.graphics.io.vector.commands.SetCompositeCommand -org/xbib/graphics/io/vector/commands/CreateCommand.java - org.xbib.graphics.io.vector.commands.CreateCommand +org/xbib/graphics/io/vector/eps/EPSProcessorResult.java + org.xbib.graphics.io.vector.eps.EPSProcessorResult module-info.java module-info -org/xbib/graphics/io/vector/pdf/Resources.java - org.xbib.graphics.io.vector.pdf.Resources +org/xbib/graphics/io/vector/eps/EPSProcessor.java + org.xbib.graphics.io.vector.eps.EPSProcessor org/xbib/graphics/io/vector/filters/Filter.java org.xbib.graphics.io.vector.filters.Filter org/xbib/graphics/io/vector/filters/GroupingFilter.java org.xbib.graphics.io.vector.filters.GroupingFilter -org/xbib/graphics/io/vector/Processor.java - org.xbib.graphics.io.vector.Processor -org/xbib/graphics/io/vector/commands/SetBackgroundCommand.java - org.xbib.graphics.io.vector.commands.SetBackgroundCommand +org/xbib/graphics/io/vector/svg/SVGProcessorResult.java + org.xbib.graphics.io.vector.svg.SVGProcessorResult +org/xbib/graphics/io/vector/pdf/PDFGraphics2D.java + org.xbib.graphics.io.vector.pdf.PDFGraphics2D org/xbib/graphics/io/vector/pdf/PDFObject.java org.xbib.graphics.io.vector.pdf.PDFObject org/xbib/graphics/io/vector/util/ASCII85EncodeStream.java org.xbib.graphics.io.vector.util.ASCII85EncodeStream -org/xbib/graphics/io/vector/util/LineWrapOutputStream.java - org.xbib.graphics.io.vector.util.LineWrapOutputStream +org/xbib/graphics/io/vector/pdf/PDFProcessor.java + org.xbib.graphics.io.vector.pdf.PDFProcessor org/xbib/graphics/io/vector/commands/SetHintCommand.java org.xbib.graphics.io.vector.commands.SetHintCommand org/xbib/graphics/io/vector/commands/TranslateCommand.java @@ -86,10 +86,10 @@ org/xbib/graphics/io/vector/commands/DrawShapeCommand.java org.xbib.graphics.io.vector.commands.DrawShapeCommand org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.java org.xbib.graphics.io.vector.filters.FillPaintedShapeAsImageFilter -org/xbib/graphics/io/vector/commands/SetXORModeCommand.java - org.xbib.graphics.io.vector.commands.SetXORModeCommand -org/xbib/graphics/io/vector/commands/DrawImageCommand.java - org.xbib.graphics.io.vector.commands.DrawImageCommand +org/xbib/graphics/io/vector/pdf/SizePayload.java + org.xbib.graphics.io.vector.pdf.SizePayload +org/xbib/graphics/io/vector/svg/SVGGraphics2D.java + org.xbib.graphics.io.vector.svg.SVGGraphics2D org/xbib/graphics/io/vector/filters/OptimizeFilter.java org.xbib.graphics.io.vector.filters.OptimizeFilter org/xbib/graphics/io/vector/commands/SetClipCommand.java @@ -98,31 +98,31 @@ org/xbib/graphics/io/vector/pdf/Payload.java org.xbib.graphics.io.vector.pdf.Payload org/xbib/graphics/io/vector/commands/DrawStringCommand.java org.xbib.graphics.io.vector.commands.DrawStringCommand -org/xbib/graphics/io/vector/util/FormattingWriter.java - org.xbib.graphics.io.vector.util.FormattingWriter -org/xbib/graphics/io/vector/pdf/SizePayload.java - org.xbib.graphics.io.vector.pdf.SizePayload -org/xbib/graphics/io/vector/eps/EPSProcessorResult.java - org.xbib.graphics.io.vector.eps.EPSProcessorResult -org/xbib/graphics/io/vector/commands/DisposeCommand.java - org.xbib.graphics.io.vector.commands.DisposeCommand +org/xbib/graphics/io/vector/util/Base64EncodeStream.java + org.xbib.graphics.io.vector.util.Base64EncodeStream +org/xbib/graphics/io/vector/commands/SetXORModeCommand.java + org.xbib.graphics.io.vector.commands.SetXORModeCommand +org/xbib/graphics/io/vector/commands/SetColorCommand.java + org.xbib.graphics.io.vector.commands.SetColorCommand +org/xbib/graphics/io/vector/Command.java + org.xbib.graphics.io.vector.Command org/xbib/graphics/io/vector/VectorGraphics2D.java org.xbib.graphics.io.vector.VectorGraphics2D -org/xbib/graphics/io/vector/svg/SVGGraphics2D.java - org.xbib.graphics.io.vector.svg.SVGGraphics2D -org/xbib/graphics/io/vector/pdf/PDFGraphics2D.java - org.xbib.graphics.io.vector.pdf.PDFGraphics2D -org/xbib/graphics/io/vector/pdf/PDFProcessor.java - org.xbib.graphics.io.vector.pdf.PDFProcessor -org/xbib/graphics/io/vector/pdf/PDFProcessorResult.java - org.xbib.graphics.io.vector.pdf.PDFProcessorResult +org/xbib/graphics/io/vector/pdf/GeneratedPayload.java + org.xbib.graphics.io.vector.pdf.GeneratedPayload +org/xbib/graphics/io/vector/util/LineWrapOutputStream.java + org.xbib.graphics.io.vector.util.LineWrapOutputStream org/xbib/graphics/io/vector/util/DataUtils.java org.xbib.graphics.io.vector.util.DataUtils -org/xbib/graphics/io/vector/svg/SVGProcessorResult.java - org.xbib.graphics.io.vector.svg.SVGProcessorResult -org/xbib/graphics/io/vector/eps/EPSGraphics2D.java - org.xbib.graphics.io.vector.eps.EPSGraphics2D -org/xbib/graphics/io/vector/eps/EPSProcessor.java - org.xbib.graphics.io.vector.eps.EPSProcessor +org/xbib/graphics/io/vector/Processor.java + org.xbib.graphics.io.vector.Processor +org/xbib/graphics/io/vector/commands/DrawImageCommand.java + org.xbib.graphics.io.vector.commands.DrawImageCommand +org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.java + org.xbib.graphics.io.vector.filters.AbsoluteToRelativeTransformsFilter org/xbib/graphics/io/vector/svg/SVGProcessor.java org.xbib.graphics.io.vector.svg.SVGProcessor +org/xbib/graphics/io/vector/PageSize.java + org.xbib.graphics.io.vector.PageSize +org/xbib/graphics/io/vector/commands/SetBackgroundCommand.java + org.xbib.graphics.io.vector.commands.SetBackgroundCommand diff --git a/io-vector/build/tmp/compileTestJava/source-classes-mapping.txt b/io-vector/build/tmp/compileTestJava/source-classes-mapping.txt deleted file mode 100644 index a68b65b..0000000 --- a/io-vector/build/tmp/compileTestJava/source-classes-mapping.txt +++ /dev/null @@ -1,70 +0,0 @@ -org/xbib/graphics/io/filters/GroupingFilterTest.java - org.xbib.graphics.io.filters.GroupingFilterTest - org.xbib.graphics.io.filters.GroupingFilterTest$1 -org/xbib/graphics/io/visual/PaintTest.java - org.xbib.graphics.io.visual.PaintTest -org/xbib/graphics/io/visual/FontTest.java - org.xbib.graphics.io.visual.FontTest -org/xbib/graphics/io/vector/util/Base64EncodeStreamTest.java - org.xbib.graphics.io.vector.util.Base64EncodeStreamTest -org/xbib/graphics/io/vector/util/DataUtilsTest.java - org.xbib.graphics.io.vector.util.DataUtilsTest -org/xbib/graphics/io/visual/StrokeTest.java - org.xbib.graphics.io.visual.StrokeTest -org/xbib/graphics/io/visual/TransformTest.java - org.xbib.graphics.io.visual.TransformTest -org/xbib/graphics/io/vector/TestUtils.java - org.xbib.graphics.io.vector.TestUtils - org.xbib.graphics.io.vector.TestUtils$Template - org.xbib.graphics.io.vector.TestUtils$XMLFragment - org.xbib.graphics.io.vector.TestUtils$XMLFragment$FragmentType -org/xbib/graphics/io/filters/FilterTest.java - org.xbib.graphics.io.filters.FilterTest - org.xbib.graphics.io.filters.FilterTest$1 - org.xbib.graphics.io.filters.FilterTest$2 - org.xbib.graphics.io.filters.FilterTest$3 -org/xbib/graphics/io/vector/TestUtilsTest.java - org.xbib.graphics.io.vector.TestUtilsTest -org/xbib/graphics/io/vector/GraphicsStateTest.java - org.xbib.graphics.io.vector.GraphicsStateTest -org/xbib/graphics/io/visual/ColorTest.java - org.xbib.graphics.io.visual.ColorTest -org/xbib/graphics/io/visual/ClippingTest.java - org.xbib.graphics.io.visual.ClippingTest -org/xbib/graphics/io/visual/EmptyFileTest.java - org.xbib.graphics.io.visual.EmptyFileTest -org/xbib/graphics/io/vector/util/ASCII85EncodeStreamTest.java - org.xbib.graphics.io.vector.util.ASCII85EncodeStreamTest -org/xbib/graphics/io/vector/util/GraphicsUtilsTest.java - org.xbib.graphics.io.vector.util.GraphicsUtilsTest - org.xbib.graphics.io.vector.util.GraphicsUtilsTest$1 -org/xbib/graphics/io/visual/ImageTest.java - org.xbib.graphics.io.visual.ImageTest -org/xbib/graphics/io/visual/SwingExportTest.java - org.xbib.graphics.io.visual.SwingExportTest -org/xbib/graphics/io/visual/ShapesTest.java - org.xbib.graphics.io.visual.ShapesTest -org/xbib/graphics/io/visual/TestBrowser.java - org.xbib.graphics.io.visual.TestBrowser - org.xbib.graphics.io.visual.TestBrowser$1 - org.xbib.graphics.io.visual.TestBrowser$2 - org.xbib.graphics.io.visual.TestBrowser$3 - org.xbib.graphics.io.visual.TestBrowser$ImageComparisonPanel - org.xbib.graphics.io.visual.TestBrowser$ImageDisplayPanel - org.xbib.graphics.io.visual.TestBrowser$ImageFormat -org/xbib/graphics/io/visual/CharacterTest.java - org.xbib.graphics.io.visual.CharacterTest -org/xbib/graphics/io/filters/FillPaintedShapeAsImageFilterTest.java - org.xbib.graphics.io.filters.FillPaintedShapeAsImageFilterTest -org/xbib/graphics/io/vector/pdf/PDFProcessorTest.java - org.xbib.graphics.io.vector.pdf.PDFProcessorTest -org/xbib/graphics/io/vector/VectorGraphics2DTest.java - org.xbib.graphics.io.vector.VectorGraphics2DTest -org/xbib/graphics/io/vector/eps/EPSProcessorTest.java - org.xbib.graphics.io.vector.eps.EPSProcessorTest -org/xbib/graphics/io/vector/svg/SVGProcessorTest.java - org.xbib.graphics.io.vector.svg.SVGProcessorTest -org/xbib/graphics/io/visual/AbstractTest.java - org.xbib.graphics.io.visual.AbstractTest -org/xbib/graphics/io/filters/AbsoluteToRelativeTransformsFilterTest.java - org.xbib.graphics.io.filters.AbsoluteToRelativeTransformsFilterTest diff --git a/io-vector/build/tmp/javadoc/javadoc.options b/io-vector/build/tmp/javadoc/javadoc.options deleted file mode 100644 index b5a992b..0000000 --- a/io-vector/build/tmp/javadoc/javadoc.options +++ /dev/null @@ -1,69 +0,0 @@ ---module-path '/Users/joerg/Projects/github/jprante/graphics/io-vector/build/classes/java/main' --Xdoclint:none '-quiet' --d '/Users/joerg/Projects/github/jprante/graphics/io-vector/build/docs/javadoc' --doctitle 'io-vector 3.0.0 API' --notimestamp --quiet --windowtitle 'io-vector 3.0.0 API' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/module-info.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/Command.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/AffineTransformCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/CreateCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/DisposeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/DrawImageCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/DrawShapeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/DrawStringCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/FillShapeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/Group.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/RotateCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/ScaleCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetBackgroundCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetClipCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetColorCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetCompositeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetFontCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetHintCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetPaintCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetStrokeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetTransformCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/SetXORModeCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/ShearCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/StateCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/TransformCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/commands/TranslateCommand.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/eps/EPSGraphics2D.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/eps/EPSProcessor.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/eps/EPSProcessorResult.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/AbsoluteToRelativeTransformsFilter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/FillPaintedShapeAsImageFilter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/Filter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/GroupingFilter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/OptimizeFilter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/filters/StateChangeGroupingFilter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/GraphicsState.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/PageSize.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/GeneratedPayload.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/Payload.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/PDFGraphics2D.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/PDFObject.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/PDFProcessor.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/PDFProcessorResult.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/Resources.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/pdf/SizePayload.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/Processor.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/ProcessorResult.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/svg/SVGGraphics2D.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/svg/SVGProcessor.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/svg/SVGProcessorResult.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/AlphaToMaskOp.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/ASCII85EncodeStream.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/Base64EncodeStream.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/DataUtils.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/FlateEncodeStream.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/FormattingWriter.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/GraphicsUtils.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/ImageDataStream.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/LineWrapOutputStream.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/util/VectorHints.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphics2D.java' -'/Users/joerg/Projects/github/jprante/graphics/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphicsFormat.java' diff --git a/io-vector/build/tmp/javadocJar/MANIFEST.MF b/io-vector/build/tmp/javadocJar/MANIFEST.MF deleted file mode 100644 index 58630c0..0000000 --- a/io-vector/build/tmp/javadocJar/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/io-vector/build/tmp/sourcesJar/MANIFEST.MF b/io-vector/build/tmp/sourcesJar/MANIFEST.MF deleted file mode 100644 index 58630c0..0000000 --- a/io-vector/build/tmp/sourcesJar/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphics2D.java b/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphics2D.java index 63751bf..702d358 100644 --- a/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphics2D.java +++ b/io-vector/src/main/java/org/xbib/graphics/io/vector/VectorGraphics2D.java @@ -886,7 +886,7 @@ public class VectorGraphics2D extends Graphics2D implements Cloneable { commands.add(command); } - protected Iterable> getCommands() { + public Iterable> getCommands() { return commands; } diff --git a/png/build/resources/main/META-INF/services/javax.imageio.spi.ImageWriterSpi b/png/build/resources/main/META-INF/services/javax.imageio.spi.ImageWriterSpi deleted file mode 100644 index 883ad6e..0000000 --- a/png/build/resources/main/META-INF/services/javax.imageio.spi.ImageWriterSpi +++ /dev/null @@ -1 +0,0 @@ -o \ No newline at end of file diff --git a/png/build/tmp/compileJava/source-classes-mapping.txt b/png/build/tmp/compileJava/source-classes-mapping.txt deleted file mode 100644 index dc6eb9b..0000000 --- a/png/build/tmp/compileJava/source-classes-mapping.txt +++ /dev/null @@ -1,234 +0,0 @@ -org/xbib/graphics/imageio/plugins/png/pngj/PngReaderFilter.java - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderFilter - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderFilter$1 -org/xbib/graphics/imageio/plugins/png/pngj/pixels/PixelsWriterDefault.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.PixelsWriterDefault -org/xbib/graphics/imageio/plugins/png/pngj/IBytesConsumer.java - org.xbib.graphics.imageio.plugins.png.pngj.IBytesConsumer -org/xbib/graphics/imageio/plugins/png/ScanlineProvider.java - org.xbib.graphics.imageio.plugins.png.ScanlineProvider -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkMultiple.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkMultiple -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkCopyBehaviour.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkCopyBehaviour - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkCopyBehaviour$1 -org/xbib/graphics/imageio/plugins/png/pngj/pixels/PixelsWriterMultiple.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.PixelsWriterMultiple -org/xbib/graphics/imageio/plugins/png/RasterShortABGRProvider.java - org.xbib.graphics.imageio.plugins.png.RasterShortABGRProvider -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkIEND.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkIEND -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngMetadata.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngMetadata - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngMetadata$1 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkSingle.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkSingle -org/xbib/graphics/imageio/plugins/png/pngj/Deinterlacer.java - org.xbib.graphics.imageio.plugins.png.pngj.Deinterlacer -org/xbib/graphics/imageio/plugins/png/pngj/RowInfo.java - org.xbib.graphics.imageio.plugins.png.pngj.RowInfo -org/xbib/graphics/imageio/plugins/png/pngj/pixels/DeflaterEstimatorLz4.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.DeflaterEstimatorLz4 -org/xbib/graphics/imageio/plugins/png/pngj/PngjOutputException.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjOutputException -org/xbib/graphics/imageio/plugins/png/RasterByteSingleBandSkippingBytesProvider.java - org.xbib.graphics.imageio.plugins.png.RasterByteSingleBandSkippingBytesProvider -org/xbib/graphics/imageio/plugins/png/pngj/ChunkSeqReaderPng.java - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqReaderPng - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqReaderPng$1 -org/xbib/graphics/imageio/plugins/png/pngj/PngReaderByte.java - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderByte -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkSTER.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkSTER -org/xbib/graphics/imageio/plugins/png/pngj/IImageLineFactory.java - org.xbib.graphics.imageio.plugins.png.pngj.IImageLineFactory -org/xbib/graphics/imageio/plugins/png/pngj/PngWriterHc.java - org.xbib.graphics.imageio.plugins.png.pngj.PngWriterHc -org/xbib/graphics/imageio/plugins/png/pngj/IImageLineSetFactory.java - org.xbib.graphics.imageio.plugins.png.pngj.IImageLineSetFactory -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkPLTE.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkPLTE -org/xbib/graphics/imageio/plugins/png/pngj/PngHelperInternal2.java - org.xbib.graphics.imageio.plugins.png.pngj.PngHelperInternal2 -org/xbib/graphics/imageio/plugins/png/RasterByteSingleBandProvider.java - org.xbib.graphics.imageio.plugins.png.RasterByteSingleBandProvider -org/xbib/graphics/imageio/plugins/png/pngj/ChunkReader.java - org.xbib.graphics.imageio.plugins.png.pngj.ChunkReader - org.xbib.graphics.imageio.plugins.png.pngj.ChunkReader$ChunkReaderMode -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkFactory.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkFactory -org/xbib/graphics/imageio/plugins/png/RasterByteRepackSingleBandProvider.java - org.xbib.graphics.imageio.plugins.png.RasterByteRepackSingleBandProvider -org/xbib/graphics/imageio/plugins/png/RasterByteGrayAlphaProvider.java - org.xbib.graphics.imageio.plugins.png.RasterByteGrayAlphaProvider -org/xbib/graphics/imageio/plugins/png/pngj/pixels/CompressorStreamLz4.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.CompressorStreamLz4 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkICCP.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkICCP -org/xbib/graphics/imageio/plugins/png/RasterByteABGRProvider.java - org.xbib.graphics.imageio.plugins.png.RasterByteABGRProvider -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunk.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunk - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunk$ChunkOrderingConstraint -org/xbib/graphics/imageio/plugins/png/ScanlineCursor.java - org.xbib.graphics.imageio.plugins.png.ScanlineCursor -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkPredicate.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkPredicate -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunksListForWrite.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksListForWrite - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksListForWrite$1 -org/xbib/graphics/imageio/plugins/png/pngj/pixels/DeflaterEstimatorHjg.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.DeflaterEstimatorHjg -org/xbib/graphics/imageio/plugins/png/pngj/ImageInfo.java - org.xbib.graphics.imageio.plugins.png.pngj.ImageInfo -org/xbib/graphics/imageio/plugins/png/pngj/PngjBadSignature.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjBadSignature -org/xbib/graphics/imageio/plugins/png/pngj/ImageLineInt.java - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineInt - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineInt$1 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkIDAT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkIDAT -org/xbib/graphics/imageio/plugins/png/pngj/IdatChunkWriter.java - org.xbib.graphics.imageio.plugins.png.pngj.IdatChunkWriter -org/xbib/graphics/imageio/plugins/png/pngj/PngjPrematureEnding.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjPrematureEnding -org/xbib/graphics/imageio/plugins/png/pngj/ImageLineByte.java - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineByte - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineByte$1 -org/xbib/graphics/imageio/plugins/png/pngj/PngReaderApng.java - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderApng - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderApng$1 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunksList.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksList - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksList$1 - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksList$2 - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunksList$3 -org/xbib/graphics/imageio/plugins/png/pngj/IImageLineSet.java - org.xbib.graphics.imageio.plugins.png.pngj.IImageLineSet -org/xbib/graphics/imageio/plugins/png/pngj/ChunkSeqSkipping.java - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqSkipping - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqSkipping$1 -org/xbib/graphics/imageio/plugins/png/pngj/IImageLineArray.java - org.xbib.graphics.imageio.plugins.png.pngj.IImageLineArray -org/xbib/graphics/imageio/plugins/png/pngj/PngjException.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjException -org/xbib/graphics/imageio/plugins/png/pngj/ErrorBehaviour.java - org.xbib.graphics.imageio.plugins.png.pngj.ErrorBehaviour -org/xbib/graphics/imageio/plugins/png/pngj/ChunkSeqBuffering.java - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqBuffering -org/xbib/graphics/imageio/plugins/png/pngj/BufferedStreamFeeder.java - org.xbib.graphics.imageio.plugins.png.pngj.BufferedStreamFeeder -org/xbib/graphics/imageio/plugins/png/pngj/PngReaderInt.java - org.xbib.graphics.imageio.plugins.png.pngj.PngReaderInt -org/xbib/graphics/imageio/plugins/png/pngj/PngjExceptionInternal.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjExceptionInternal -org/xbib/graphics/imageio/plugins/png/pngj/PngjUnsupportedException.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjUnsupportedException -org/xbib/graphics/imageio/plugins/png/pngj/ImageLineSetDefault.java - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineSetDefault - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineSetDefault$1 - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineSetDefault$1$1 -org/xbib/graphics/imageio/plugins/png/RasterShortGrayAlphaProvider.java - org.xbib.graphics.imageio.plugins.png.RasterShortGrayAlphaProvider -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkLoadBehaviour.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkLoadBehaviour -org/xbib/graphics/imageio/plugins/png/pngj/ImageLineHelper.java - org.xbib.graphics.imageio.plugins.png.pngj.ImageLineHelper -org/xbib/graphics/imageio/plugins/png/pngj/IPngWriterFactory.java - org.xbib.graphics.imageio.plugins.png.pngj.IPngWriterFactory -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngBadCharsetException.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngBadCharsetException -org/xbib/graphics/imageio/plugins/png/AbstractScanlineProvider.java - org.xbib.graphics.imageio.plugins.png.AbstractScanlineProvider -org/xbib/graphics/imageio/plugins/png/pngj/PngjBadCrcException.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjBadCrcException -org/xbib/graphics/imageio/plugins/png/RasterIntABGRProvider.java - org.xbib.graphics.imageio.plugins.png.RasterIntABGRProvider -org/xbib/graphics/imageio/plugins/png/pngj/PngjInputException.java - org.xbib.graphics.imageio.plugins.png.pngj.PngjInputException -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkUNKNOWN.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkUNKNOWN -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkTEXT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkTEXT -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkITXT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkITXT -org/xbib/graphics/imageio/plugins/png/ScanlineProviderFactory.java - org.xbib.graphics.imageio.plugins.png.ScanlineProviderFactory -org/xbib/graphics/imageio/plugins/png/pngj/IChunkFactory.java - org.xbib.graphics.imageio.plugins.png.pngj.IChunkFactory -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkZTXT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkZTXT -org/xbib/graphics/imageio/plugins/png/pngj/DeflatedChunksSet.java - org.xbib.graphics.imageio.plugins.png.pngj.DeflatedChunksSet - org.xbib.graphics.imageio.plugins.png.pngj.DeflatedChunksSet$State -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkTextVar.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkTextVar - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkTextVar$PngTxtInfo -org/xbib/graphics/imageio/plugins/png/RasterShortSingleBandProvider.java - org.xbib.graphics.imageio.plugins.png.RasterShortSingleBandProvider -org/xbib/graphics/imageio/plugins/png/pngj/pixels/CompressorStreamDeflater.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.CompressorStreamDeflater -org/xbib/graphics/imageio/plugins/png/pngj/pixels/CompressorStream.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.CompressorStream -org/xbib/graphics/imageio/plugins/png/pngj/FilterType.java - org.xbib.graphics.imageio.plugins.png.pngj.FilterType -org/xbib/graphics/imageio/plugins/png/pngj/IImageLine.java - org.xbib.graphics.imageio.plugins.png.pngj.IImageLine -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkHIST.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkHIST -org/xbib/graphics/imageio/plugins/png/pngj/DeflatedChunkReader.java - org.xbib.graphics.imageio.plugins.png.pngj.DeflatedChunkReader -org/xbib/graphics/imageio/plugins/png/pngj/pixels/PixelsWriter.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.PixelsWriter - org.xbib.graphics.imageio.plugins.png.pngj.pixels.PixelsWriter$1 -org/xbib/graphics/imageio/plugins/png/pngj/pixels/FiltersPerformance.java - org.xbib.graphics.imageio.plugins.png.pngj.pixels.FiltersPerformance - org.xbib.graphics.imageio.plugins.png.pngj.pixels.FiltersPerformance$1 -org/xbib/graphics/imageio/plugins/png/PNGWriter.java - org.xbib.graphics.imageio.plugins.png.PNGWriter -org/xbib/graphics/imageio/plugins/png/pngj/PngHelperInternal.java - org.xbib.graphics.imageio.plugins.png.pngj.PngHelperInternal -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkSRGB.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkSRGB -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkGAMA.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkGAMA -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkIHDR.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkIHDR -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkOFFS.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkOFFS -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkRaw.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkRaw -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkBKGD.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkBKGD -org/xbib/graphics/imageio/plugins/png/pngj/chunks/ChunkHelper.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkHelper - org.xbib.graphics.imageio.plugins.png.pngj.chunks.ChunkHelper$1 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkPHYS.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkPHYS -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkSBIT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkSBIT -org/xbib/graphics/imageio/plugins/png/pngj/ChunkSeqReader.java - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqReader - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqReader$1 - org.xbib.graphics.imageio.plugins.png.pngj.ChunkSeqReader$2 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkFCTL.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkFCTL -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkCHRM.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkCHRM -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkFDAT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkFDAT -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkSPLT.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkSPLT -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkACTL.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkACTL -org/xbib/graphics/imageio/plugins/png/pngj/PngReader.java - org.xbib.graphics.imageio.plugins.png.pngj.PngReader -org/xbib/graphics/imageio/plugins/png/pngj/PngWriter.java - org.xbib.graphics.imageio.plugins.png.pngj.PngWriter -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkTRNS.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkTRNS -org/xbib/graphics/imageio/plugins/png/pngj/IdatSet.java - org.xbib.graphics.imageio.plugins.png.pngj.IdatSet - org.xbib.graphics.imageio.plugins.png.pngj.IdatSet$1 -org/xbib/graphics/imageio/plugins/png/pngj/chunks/PngChunkTIME.java - org.xbib.graphics.imageio.plugins.png.pngj.chunks.PngChunkTIME diff --git a/png/build/tmp/compileTestJava/source-classes-mapping.txt b/png/build/tmp/compileTestJava/source-classes-mapping.txt deleted file mode 100644 index ebf06f1..0000000 --- a/png/build/tmp/compileTestJava/source-classes-mapping.txt +++ /dev/null @@ -1,19 +0,0 @@ -org/xbib/graphics/imageio/plugins/png/CustomByteIndexImageTypesTest.java - org.xbib.graphics.imageio.plugins.png.CustomByteIndexImageTypesTest -org/xbib/graphics/imageio/plugins/png/ImageAssert.java - org.xbib.graphics.imageio.plugins.png.ImageAssert - org.xbib.graphics.imageio.plugins.png.ImageAssert$1 - org.xbib.graphics.imageio.plugins.png.ImageAssert$2 -org/xbib/graphics/imageio/plugins/png/PNGWriterTest.java - org.xbib.graphics.imageio.plugins.png.PNGWriterTest -org/xbib/graphics/imageio/plugins/png/BufferedImageTypesTest.java - org.xbib.graphics.imageio.plugins.png.BufferedImageTypesTest -org/xbib/graphics/imageio/plugins/png/PngSuiteImagesTest.java - org.xbib.graphics.imageio.plugins.png.PngSuiteImagesTest - org.xbib.graphics.imageio.plugins.png.PngSuiteImagesTest$1 -org/xbib/graphics/imageio/plugins/png/SampleImagePainter.java - org.xbib.graphics.imageio.plugins.png.SampleImagePainter -org/xbib/graphics/imageio/plugins/png/CustomUShortImageTypesTest.java - org.xbib.graphics.imageio.plugins.png.CustomUShortImageTypesTest -org/xbib/graphics/imageio/plugins/png/BufferedImageChildTest.java - org.xbib.graphics.imageio.plugins.png.BufferedImageChildTest