Class RasterizedGeometry2DImpl.ScanCallbackImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int[] m_bitmap  
      (package private) int m_color  
      (package private) int m_scanlineWidth  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScanCallbackImpl​(int[] bitmap, int scanlineWidth)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void drawScan​(int[] scans, int scanCount3)
      Rasterizer calls this method for each scan it produced
      long estimateMemorySize()
      Returns an estimate of this object size in bytes.
      void setColor​(SimpleRasterizer rasterizer, int color)  
      • Methods inherited from class java.lang.Object

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

      • m_bitmap

        int[] m_bitmap
      • m_scanlineWidth

        int m_scanlineWidth
      • m_color

        int m_color
    • Constructor Detail

      • ScanCallbackImpl

        public ScanCallbackImpl​(int[] bitmap,
                                int scanlineWidth)
    • Method Detail

      • drawScan

        public void drawScan​(int[] scans,
                             int scanCount3)
        Description copied from interface: SimpleRasterizer.ScanCallback
        Rasterizer calls this method for each scan it produced
        Specified by:
        drawScan in interface SimpleRasterizer.ScanCallback
        Parameters:
        scans - array of scans. Scans are triplets of numbers. The start X coordinate for the scan (inclusive), the end X coordinate of the scan (exclusive), the Y coordinate for the scan.
        scanCount3 - The number of initialized elements in the scans array. The scan count is scanCount3 / 3.
      • estimateMemorySize

        public long estimateMemorySize()
        Returns an estimate of this object size in bytes.
        Returns:
        Returns an estimate of this object size in bytes.