Class AWTSeriesLegend

    • Field Detail

      • margin

        protected int margin
      • askedWidth

        protected int askedWidth
      • askedHeight

        protected int askedHeight
    • Constructor Detail

      • 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 Detail

      • addSerie

        public void addSerie​(Serie2d serie)
      • initImageGenerator

        public void initImageGenerator()
      • setFont

        public void setFont​(Font font)
        Specified by:
        setFont 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
        Parameters:
        painter - TODO
      • getWidth

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

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