forked from brunomnsilva/JavaFXSmartGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmartgraph.css
More file actions
80 lines (69 loc) · 1.76 KB
/
Copy pathsmartgraph.css
File metadata and controls
80 lines (69 loc) · 1.76 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
STYLESHEET FOR JAVAFXGRAPH VISUALIZATION
*/
.graph {
-fx-background-color: #F4FFFB;
}
/*.vertex {
-fx-stroke-width: 3;
-fx-stroke: #61B5F1;
-fx-stroke-type: inside; you should keep this if using arrows
-fx-fill: #B1DFF7;
}*/
.vertex {
-fx-stroke-width: 3;
-fx-stroke: #61B5F1;
-fx-stroke-type: inside; /*you should keep this if using arrows*/
-fx-fill: #B1DFF7;
-fx-opacity: 0.75;
/*
-fx-shape: "M 0 0 L 5 2 L 6 1 L 5 0 L 6 -1 L 5 -2 L 0 0 Z";
-fx-max-width: 30;
-fx-max-height: 30;
*/
-fx-min-width: 30;
-fx-min-height: 30;
-fx-padding: 0;
-fx-border-width: 3;
-fx-border-color: #61B5F1;
-fx-border-radius: 15;
-fx-background-color: rgba(255, 255, 255, 1.0);
-fx-background-radius: 15;
}
.vertex-label {
-fx-font: bold 8pt "sans-serif";
}
.edge {
-fx-stroke-width: 1;
-fx-stroke: #FF6D66;
-fx-stroke-dash-array: 2 5 2 5; /* remove for clean edges */
-fx-fill: transparent; /*important for curved edges */
-fx-stroke-line-cap: round;
-fx-opacity: 0.8;
}
.edge-label {
-fx-font: normal 5pt "sans-serif";
}
/*
.arrow {
-fx-stroke-width: 2;
-fx-stroke: #FF6D66;
-fx-opacity: 0.8;
}
*/
.arrow {
-fx-shape: "M 0 3 L 6 0 L 0 -3 L 2 0 L 0 3";
-fx-min-width: 10;
-fx-min-height: 10;
-fx-border-color: rgba(255, 0, 0, 0.25);
-fx-border-width: 1;
-fx-background-color: rgba(255, 0, 0, 0.5);
}
/* Custom vertex. You should revert any unwanted styling in the default element,
style, since custom styles will be appended to the default style */
.myVertex {
-fx-stroke-width: 5;
-fx-stroke: green;
-fx-stroke-type: inside; /* you should keep this if using arrows */
-fx-fill: yellowgreen;
}