// Renderer file for the Selection demo square = Rectangle(-20, -20, 40, 40, 8, 8); gray = Color(140,140,140); darkRed = Color(200,0,0); lightRed = Color(255,240,240); white = java.awt.Color.white; redGrad = Gradient(Point(0,-10), lightRed, Point(0,20), java.awt.Color.red, true, GradientUnits.USER); Pass({ content: [ Shape({ shape: square, offset: Point(0.5, 0.5), outline: { selector: '@selected', 'false': gray, 'true': darkRed, }, fill: { selector: '@selected', 'false': white, 'true': redGrad, }, }), Text({ text: '@key', offset: Point(-20, -18), alignment: Alignment.NORTH_WEST, font: Font('dialog', FontStyle.ITALIC, 10), }), ] // Pass.content }) // Pass