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 Summary
Fields Modifier and Type Field Description protected List<Legend>infoprotected LineLegendLayoutlayout-
Fields inherited from class org.jzy3d.plot3d.rendering.view.AbstractAWTRenderer2d
view
-
-
Constructor Summary
Constructors Constructor Description OverlayLegendRenderer(List<Legend> info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Legend>getInfo()LineLegendLayoutgetLayout()protected AffineTransformmakeShapeTransform(Legend line, int textHeight, int yTextPos, int xLineStart)protected intmaxStringWidth(FontMetrics fm)voidpaint(Graphics g, int canvasWidth, int canvasHeight)voidpaintLegend(Graphics2D g2d, int textHeight, int textWidthMax, int xTextPos, int yTextPos, Legend line)voidsetInfo(List<Legend> info)voidsetLayout(LineLegendLayout layout)-
Methods inherited from class org.jzy3d.plot3d.rendering.view.AbstractAWTRenderer2d
getView, setView
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jzy3d.plot3d.rendering.view.AWTRenderer2d
getView, setView
-
-
-
-
Field Detail
-
layout
protected LineLegendLayout layout
-
-
Method Detail
-
paint
public void paint(Graphics g, int canvasWidth, int canvasHeight)
- Specified by:
paintin interfaceAWTRenderer2d
-
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)
-
getLayout
public LineLegendLayout getLayout()
-
setLayout
public void setLayout(LineLegendLayout layout)
-
-