Examples of RandomColorFactory


Examples of cn.dreampie.captcha.color.RandomColorFactory

  private void initCaptchService() {

    // 颜色创建工厂,使用一定范围内的随机色

    if (randomColor)
      colorFactory = new RandomColorFactory();
    else
      colorFactory = new ColorFactory() {

        public Color getColor(int index) {
          return drawColor;//new Color(118,102,102);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.