|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.octo.captcha.component.image.backgroundgenerator.AbstractBackgroundGenerator com.octo.captcha.component.image.backgroundgenerator.MultipleShapeBackgroundGenerator
public class MultipleShapeBackgroundGenerator
Draw mutliple different shape with different colors. see attributes to construct it in a proper way.
Constructor Summary | |
---|---|
MultipleShapeBackgroundGenerator(java.lang.Integer width,
java.lang.Integer height)
|
|
MultipleShapeBackgroundGenerator(java.lang.Integer width,
java.lang.Integer height,
java.awt.Color firstEllipseColor,
java.awt.Color secondEllipseColor,
java.lang.Integer spaceBetweenLine,
java.lang.Integer spaceBetweenCircle,
java.lang.Integer ellipseHeight,
java.lang.Integer ellipseWidth,
java.awt.Color firstRectangleColor,
java.awt.Color secondRectangleColor,
java.lang.Integer rectangleWidth)
|
Method Summary | |
---|---|
java.awt.image.BufferedImage |
getBackground()
Main method. |
protected int |
getEllipseHeight()
Helper method to get the height of drawn ellipses. |
protected int |
getEllipseWidth()
Helper method to get the width of drawn ellipses. |
protected int |
getRectangleWidth()
Helper method to get the width of drawn rectangles. |
protected int |
getSpaceBetweenCircle()
Helper method to get the int value of the number of pixels between circles. |
protected int |
getSpaceBetweenLine()
Helper method to get the int value of the number of pixels between lines. |
Methods inherited from class com.octo.captcha.component.image.backgroundgenerator.AbstractBackgroundGenerator |
---|
getImageHeight, getImageWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipleShapeBackgroundGenerator(java.lang.Integer width, java.lang.Integer height)
public MultipleShapeBackgroundGenerator(java.lang.Integer width, java.lang.Integer height, java.awt.Color firstEllipseColor, java.awt.Color secondEllipseColor, java.lang.Integer spaceBetweenLine, java.lang.Integer spaceBetweenCircle, java.lang.Integer ellipseHeight, java.lang.Integer ellipseWidth, java.awt.Color firstRectangleColor, java.awt.Color secondRectangleColor, java.lang.Integer rectangleWidth)
Method Detail |
---|
public java.awt.image.BufferedImage getBackground()
protected int getSpaceBetweenLine()
protected int getSpaceBetweenCircle()
protected int getEllipseHeight()
protected int getEllipseWidth()
protected int getRectangleWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |