final List<ColorMapEntry> mapEntries, final HAlign hAlign, final VAlign vAling,
final Color bkgColor, final double bkgOpacity, final String text,
final Dimension requestedDimension, final Font labelFont, final Color labelFontColor,
final boolean fontAntiAliasing, final Color borderColor) {
final ColorMapEntry previousCME = mapEntries.get(0);
final ColorMapEntry currentCME = mapEntries.get(1);
boolean leftEdge;
if (previousCME == null)
leftEdge = true;
else
leftEdge = false;
Color color = LegendUtils.color(currentCME);
final double opacity = LegendUtils.getOpacity(currentCME);
color = new Color(color.getRed(), color.getGreen(), color.getBlue(), (int) (255 * opacity));
super.add(new SimpleColorManager(color, opacity, requestedDimension, borderColor));
String label = currentCME.getLabel();
double quantity1 = leftEdge ? LegendUtils.getQuantity(currentCME) : LegendUtils
.getQuantity(previousCME);
double quantity2 = LegendUtils.getQuantity(currentCME);
String symbol1 = null, symbol2 = null;
if (leftEdge)