quickplot.colours
Class Colour

java.lang.Object
  extended by quickplot.colours.Colour
Direct Known Subclasses:
Autumn, Blue, Cool, Copper, Gray, Green, Hot, Jet, Red

public abstract class Colour
extends Object

Ported from the C# version by Matt Williams.

Author:
Richard Jones

Field Summary
protected  RGB[] colours
           
protected  boolean inverted
           
 
Constructor Summary
Colour()
           
Colour(int number)
           
 
Method Summary
protected  double BO(boolean a)
           
 int getLength()
           
 RGB getValue(int position)
           
 RGB getValue(int position, boolean inversed)
           
 boolean isValid()
           
abstract  void loadColours(int number)
           
 void setLength(int length)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

colours

protected RGB[] colours

inverted

protected boolean inverted
Constructor Detail

Colour

public Colour()

Colour

public Colour(int number)
Method Detail

getLength

public int getLength()

setLength

public void setLength(int length)

loadColours

public abstract void loadColours(int number)

getValue

public RGB getValue(int position)

getValue

public RGB getValue(int position,
                    boolean inversed)

isValid

public boolean isValid()

BO

protected double BO(boolean a)

toString

public String toString()
Overrides:
toString in class Object