Esempio n. 1
0
  public ColorMapVisualization(MRAPanel panel, String defaultEntity, String fieldToPlot) {
    this.logSource = panel.getSource();
    this.curEntity = defaultEntity;
    setLayout(new MigLayout());

    // Parse field to plot
    String part[] = fieldToPlot.split("\\.");
    messageName = part[0];
    varName = part[1];

    // Initialize entityList with the ALL shorthand
    entityList.add("ALL");

    // Misc setups and interface build
    redrawButton.addActionListener(this);
    entCombo.setModel(new DefaultComboBoxModel<String>(entityList));

    toolbar.add(Box.createHorizontalGlue());
    toolbar.add(cmapMinValue);
    toolbar.add(cmapMaxValue);
    toolbar.add(cmapCombo);
    toolbar.add(entCombo);
    toolbar.add(redrawButton);
    toolbar.add(savePng);
    toolbar.add(savePdf);

    add(toolbar, "w 100%, wrap");
    add(container, "w 100%, h 100%");

    cmapCombo.setSelectedItem(ColorMapFactory.createJetColorMap());
    cmapCombo.setRenderer(new ColorMapListRenderer());

    revalidate();
  }
Esempio n. 2
0
 public LsfTreeMouseAdapter(MRAPanel mraPanel) {
   panel = mraPanel;
   tree = panel.getTree();
   source = panel.getSource();
 }