Class MemoryUsageAndHistoryMonitor.History

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
be.gaudry.swing.component.monitor.MemoryUsageAndHistoryMonitor.History
All Implemented Interfaces:
MemoryUsageAndHistoryMonitor.MemoryChangeListener, ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
MemoryUsageAndHistoryMonitor

public static class MemoryUsageAndHistoryMonitor.History extends JPanel implements MemoryUsageAndHistoryMonitor.MemoryChangeListener
Displays the memory usage history in a chart.
See Also:
Serialized Form
  • Field Details

    • PREFERRED_WIDTH

      public static final int PREFERRED_WIDTH
      The preferred width.
      See Also:
      Constant Field Values
    • PREFERRED_HEIGHT

      public static final int PREFERRED_HEIGHT
      The preferred height.
      See Also:
      Constant Field Values
    • GRID_LINES_STROKE

      protected static final Stroke GRID_LINES_STROKE
      The grid lines stroke.
    • CURVE_STROKE

      protected static final Stroke CURVE_STROKE
      The curve stroke.
    • BORDER_STROKE

      protected static final Stroke BORDER_STROKE
      The border stroke.
    • gridLinesColor

      protected Color gridLinesColor
      The grid lines color.
    • curveColor

      protected Color curveColor
      The curve color.
    • borderColor

      protected Color borderColor
      The border color.
    • data

      protected List<Long> data
      The data.
    • xShift

      protected int xShift
      The vertical lines shift.
    • totalMemory

      protected long totalMemory
      The total memory.
    • freeMemory

      protected long freeMemory
      The free memory.
    • path

      protected GeneralPath path
      The curve representation.
  • Constructor Details

    • History

      public History()
      Creates a new History object.
  • Method Details