public abstract class AWTAbstractImageGenerator extends Object implements AWTImageGenerator
| Modifier and Type | Field and Description |
|---|---|
protected Color |
backgroundColor |
protected Font |
font |
protected Color |
foregroundColor |
protected boolean |
hasBackground |
static int |
MIN_BAR_HEIGHT |
static int |
MIN_BAR_WIDTH |
protected int |
textSize |
| Constructor and Description |
|---|
AWTAbstractImageGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureText(Graphics2D graphic) |
void |
drawBackground(int width,
int height,
Graphics2D graphic) |
void |
drawLegendBorder(Graphics2D graphic,
int width,
int height) |
Color |
getBackgroundColor() |
Font |
getFont() |
Color |
getForegroundColor() |
boolean |
hasBackground() |
void |
setBackgroundColor(Color backgroundColor) |
void |
setFont(Font font) |
void |
setForegroundColor(Color foregroundColor) |
void |
setHasBackground(boolean hasBackground) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoImageprotected boolean hasBackground
protected Font font
protected int textSize
protected Color backgroundColor
protected Color foregroundColor
public static final int MIN_BAR_WIDTH
public static final int MIN_BAR_HEIGHT
public void configureText(Graphics2D graphic)
public void drawBackground(int width,
int height,
Graphics2D graphic)
public boolean hasBackground()
hasBackground in interface AWTImageGeneratorpublic void setHasBackground(boolean hasBackground)
setHasBackground in interface AWTImageGeneratorpublic Color getBackgroundColor()
getBackgroundColor in interface AWTImageGeneratorpublic void setBackgroundColor(Color backgroundColor)
setBackgroundColor in interface AWTImageGeneratorpublic Color getForegroundColor()
getForegroundColor in interface AWTImageGeneratorpublic void setForegroundColor(Color foregroundColor)
setForegroundColor in interface AWTImageGeneratorpublic void drawLegendBorder(Graphics2D graphic, int width, int height)
public Font getFont()
getFont in interface AWTImageGeneratorpublic void setFont(Font font)
setFont in interface AWTImageGeneratorCopyright © 2016. All rights reserved.