org.jzy3d.plot2d.primitive
Class ColorbarImageGenerator

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

public class ColorbarImageGenerator
extends java.lang.Object

Author:
Martin Pernollet

Field Summary
static int MIN_BAR_HEIGHT
           
static int MIN_BAR_WIDTH
           
 
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)
           
 java.awt.Image toImage(int width, int height)
          Renders the ColorbarImageGenerator to an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 java.awt.Image toImage(int width,
                              int height)
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)