org.jzy3d.plot2d.primitive
Class ColorbarImageGenerator

java.lang.Object
  extended by org.jzy3d.plot2d.primitive.ColorbarImageGenerator

public class ColorbarImageGenerator
extends Object

Author:
Martin Pernollet

Field Summary
protected  Color backgroundColor
           
protected  Color foregroundColor
           
protected  boolean hasBackground
           
protected  ColorMapper mapper
           
protected  float max
           
protected  float min
           
static int MIN_BAR_HEIGHT
           
static int MIN_BAR_WIDTH
           
protected  ITickProvider provider
           
protected  ITickRenderer renderer
           
 
Constructor Summary
ColorbarImageGenerator(ColorMapper mapper, ITickProvider provider, ITickRenderer renderer)
           
ColorbarImageGenerator(IColorMap map, float min, float max, ITickProvider provider, ITickRenderer renderer)
           
 
Method Summary
 Color getBackgroundColor()
           
 Color getForegroundColor()
           
 boolean hasBackground()
           
 void setBackgroundColor(Color backgroundColor)
           
 void setForegroundColor(Color foregroundColor)
           
 void setHasBackground(boolean hasBackground)
           
 BufferedImage toImage(int width, int height)
           
 BufferedImage toImage(int width, int height, int barWidth)
          Renders the ColorbarImageGenerator to an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ColorbarImageGenerator

public ColorbarImageGenerator(IColorMap map,
                              float min,
                              float max,
                              ITickProvider provider,
                              ITickRenderer renderer)

ColorbarImageGenerator

public ColorbarImageGenerator(ColorMapper mapper,
                              ITickProvider provider,
                              ITickRenderer renderer)
Method Detail

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)