public class OverlayLegendRenderer extends Object implements Renderer2d
| Modifier and Type | Field and Description |
|---|---|
protected List<Legend> |
info |
protected LegendLayout |
layout |
| Constructor and Description |
|---|
OverlayLegendRenderer(List<Legend> info) |
| Modifier and Type | Method and Description |
|---|---|
List<Legend> |
getInfo() |
LegendLayout |
getLayout() |
protected AffineTransform |
makeShapeTransform(Legend line,
int textHeight,
int yTextPos,
int xLineStart) |
protected int |
maxStringWidth(FontMetrics fm) |
void |
paint(Graphics g,
int canvasWidth,
int canvasHeight) |
void |
paintLegend(Graphics2D g2d,
int textHeight,
int textWidthMax,
int xTextPos,
int yTextPos,
Legend line) |
void |
setInfo(List<Legend> info) |
void |
setLayout(LegendLayout layout) |
protected LegendLayout layout
public void paint(Graphics g, int canvasWidth, int canvasHeight)
paint in interface Renderer2dpublic void paintLegend(Graphics2D g2d, int textHeight, int textWidthMax, int xTextPos, int yTextPos, Legend line)
protected AffineTransform makeShapeTransform(Legend line, int textHeight, int yTextPos, int xLineStart)
protected int maxStringWidth(FontMetrics fm)
public LegendLayout getLayout()
public void setLayout(LegendLayout layout)
Copyright © 2021. All rights reserved.