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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DRNGColorCycle.Cell that) booleaninthashCode()abstract voidreadValue(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 voidwriteValue(int[] rgbs, boolean isHalfbright) Writes the final value of the cell into the color palette - or does nothing
-
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
- Specified by:
compareToin interfaceComparable<DRNGColorCycle.Cell>
-
equals
-
hashCode
public int hashCode()
-