org.jzy3d.plot2d.primitive
Class ColorbarImageGenerator
java.lang.Object
org.jzy3d.plot2d.primitive.ColorbarImageGenerator
public class ColorbarImageGenerator
- extends Object
- Author:
- Martin Pernollet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapper
protected ColorMapper mapper
provider
protected ITickProvider provider
renderer
protected ITickRenderer renderer
min
protected float min
max
protected float max
hasBackground
protected boolean hasBackground
backgroundColor
protected Color backgroundColor
foregroundColor
protected Color foregroundColor
MIN_BAR_WIDTH
public static final int MIN_BAR_WIDTH
- See Also:
- Constant Field Values
MIN_BAR_HEIGHT
public static final int MIN_BAR_HEIGHT
- See Also:
- Constant Field Values
ColorbarImageGenerator
public ColorbarImageGenerator(IColorMap map,
float min,
float max,
ITickProvider provider,
ITickRenderer renderer)
ColorbarImageGenerator
public ColorbarImageGenerator(ColorMapper mapper,
ITickProvider provider,
ITickRenderer renderer)
toImage
public BufferedImage toImage(int width,
int height)
toImage
public BufferedImage toImage(int width,
int height,
int barWidth)
- Renders the
ColorbarImageGenerator
to an image.
hasBackground
public boolean hasBackground()
setHasBackground
public void setHasBackground(boolean hasBackground)
getBackgroundColor
public Color getBackgroundColor()
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
getForegroundColor
public Color getForegroundColor()
setForegroundColor
public void setForegroundColor(Color foregroundColor)