1 package graphics.graph; 2 3 public class RandomBean { 4 private static RandomBean rb = new RandomBean(); 5 private boolean random; 6 7 private RandomBean() { 8 } 9 10 public static RandomBean getRandomBean() { 11 return rb; 12 } 13 14 public void setRandom(boolean b) { 15 random = b; 16 } 17 18 public boolean getRandom() { 19 return random; 20 } 21 }