Class ImageRasterPattern


  • public final class ImageRasterPattern
    extends java.lang.Object
    Raster data is a grid of cells covering an area of interest. Each pixel, the smallest unit of information in the grid, displays a unique attribute. This static class generates raster data for different shades of grey (betweeen 0 and 16) the lower the number being the darker the shade. The image data dimensions are 64 x 8.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte[] GREYSCALE00
      The Raster Pattern for Greyscale 00
      private static byte[] GREYSCALE01
      The Raster Pattern for Greyscale 1
      private static byte[] GREYSCALE02
      The Raster Pattern for Greyscale 2
      private static byte[] GREYSCALE03
      The Raster Pattern for Greyscale 3
      private static byte[] GREYSCALE04
      The Raster Pattern for Greyscale 4
      private static byte[] GREYSCALE05
      The Raster Pattern for Greyscale 5
      private static byte[] GREYSCALE06
      The Raster Pattern for Greyscale 6
      private static byte[] GREYSCALE07
      The Raster Pattern for Greyscale 7
      private static byte[] GREYSCALE08
      The Raster Pattern for Greyscale 8
      private static byte[] GREYSCALE09
      The Raster Pattern for Greyscale 9
      private static byte[] GREYSCALE10
      The Raster Pattern for Greyscale 10
      private static byte[] GREYSCALE11
      The Raster Pattern for Greyscale 11
      private static byte[] GREYSCALE12
      The Raster Pattern for Greyscale 12
      private static byte[] GREYSCALE13
      The Raster Pattern for Greyscale 13
      private static byte[] GREYSCALE14
      The Raster Pattern for Greyscale 14
      private static byte[] GREYSCALE15
      The Raster Pattern for Greyscale 15
      private static byte[] GREYSCALE16
      The Raster Pattern for Greyscale 16
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ImageRasterPattern()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] getRasterData​(int greyscale)
      Static method to return the raster image data for the grey scale specified.
      • Methods inherited from class java.lang.Object

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

      • GREYSCALE16

        private static final byte[] GREYSCALE16
        The Raster Pattern for Greyscale 16
      • GREYSCALE15

        private static final byte[] GREYSCALE15
        The Raster Pattern for Greyscale 15
      • GREYSCALE14

        private static final byte[] GREYSCALE14
        The Raster Pattern for Greyscale 14
      • GREYSCALE13

        private static final byte[] GREYSCALE13
        The Raster Pattern for Greyscale 13
      • GREYSCALE12

        private static final byte[] GREYSCALE12
        The Raster Pattern for Greyscale 12
      • GREYSCALE11

        private static final byte[] GREYSCALE11
        The Raster Pattern for Greyscale 11
      • GREYSCALE10

        private static final byte[] GREYSCALE10
        The Raster Pattern for Greyscale 10
      • GREYSCALE09

        private static final byte[] GREYSCALE09
        The Raster Pattern for Greyscale 9
      • GREYSCALE08

        private static final byte[] GREYSCALE08
        The Raster Pattern for Greyscale 8
      • GREYSCALE07

        private static final byte[] GREYSCALE07
        The Raster Pattern for Greyscale 7
      • GREYSCALE06

        private static final byte[] GREYSCALE06
        The Raster Pattern for Greyscale 6
      • GREYSCALE05

        private static final byte[] GREYSCALE05
        The Raster Pattern for Greyscale 5
      • GREYSCALE04

        private static final byte[] GREYSCALE04
        The Raster Pattern for Greyscale 4
      • GREYSCALE03

        private static final byte[] GREYSCALE03
        The Raster Pattern for Greyscale 3
      • GREYSCALE02

        private static final byte[] GREYSCALE02
        The Raster Pattern for Greyscale 2
      • GREYSCALE01

        private static final byte[] GREYSCALE01
        The Raster Pattern for Greyscale 1
      • GREYSCALE00

        private static final byte[] GREYSCALE00
        The Raster Pattern for Greyscale 00
    • Constructor Detail

      • ImageRasterPattern

        private ImageRasterPattern()
    • Method Detail

      • getRasterData

        public static byte[] getRasterData​(int greyscale)
        Static method to return the raster image data for the grey scale specified. The scale should be between 0 (darkest) and 16 (lightest).
        Parameters:
        greyscale - The grey scale value (0 - 16)
        Returns:
        the raster data byte array for the given greyscale value