manifestation.getPlot().getPlotLineDraw().drawMarkers()) {
subMenuText = String.format(BUNDLE.getString("SelectMarker.label"), name);
subMenu = new JMenu(subMenuText);
for (int i = 0; i < PlotConstants.MAX_NUMBER_OF_DATA_ITEMS_ON_A_PLOT; i++) {
JMenuItem item = new JRadioButtonMenuItem("",
new PlotMarkerIcon(PlotLineShapePalette.getShape(i), false),
(settings.getMarker() == i && !settings.getUseCharacter()));
item.setForeground(legendEntry.getForeground());
final int marker = i;
item.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
settings.setMarker(marker);
settings.setUseCharacter(false);
legendEntry.setLineSettings(settings);
manifestation.persistPlotLineSettings();
}
});
subMenu.add(item);
}
JMenuItem other = new JRadioButtonMenuItem(BUNDLE.getString("SelectCharacter.label"),
settings.getUseCharacter());
if (!settings.getCharacter().isEmpty()) {
FontRenderContext frc = ((Graphics2D) manifestation.getGraphics()).getFontRenderContext();
other.setIcon(new PlotMarkerIcon(
PlotLineShapePalette.getShape(settings.getCharacter(), frc),
PlotLineColorPalette.getColor(settings.getColorIndex()),
false));
}
other.addActionListener( new ActionListener() {