public class Brand
extends java.lang.Object
| Constructor and Description |
|---|
Brand(int brandWidth,
int brandHeight,
java.awt.Font font,
int xOffset)
Constructor to set up footer image attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
create(java.lang.String brandLeftText,
java.lang.String shortLeftText,
java.lang.String brandRightText)
Create the brand image
|
public Brand(int brandWidth,
int brandHeight,
java.awt.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 java.awt.image.BufferedImage create(java.lang.String brandLeftText,
java.lang.String shortLeftText,
java.lang.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 © 2018 DuraSpace. All Rights Reserved.