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 $
-
Dotty()
- Creates a new Dotty colour scheme.
-
Dotty(int)
- Creates a new Dotty colour scheme.
-
next()
- Implements ColourScheme method to get the next colour.
-
nextLine()
- Implements ColourScheme method to start next line.
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.
Dotty
public Dotty()
- Creates a new Dotty colour scheme. Every 10th dot will be black and
all others will be white.
next
public Color next()
- Implements ColourScheme method to get the next colour.
- Returns:
- the Colour that the next dot should be
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