Menu

[r66]: / ls / graph / script / VertexColors.java  Maximize  Restore  History

Download this file

33 lines (24 with data), 561 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package ls.graph.script;
import java.awt.*;
import ls.script.Scriptable;
public enum VertexColors
implements Scriptable
{
RED(Color.RED,"RED"),
BLACK(Color.BLACK,"BLACK"),
GREY(Color.GRAY,"GREY"),
BLUE(Color.BLUE,"BLUE"),
WHITE(Color.WHITE,"WHITE");
private Color color = Color.BLACK;
private String name = null;
VertexColors(Color c, String _name)
{
this.color = c;
this.name = _name;
}
public String getBindingName()
{
return "VC_" + this.name;
}
public Color color() { return this.color; }
}
MongoDB Logo MongoDB