D
- the Drawable typepublic class FixedColorer<D extends Drawable> extends Object implements Colorer<D>
Modifier | Constructor and Description |
---|---|
protected |
FixedColorer(Color color)
Initialize the FixedColorer with a color.
|
Modifier and Type | Method and Description |
---|---|
static <D extends Drawable> |
black() |
static <D extends Drawable> |
blue() |
static <D extends Drawable> |
create(Color color)
Instantiate a singleton fixed colorer for a certain color.
|
static <D extends Drawable> |
cyan() |
static <D extends Drawable> |
darkGray() |
Color |
getColor(D drawable)
Get the color, based on the Drawable object.
|
static <D extends Drawable> |
gray() |
static <D extends Drawable> |
green() |
static <D extends Drawable> |
lightGray() |
static <D extends Drawable> |
magenta() |
static <D extends Drawable> |
orange() |
static <D extends Drawable> |
pink() |
static <D extends Drawable> |
red() |
static <D extends Drawable> |
white() |
static <D extends Drawable> |
yellow() |
protected FixedColorer(Color color)
color
- Color; the fixed color to usepublic static <D extends Drawable> FixedColorer<D> create(Color color)
D
- the Drawable typecolor
- Color; the fixed color to usepublic static <D extends Drawable> FixedColorer<D> black()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> blue()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> cyan()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> darkGray()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> gray()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> green()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> lightGray()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> magenta()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> orange()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> pink()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> red()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> white()
D
- the Drawable typepublic static <D extends Drawable> FixedColorer<D> yellow()
D
- the Drawable typeCopyright © 2014–2019 Delft University of Technology. All rights reserved.