Class GeometryDrawerAwt

    • Constructor Detail

      • GeometryDrawerAwt

        public GeometryDrawerAwt(CoordinateTransformer ct,
                                 int width,
                                 int height)
        Create a new implementation of the PolygonDrawer interface.
        Parameters:
        ct - the transformation applied to coordinates.
        width - the width of the image in pixels.
        height - the height of the image in pixels.
      • GeometryDrawerAwt

        public GeometryDrawerAwt(CoordinateTransformer ct,
                                 BufferedImage image,
                                 boolean antialiase)
        Create a new implementation of the PolygonDrawer interface.
        Parameters:
        ct - the transformation applied to coordinates.
        image - the image to draw upon.
        antialiase - use antialiasing during rendering.
      • GeometryDrawerAwt

        public GeometryDrawerAwt(CoordinateTransformer ct,
                                 int width,
                                 int height,
                                 boolean antialiase)
        Create a new implementation of the PolygonDrawer interface.
        Parameters:
        ct - the transformation applied to coordinates.
        width - the width of the image in pixels.
        height - the height of the image in pixels.
        antialiase - use antialiasing during rendering.
    • Method Detail

      • getImage

        public BufferedImage getImage()
        Retrieve the internal underlying BufferedImage to perform custom drawing operations.
        Returns:
        the underlying BufferedImage.
      • duplicate

        public GeometryDrawerAwt duplicate()
        Get a duplicate of this drawer.
        Returns:
        a duplicate.