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, wait
toImage
protected 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 AWTImageGenerator
public void setHasBackground(boolean hasBackground)
setHasBackground
in interface AWTImageGenerator
public Color getBackgroundColor()
getBackgroundColor
in interface AWTImageGenerator
public void setBackgroundColor(Color backgroundColor)
setBackgroundColor
in interface AWTImageGenerator
public Color getForegroundColor()
getForegroundColor
in interface AWTImageGenerator
public void setForegroundColor(Color foregroundColor)
setForegroundColor
in interface AWTImageGenerator
public void drawLegendBorder(Graphics2D graphic, int width, int height)
public Font getFont()
getFont
in interface AWTImageGenerator
public void setFont(Font font)
setFont
in interface AWTImageGenerator
Copyright © 2016. All rights reserved.