Class DRNGColorCycle.Cell

java.lang.Object
org.monte.media.ilbm.DRNGColorCycle.Cell
All Implemented Interfaces:
Comparable<DRNGColorCycle.Cell>
Direct Known Subclasses:
DRNGColorCycle.DColorCell, DRNGColorCycle.DIndexCell
Enclosing class:
DRNGColorCycle

public abstract static class DRNGColorCycle.Cell extends Object implements Comparable<DRNGColorCycle.Cell>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cell(int cell)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    int
     
    abstract void
    readValue(int[] rgbs, boolean isHalfbright)
    Reads the initial value of the cell which is either taken from the rgb palette or from an rgb value stored by the cell.
    abstract void
    writeValue(int[] rgbs, boolean isHalfbright)
    Writes the final value of the cell into the color palette - or does nothing

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cell

      protected int cell
    • value

      protected int value
  • Constructor Details

    • Cell

      public Cell(int cell)
  • Method Details

    • readValue

      public abstract void readValue(int[] rgbs, boolean isHalfbright)
      Reads the initial value of the cell which is either taken from the rgb palette or from an rgb value stored by the cell.
      Parameters:
      rgbs - the palette.
      isHalfbright - whether the halfbright value shall be taken.
    • writeValue

      public abstract void writeValue(int[] rgbs, boolean isHalfbright)
      Writes the final value of the cell into the color palette - or does nothing
    • compareTo

      public int compareTo(DRNGColorCycle.Cell that)
      Specified by:
      compareTo in interface Comparable<DRNGColorCycle.Cell>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object