/** * Utility method to paint the folding icon for groups. * * @param g * The graphics to paint the border to. */ protected void paintFoldingIcon(Graphics g) { if (isGroup) { g.setColor(graphBackground); g.fill3DRect(handle.x, handle.y, handle.width, handle.height, true); g.setColor(graphForeground); g.drawRect(handle.x, handle.y, handle.width, handle.height); int h2 = handle.y + handle.height / 2; g.drawLine(handle.x + 1, h2, handle.x + handle.width - 2, h2); if (view.isLeaf()) { int w2 = handle.x + handle.width / 2; g.drawLine(w2, handle.y + 1, w2, handle.y + handle.height - 2); } } }
this.selected = sel; this.preview = preview; if (this.view.isLeaf() || GraphConstants.isGroupOpaque(view.getAllAttributes())) installAttributes(view);