Examples of PlotMarkerIcon


Examples of gov.nasa.arc.mct.fastplot.bridge.PlotMarkerIcon

          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() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.