Examples of DistributionDensityGraph


Examples of jmt.framework.gui.graph.DistributionDensityGraph

    DistributionDensity dist = sop.getDist();
    graphHolder.removeAll();
    int type = graphType.getSelectedIndex();
    if (type != DistributionDensity.TYPE_NONE && dist != null) {
      dist.setType(type);
      graph = new DistributionDensityGraph(dist);
      graph.setToolTipText("Displays desired graph. Right click to 'Save As' and double click to enlarge.");
      graph.setMinimumSize(new Dimension(200, 150));
      graph.setPreferredSize(new Dimension(300, 250));
      graphHolder.add(graph);
      graphHolder.validate();
View Full Code Here

Examples of jmt.framework.gui.graph.DistributionDensityGraph

    graph.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() == 2) {
          JFrame popupFrame = new JFrame();
          final DistributionDensityGraph popupGraph = new DistributionDensityGraph(sop.getDist());
          popupGraph.setToolTipText("Right click to 'Save As'.");
          popupFrame.getContentPane().add(popupGraph);
          popupFrame.setTitle(windowName);
          popupFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
          int width = 640, height = 480;
          Dimension scrDim = Toolkit.getDefaultToolkit().getScreenSize();
          popupFrame.setBounds((scrDim.width - width) / 2, (scrDim.height - height) / 2, width, height);
          popupGraph.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
              popupGraph.mouseClicked(e);

            }
          });

          popupFrame.setVisible(true);
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.