Class GeometryDrawerBatik

    • Constructor Detail

      • GeometryDrawerBatik

        public GeometryDrawerBatik(CoordinateTransformer ct,
                                   int width,
                                   int height)
        Create a drawer.
        Parameters:
        ct - a coordinate transformation to apply.
        filename - a file to write the image to.
        width - the width of the image in pixels.
        height - the height of the image in pixels.
    • Method Detail

      • getGraphics

        public org.apache.batik.svggen.SVGGraphics2D getGraphics()
      • setLineWidth

        public void setLineWidth(double width)
      • drawCircle

        public void drawCircle(double x,
                               double y,
                               double radius,
                               DrawMode mode)
      • drawRectangle

        public void drawRectangle(double x,
                                  double y,
                                  double width,
                                  double height,
                                  DrawMode mode)
      • drawRectangleCentered

        public void drawRectangleCentered(double x,
                                          double y,
                                          double width,
                                          double height,
                                          DrawMode mode)
      • drawRectangleAbsolute

        public void drawRectangleAbsolute(double x1,
                                          double y1,
                                          double x2,
                                          double y2,
                                          DrawMode mode)
      • drawString

        public void drawString(double x,
                               double y,
                               String text,
                               int fontsize,
                               int xoff,
                               int yoff)