Class OverlayLegendRenderer
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.legends.overlay.OverlayLegendRenderer
-
- All Implemented Interfaces:
AWTRenderer2d
public class OverlayLegendRenderer extends Object 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 LegendLayoutlayout
-
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()LegendLayoutgetLayout()Coord2dgetScale()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(LegendLayout layout)voidsetScale(Coord2d scale)
-
-
-
Field Detail
-
layout
protected LegendLayout 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 LegendLayout getLayout()
-
setLayout
public void setLayout(LegendLayout layout)
-
getScale
public Coord2d getScale()
-
setScale
public void setScale(Coord2d scale)
-
-