Class AWTSerieLegend

    • Field Detail

      • margin

        protected int margin
      • askedWidth

        protected int askedWidth
      • askedHeight

        protected int askedHeight
    • Constructor Detail

      • AWTSerieLegend

        public AWTSerieLegend​(Serie2d serie)
      • AWTSerieLegend

        public AWTSerieLegend​(Drawable drawable)
      • AWTSerieLegend

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

      • 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