public class AWTColorbarImageGenerator extends AWTAbstractImageGenerator implements AWTImageGenerator
Modifier and Type | Field and Description |
---|---|
protected ColorMapper |
mapper |
protected double |
max |
protected double |
min |
protected ITickProvider |
provider |
protected ITickRenderer |
renderer |
backgroundColor, font, foregroundColor, hasBackground, MIN_BAR_HEIGHT, MIN_BAR_WIDTH, textSize
Constructor and Description |
---|
AWTColorbarImageGenerator(ColorMapper mapper,
ITickProvider provider,
ITickRenderer renderer) |
AWTColorbarImageGenerator(IColorMap map,
float min,
float max,
ITickProvider provider,
ITickRenderer renderer) |
Modifier and Type | Method and Description |
---|---|
void |
drawBarColors(int height,
int barWidth,
Graphics2D graphic) |
void |
drawBarContour(int height,
int barWidth,
Graphics2D graphic) |
void |
drawTextAnnotations(int height,
int barWidth,
Graphics2D graphic) |
BufferedImage |
toImage(int width,
int height) |
BufferedImage |
toImage(int width,
int height,
int barWidth)
Renders the
AWTColorbarImageGenerator to an image. |
configureText, drawBackground, drawLegendBorder, getBackgroundColor, getFont, getForegroundColor, hasBackground, setBackgroundColor, setFont, setForegroundColor, setHasBackground
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBackgroundColor, getFont, getForegroundColor, hasBackground, setBackgroundColor, setFont, setForegroundColor, setHasBackground
protected ColorMapper mapper
protected ITickProvider provider
protected ITickRenderer renderer
protected double min
protected double max
public AWTColorbarImageGenerator(IColorMap map, float min, float max, ITickProvider provider, ITickRenderer renderer)
public AWTColorbarImageGenerator(ColorMapper mapper, ITickProvider provider, ITickRenderer renderer)
public BufferedImage toImage(int width, int height)
toImage
in interface AWTImageGenerator
public BufferedImage toImage(int width, int height, int barWidth)
AWTColorbarImageGenerator
to an image.public void drawBarContour(int height, int barWidth, Graphics2D graphic)
public void drawBarColors(int height, int barWidth, Graphics2D graphic)
public void drawTextAnnotations(int height, int barWidth, Graphics2D graphic)
Copyright © 2016. All rights reserved.