Class AWTSeriesLegend

All Implemented Interfaces:
IDrawableListener, ILegend, IImageViewport

public class AWTSeriesLegend extends AWTLegend implements IImageViewport
  • Field Details

    • margin

      protected int margin
    • series

      protected List<Serie2d> series
    • askedWidth

      protected int askedWidth
    • askedHeight

      protected int askedHeight
  • Constructor Details

    • AWTSeriesLegend

      public AWTSeriesLegend()
    • AWTSeriesLegend

      public AWTSeriesLegend(Serie2d... series)
    • AWTSeriesLegend

      public AWTSeriesLegend(List<Serie2d> series)
    • AWTSeriesLegend

      public AWTSeriesLegend(List<Serie2d> series, Color foreground, Color background)
  • Method Details

    • addSerie

      public void addSerie(Serie2d serie)
    • initImageGenerator

      public void initImageGenerator()
    • setFont

      public void setFont(Font font)
      Specified by:
      setFont in interface ILegend
    • getFont

      public Font getFont()
      Specified by:
      getFont in interface ILegend
    • render

      public void render(IPainter painter)
      Description copied from interface: IImageViewport
      Renders the picture into the window, according to the viewport settings. If the picture is bigger than the viewport, it is simply centered in it, otherwise, it is scaled in order to fit into the viewport.
      Specified by:
      render in interface IImageViewport
      Overrides:
      render in class AWTImageViewport
    • toImage

      public BufferedImage toImage(int width, int height)
      Specified by:
      toImage in class AWTLegend
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface ILegend
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface ILegend
    • updateMinimumDimension

      public void updateMinimumDimension(IPainter painter)
      Specified by:
      updateMinimumDimension in interface ILegend