Class BitmapConsumerBaseImpl

  • All Implemented Interfaces:

    public class BitmapConsumerBaseImpl
    extends Object
    implements BitmapConsumer
    An implementation of BitmapConsumer that does nothing. This is meant to be used as a base class.
    • Constructor Detail

      • BitmapConsumerBaseImpl

        public BitmapConsumerBaseImpl()
    • Method Detail

      • startBitmap

        public void startBitmap​(int n)
        Description copied from interface: BitmapConsumer
        Called at the beginning of a bitmap.
        Specified by:
        startBitmap in interface BitmapConsumer
        n - some identifier for the bitmap. The meaning of that identifier is not defined by this interface, but that the contract between the client and the provider of this interface.
      • addRun

        public void addRun​(double xOn,
                           double xOff,
                           double y)
        Add a run of black pixels to the bitmap.
        Specified by:
        addRun in interface BitmapConsumer