public class Brand extends Object
| Constructor and Description |
|---|
Brand(int brandWidth,
int brandHeight,
Font font,
int xOffset)
Constructor to set up footer image attributes.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
create(String brandLeftText,
String shortLeftText,
String brandRightText)
Create the brand image
|
public Brand(int brandWidth,
int brandHeight,
Font font,
int xOffset)
brandWidth - length of the footer in pixelsbrandHeight - height of the footer in pixelsfont - font to use for text on the footerxOffset - number of pixels text should be indented from left-hand side of footerpublic BufferedImage create(String brandLeftText, String shortLeftText, String brandRightText)
brandLeftText - text that should appear in the bottom left of the imageshortLeftText - abbreviated form of brandLeftText that will be substituted if
the image is resized such that brandLeftText will not fit. null if not
requiredbrandRightText - text that should appear in the bottom right of the imageCopyright © 2015 DuraSpace. All Rights Reserved.