AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
Colormap.java
Go to the documentation of this file.
1
package
aud.util;
2
4
public
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
}
aud.util.Colormap
simple interface for color map
Definition:
Colormap.java:4
aud.util.Colormap.getRGB
int getRGB(T data)
Map data to rgb color.
Definition:
Colormap.java:9
aud.util.Colormap.getString
String getString(T data)
get string representation from getRGB
Definition:
Colormap.java:14
util
Colormap.java
Generated on Tue Apr 15 2025 13:46:54 for AuD by
1.9.5