public class NineBlockIdenticonRenderer2 extends Object implements IdenticonRenderer
| Constructor and Description |
|---|
NineBlockIdenticonRenderer2()Constructs a renderer with the default patch size. |
| Modifier and Type | Method and Description |
|---|---|
Color | getBackgroundColor()Background color of the identicon. |
float | getPatchSize()Size of each patch in the identicon. |
BufferedImage | render(BigInteger code,
int size)Render an identicon from a BigInteger hash code. |
BufferedImage | render(int code,
int size)Render an identicon from an integer hash code. |
void | setBackgroundColor(Color backgroundColor)Set the background color of the identicon. |
void | setPatchSize(float size)Set the size for each patch and rebuild the patch shapes. |
public NineBlockIdenticonRenderer2()
public Color getBackgroundColor()
public float getPatchSize()
public BufferedImage render(BigInteger code, int size)
render in interface IdenticonRenderercode - identicon codesize - image sizepublic BufferedImage render(int code, int size)
render in interface IdenticonRenderercode - identicon codesize - image sizepublic void setBackgroundColor(Color backgroundColor)
public void setPatchSize(float size)