org.apache.batik.util.gui

Class MemoryMonitor.History

public static class MemoryMonitor.History extends JPanel implements MemoryMonitor.MemoryChangeListener

Displays the memory usage history in a chart.
Field Summary
protected ColorborderColor
The border color.
protected static StrokeBORDER_STROKE
The border stroke.
protected ColorcurveColor
The curve color.
protected static StrokeCURVE_STROKE
The curve stroke.
protected Listdata
The data.
protected longfreeMemory
The free memory.
protected ColorgridLinesColor
The grid lines color.
protected static StrokeGRID_LINES_STROKE
The grid lines stroke.
protected GeneralPathpath
The curve representation.
static intPREFERRED_HEIGHT
The preferred height.
static intPREFERRED_WIDTH
The preferred width.
protected longtotalMemory
The total memory.
protected intxShift
The vertical lines shift.
Constructor Summary
History()
Creates a new History object.
Method Summary
voidmemoryStateChanged(long total, long free)
Indicates that the memory state has changed.
protected voidpaintComponent(Graphics g)
To paint the component.

Field Detail

borderColor

protected Color borderColor
The border color.

BORDER_STROKE

protected static final Stroke BORDER_STROKE
The border stroke.

curveColor

protected Color curveColor
The curve color.

CURVE_STROKE

protected static final Stroke CURVE_STROKE
The curve stroke.

data

protected List data
The data.

freeMemory

protected long freeMemory
The free memory.

gridLinesColor

protected Color gridLinesColor
The grid lines color.

GRID_LINES_STROKE

protected static final Stroke GRID_LINES_STROKE
The grid lines stroke.

path

protected GeneralPath path
The curve representation.

PREFERRED_HEIGHT

public static final int PREFERRED_HEIGHT
The preferred height.

PREFERRED_WIDTH

public static final int PREFERRED_WIDTH
The preferred width.

totalMemory

protected long totalMemory
The total memory.

xShift

protected int xShift
The vertical lines shift.

Constructor Detail

History

public History()
Creates a new History object.

Method Detail

memoryStateChanged

public void memoryStateChanged(long total, long free)
Indicates that the memory state has changed.

Parameters: total The total amount of memory. free The free memory.

paintComponent

protected void paintComponent(Graphics g)
To paint the component.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.