// Renderer file for the Show demo gradDark = Color(255,167,114); outline = Color(245,157,104); gradLight = java.awt.Color.white; grad = Gradient(Point(0,-16), gradDark, Point(0,0), gradLight, true, GradientUnits.USER); // First pass for unselected booths Pass({ content: Boolean({ selector: '@selected', content: { 'false': Text({ text: '@key', alignment: Alignment.CENTER, font: Font('dialog', FontStyle.PLAIN, 10), fill: Color(70,70,80), }), } // Boolean.content }) // Boolean }) // Pass // Paint the selection graphic in a second pass because it overlaps // neighboring booths Pass({ content: Boolean({ selector: '@selected', content: { 'true': [ Shape({ id: 'marker', shape: Circle(0, 0, 18), fill: grad, outline: outline, strokeWidth: 1, }), Text({ text: '@key', alignment: Alignment.CENTER, font: Font('dialog', FontStyle.BOLD, 12), fill: Color(70,70,100), }), ], } // Boolean.content }) // Boolean }) // Pass