<BUG>public void setOpacity (float opacity) {composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity);</BUG><CONTEXT>this.startY = startY;this.endX = endX;this.endY = endY;repaint();}<extra_id_0>}public void setColor(Color color) {this.color = color;</CONTEXT>
public void setOpacity(float opacity) {composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity);