public SingleColorBackgroundFactory() { SingleColorFactory scf = new SingleColorFactory(Color.WHITE); colorFactory = scf; }
public SingleColorBackgroundFactory(Color color) { colorFactory = new SingleColorFactory(color); }
public SimpleCaptchaService(int width, int height, Color textColor, Color backgroundColor, int fontSize, FilterFactory ff) { backgroundFactory = new SingleColorBackgroundFactory(backgroundColor); wordFactory = new AdaptiveRandomWordFactory(); fontFactory = new RandomFontFactory(); textRenderer = new BestFitTextRender(); colorFactory = new SingleColorFactory(textColor); filterFactory = ff; this.width = width; this.height = height; }
public SimpleCaptchaService(int width, int height, Color textColor, Color backgroundColor, int fontSize, String[] fontNames, FilterFactory ff) { backgroundFactory = new SingleColorBackgroundFactory(backgroundColor); wordFactory = new AdaptiveRandomWordFactory(); fontFactory = new RandomFontFactory(fontNames); textRenderer = new BestFitTextRender(); colorFactory = new SingleColorFactory(textColor); filterFactory = ff; this.width = width; this.height = height; }
public SingleColorBackgroundFactory() { SingleColorFactory scf = new SingleColorFactory(Color.WHITE); colorFactory = scf; }
public SingleColorBackgroundFactory(Color color) { colorFactory = new SingleColorFactory(color); }
public SimpleCaptchaService(int width, int height, Color textColor, Color backgroundColor, int fontSize, String[] fontNames, FilterFactory ff) { backgroundFactory = new SingleColorBackgroundFactory(backgroundColor); wordFactory = new AdaptiveRandomWordFactory(); fontFactory = new RandomFontFactory(fontNames); textRenderer = new BestFitTextRenderer(); colorFactory = new SingleColorFactory(textColor); filterFactory = ff; this.width = width; this.height = height; }
public SimpleCaptchaService(int width, int height, Color textColor, Color backgroundColor, int fontSize, FilterFactory ff) { backgroundFactory = new SingleColorBackgroundFactory(backgroundColor); wordFactory = new AdaptiveRandomWordFactory(); fontFactory = new RandomFontFactory(); textRenderer = new BestFitTextRenderer(); colorFactory = new SingleColorFactory(textColor); filterFactory = ff; this.width = width; this.height = height; }
public ConfigurableCaptchaService() { backgroundFactory = new SingleColorBackgroundFactory(); wordFactory = new AdaptiveRandomWordFactory(); fontFactory = new RandomFontFactory(); textRenderer = new BestFitTextRenderer(); colorFactory = new SingleColorFactory(); filterFactory = new CurvesRippleFilterFactory(colorFactory); textRenderer.setLeftMargin(10); textRenderer.setRightMargin(10); width = 160; height = 70; }