AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
Colormap.java
Go to the documentation of this file.
1package aud.util;
2
4public class Colormap<T> {
9 public int getRGB(T data) {
10 return 0x000000;
11 }
12
14 public String getString(T data) {
15 return String.format("#%06x",getRGB(data));
16 }
17}
simple interface for color map
Definition: Colormap.java:4
int getRGB(T data)
Map data to rgb color.
Definition: Colormap.java:9
String getString(T data)
get string representation from getRGB
Definition: Colormap.java:14