Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Graphics2D g2d = (Graphics2D)g;
- g2d.setStroke(new BasicStroke(5.0F));
- if (this.amountDrawn > 0) {
- g2d.drawLine(this.xPosition, this.yPosition, this.xPosition, this.yPosition + 30);
- }
- if (this.amountDrawn > 1) {
- g2d.fillOval(this.xPosition - 15, this.yPosition + 30, 30, 30);
- }
- if (this.amountDrawn > 2) {
- g2d.drawLine(this.xPosition, this.yPosition + 60, this.xPosition, this.yPosition + 100);
- }
- if (this.amountDrawn > 3) {
- g2d.drawLine(this.xPosition, this.yPosition + 80, this.xPosition + 30, this.yPosition + 60);
- }
- if (this.amountDrawn > 4) {
- g2d.drawLine(this.xPosition, this.yPosition + 80, this.xPosition - 30, this.yPosition + 60);
- }
- if (this.amountDrawn > 5) {
- g2d.drawLine(this.xPosition, this.yPosition + 100, this.xPosition + 20, this.yPosition + 150);
- }
- if (this.amountDrawn > 6) {
- g2d.drawLine(this.xPosition, this.yPosition + 100, this.xPosition - 20, this.yPosition + 150);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement