Class SubstanceTitlePane.HeapStatusPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.pushingpixels.substance.internal.utils.SubstanceTitlePane.HeapStatusPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
SubstanceTitlePane

public static class SubstanceTitlePane.HeapStatusPanel extends JPanel
Panel that shows heap status and allows running the garbage collector.
See Also:
  • Constructor Details

    • HeapStatusPanel

      public HeapStatusPanel()
      Creates new heap status panel.
  • Method Details

    • updateStatus

      public void updateStatus(int currHeapSizeKB, int currTakenHeapSizeKB)
      Updates the values for this heap status panel.
      Parameters:
      currHeapSizeKB - The current heap size in kilobytes.
      currTakenHeapSizeKB - The current used portion of heap in kilobytes.
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • getPreferredWidth

      public int getPreferredWidth()
      Returns the preferred width of this panel.
      Returns:
      Preferred width of this panel.