All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.asg.colourschemes.Dotty

java.lang.Object
   |
   +----benno.asg.colourschemes.Dotty

public class Dotty
extends Object
implements ColourScheme
The class implements a black and white random dot colour scheme. The dot density may be optionally specified.

Version:
$Revision: 1.3 $

Constructor Index

 o Dotty()
Creates a new Dotty colour scheme.
 o Dotty(int)
Creates a new Dotty colour scheme.

Method Index

 o next()
Implements ColourScheme method to get the next colour.
 o nextLine()
Implements ColourScheme method to start next line.

Constructors

 o Dotty
 public Dotty(int c)
Creates a new Dotty colour scheme. Every c'th dot will be black and all others will be white.

Parameters:
c - Specifies the density of black dots.
 o Dotty
 public Dotty()
Creates a new Dotty colour scheme. Every 10th dot will be black and all others will be white.

Methods

 o next
 public Color next()
Implements ColourScheme method to get the next colour.

Returns:
the Colour that the next dot should be
 o nextLine
 public void nextLine()
Implements ColourScheme method to start next line. Does nothing as we have no special behavior.


All Packages  Class Hierarchy  This Package  Previous  Next  Index