Class OverlayLegendRenderer

java.lang.Object
org.jzy3d.plot3d.rendering.view.AbstractAWTRenderer2d
org.jzy3d.plot3d.rendering.legends.overlay.OverlayLegendRenderer
All Implemented Interfaces:
AWTRenderer2d

public class OverlayLegendRenderer extends AbstractAWTRenderer2d implements AWTRenderer2d
Params - margin - corner - constraints : byDimension (maxWidth) or byText - interligne - font size / font style
Author:
Martin Pernollet
  • Field Details

  • Constructor Details

    • OverlayLegendRenderer

      public OverlayLegendRenderer(Legend info)
    • OverlayLegendRenderer

      public OverlayLegendRenderer(Legend... info)
    • OverlayLegendRenderer

      public OverlayLegendRenderer(List<Legend> info)
  • Method Details

    • paint

      public void paint(Graphics g, int canvasWidth, int canvasHeight)
      Specified by:
      paint in interface AWTRenderer2d
    • paintLegend

      public void paintLegend(Graphics2D g2d, int textHeight, int textWidthMax, int xTextPos, int yTextPos, Legend line)
    • makeShapeTransform

      protected AffineTransform makeShapeTransform(Legend line, int textHeight, int yTextPos, int xLineStart)
    • maxStringWidth

      protected int maxStringWidth(FontMetrics fm)
    • getInfo

      public List<Legend> getInfo()
    • setInfo

      public void setInfo(List<Legend> info)
    • getLayout

      public LineLegendLayout getLayout()
    • setLayout

      public void setLayout(LineLegendLayout layout)