Class AWTSerieLegend

All Implemented Interfaces:
IDrawableListener, ILegend, IImageViewport

public class AWTSerieLegend extends AWTLegend implements IImageViewport
  • Field Details

    • margin

      protected int margin
    • serie

      protected Serie2d serie
    • askedWidth

      protected int askedWidth
    • askedHeight

      protected int askedHeight
  • Constructor Details

    • AWTSerieLegend

      public AWTSerieLegend(Serie2d serie)
    • AWTSerieLegend

      public AWTSerieLegend(Drawable drawable)
    • AWTSerieLegend

      public AWTSerieLegend(Drawable drawable, Color foreground, Color background)
  • Method Details

    • 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