Advertisement
Guest User

Untitled

a guest
May 7th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1.  
  2. Graphics2D g2d = (Graphics2D)g;
  3.  
  4. g2d.setStroke(new BasicStroke(5.0F));
  5. if (this.amountDrawn > 0) {
  6. g2d.drawLine(this.xPosition, this.yPosition, this.xPosition, this.yPosition + 30);
  7. }
  8. if (this.amountDrawn > 1) {
  9. g2d.fillOval(this.xPosition - 15, this.yPosition + 30, 30, 30);
  10. }
  11. if (this.amountDrawn > 2) {
  12. g2d.drawLine(this.xPosition, this.yPosition + 60, this.xPosition, this.yPosition + 100);
  13. }
  14. if (this.amountDrawn > 3) {
  15. g2d.drawLine(this.xPosition, this.yPosition + 80, this.xPosition + 30, this.yPosition + 60);
  16. }
  17. if (this.amountDrawn > 4) {
  18. g2d.drawLine(this.xPosition, this.yPosition + 80, this.xPosition - 30, this.yPosition + 60);
  19. }
  20. if (this.amountDrawn > 5) {
  21. g2d.drawLine(this.xPosition, this.yPosition + 100, this.xPosition + 20, this.yPosition + 150);
  22. }
  23. if (this.amountDrawn > 6) {
  24. g2d.drawLine(this.xPosition, this.yPosition + 100, this.xPosition - 20, this.yPosition + 150);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement