Class AWTColorbarLegend

All Implemented Interfaces:
IDrawableListener, IColorbarLegend, ILegend, IImageViewport

public class AWTColorbarLegend extends AWTLegend implements IColorbarLegend
Handle a colorbar rendered as an AWT BufferedImage.

Content and coloring

A colorbar is configured with
  • a colormap defined by the input Drawable if it is IMultiColorable and if it has a ColorMapper defined.
  • a set of axis ticks defined and formated by
    invalid @link
    IAxisLayout
    .

Layout

The size of the colorbar image is driven by The position of the colorbar is defined by ViewAndColorbarsLayout which render the prepared image at the layout given position for this colorbar (which is defined with left/right parameters). Schema sources

Rendering path

EmulGL and Native have different rendering pathes
  • Native chart have their colorbar image rendered by render(IPainter).
  • EmulGL chart have their colorbar image rendered by AWT as bypassed by
    invalid @link
    EmulGLViewAndColorbarLayout
    , which customize the way pixel scale should be handled for rendering such image in a good layoout
Schema sources