public class LegendImageComposer extends java.lang.Object implements LegendImageRetriever
LegendImageRetriever.ErrorBehavior
Modifier and Type | Field and Description |
---|---|
static int |
BEST_ASPECT_RATIO_COLUMNS_NUMBER |
static int |
FEWER_SUITABLE_COLUMNS_NUMBER |
static int |
NO_MAX_HEIGHT |
static int |
NO_MAX_WIDTH |
ERROR_FONT, ERROR_MESSAGE
Constructor and Description |
---|
LegendImageComposer(LegendFormat legendFormat) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createLegendImage(LegendData legendData,
int columnsNumber,
Dimension legendMaxSize,
LegendImageRetriever.ErrorBehavior errorBehavior) |
void |
setRenderingHints(LegendRenderingHints renderingHints) |
public static final int NO_MAX_WIDTH
public static final int NO_MAX_HEIGHT
public static final int BEST_ASPECT_RATIO_COLUMNS_NUMBER
public static final int FEWER_SUITABLE_COLUMNS_NUMBER
public LegendImageComposer(LegendFormat legendFormat)
public java.awt.image.BufferedImage createLegendImage(LegendData legendData, int columnsNumber, Dimension legendMaxSize, LegendImageRetriever.ErrorBehavior errorBehavior) throws java.io.IOException
java.io.IOException
public void setRenderingHints(LegendRenderingHints renderingHints)