sun.jvm.hotspot.oops.ObjectHistogram Java Examples

The following examples show how to use sun.jvm.hotspot.oops.ObjectHistogram. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ObjectHistogramPanel.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #2
Source File: ObjectHistogramPanel.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #3
Source File: ObjectHistogramPanel.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #4
Source File: ObjectHistogramPanel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #5
Source File: ObjectHistogramPanel.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #6
Source File: ObjectHistogramPanel.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #7
Source File: ObjectHistogramPanel.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #8
Source File: ObjectHistogramPanel.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public ObjectHistogramPanel(ObjectHistogram histo) {
    dataModel = new ObjectHistogramTableModel(histo);
    statusBar = new StatusBar();

    table = new JTable(dataModel, new ObjectHistogramColummModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    fireShowObjectsOfType();
                }
            }
        });

    JTableHeader header = table.getTableHeader();
    header.setDefaultRenderer(new SortHeaderCellRenderer(header, dataModel));
    header.addMouseListener(new SortHeaderMouseAdapter(table, dataModel));

    setLayout(new BorderLayout());

    toolbar = new ObjectHistogramToolBar(statusBar);
    add(toolbar, BorderLayout.NORTH);
    add(new JScrollPane(table), BorderLayout.CENTER);
    add(statusBar, BorderLayout.SOUTH);

    registerActions();
}
 
Example #9
Source File: ObjectHistogramPanel.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #10
Source File: ObjectHistogramPanel.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #11
Source File: ObjectHistogramPanel.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #12
Source File: ObjectHistogramPanel.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #13
Source File: ObjectHistogramPanel.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #14
Source File: ObjectHistogramPanel.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #15
Source File: ObjectHistogramPanel.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}
 
Example #16
Source File: ObjectHistogramPanel.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public ObjectHistogramTableModel(ObjectHistogram histo) {
    // Set the rows
    elements = histo.getElements();
    setComparator(new ObjectHistogramComparator(this));

}