Class AWTLegend

    • Constructor Detail

      • AWTLegend

        public AWTLegend​(Drawable drawable)
      • AWTLegend

        public AWTLegend​(Drawable drawable,
                         Color foreground,
                         Color background)
    • Method Detail

      • dispose

        public void dispose()
      • toImage

        public abstract BufferedImage toImage​(int width,
                                              int height)
      • setViewPort

        public void setViewPort​(int width,
                                int height,
                                float left,
                                float right)
        Defines viewport dimensions, and precompute an image if required (i.e. if the viewport dimension have changed
        Specified by:
        setViewPort in interface IImageViewport
        Overrides:
        setViewPort in class AbstractViewportManager
        Parameters:
        width - the width of the target window.
        height - the height of the target window.
        left - the width's ratio where this subscreen starts in the target window.
        right - the width's ratio where this subscreen stops in the target window.
      • updateImage

        public void updateImage()
        Description copied from interface: ILegend
        Recompute the picture, using last used dimensions.
        Specified by:
        updateImage in interface ILegend
      • setMinimumDimension

        public void setMinimumDimension​(Dimension dimension)
      • setMinimumWidth

        public void setMinimumWidth​(int minimumWidth)
      • setGeneratorColors

        public void setGeneratorColors()
      • getForeground

        public Color getForeground()
      • setForeground

        public void setForeground​(Color foreground)
      • getBackground

        public Color getBackground()
      • setBackground

        public void setBackground​(Color background)