public final void draw(Graphics2D g2) { if (isVisible) { fill(g2, gp, false); // fill using default/hatching/image as appropriate if (geo.doHighlighting()) { g2.setPaint(geo.getSelColor()); g2.setStroke(selStroke); g2.draw(gp); } if (geo.lineThickness > 0) { g2.setPaint(slope.getObjectColor()); g2.setStroke(objStroke); g2.draw(gp); } if (labelVisible) { g2.setPaint(slope.getLabelColor()); g2.setFont(view.fontLine); drawLabel(g2); g2.drawString(horLabel, xLabelHor, yLabelHor); } } }