Class ScanBit

  • All Implemented Interfaces:
    java.lang.Comparable

    public class ScanBit
    extends java.lang.Object
    implements java.lang.Comparable

    Instruction to paint points xFrom to xTo on line y.

    What I don't understand: why do values get summed to determine the pixel type?

    © 2002 Christian Treber, ct@ctreber.com

    • Constructor Summary

      Constructors 
      Constructor Description
      ScanBit​(int pY, int pLoX, int pHiX, int pType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object o)  
      int getlXFrom()  
      int getType()
      See values for
      int getXTo()  
      int getY()  
      • Methods inherited from class java.lang.Object

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

      • ScanBit

        public ScanBit​(int pY,
                       int pLoX,
                       int pHiX,
                       int pType)
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • getY

        public int getY()
      • getlXFrom

        public int getlXFrom()
      • getXTo

        public int getXTo()
      • getType

        public int getType()

        See values for

        See Also:
        Polygon