Class ImageConverterBitmap2G2D.Graphics2DImagePainterImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Dimension getImageSize()  
      void paint​(java.awt.Graphics2D g2d, java.awt.geom.Rectangle2D area)
      Called to paint the image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Graphics2DImagePainterImpl

        public Graphics2DImagePainterImpl​(ImageRendered rendImage)
    • Method Detail

      • getImageSize

        public java.awt.Dimension getImageSize()
        Specified by:
        getImageSize in interface Graphics2DImagePainter
        Returns:
        the dimensions (intrinsic size) of the image to be painted in millipoints
      • paint

        public void paint​(java.awt.Graphics2D g2d,
                          java.awt.geom.Rectangle2D area)
        Description copied from interface: Graphics2DImagePainter
        Called to paint the image. Implementations should scale so the image is painted fully inside the given area indicated by then Rectangle2D object.
        Specified by:
        paint in interface Graphics2DImagePainter
        Parameters:
        g2d - the Graphics2D instance to paint on
        area - the target area for the image (in target device units)