|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.batik.util.gui.MemoryMonitor.History
public static class MemoryMonitor.History
Displays the memory usage history in a chart.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static Stroke |
BORDER_STROKE
The border stroke. |
protected Color |
borderColor
The border color. |
protected static Stroke |
CURVE_STROKE
The curve stroke. |
protected Color |
curveColor
The curve color. |
protected List |
data
The data. |
protected long |
freeMemory
The free memory. |
protected static Stroke |
GRID_LINES_STROKE
The grid lines stroke. |
protected Color |
gridLinesColor
The grid lines color. |
protected GeneralPath |
path
The curve representation. |
static int |
PREFERRED_HEIGHT
The preferred height. |
static int |
PREFERRED_WIDTH
The preferred width. |
protected long |
totalMemory
The total memory. |
protected int |
xShift
The vertical lines shift. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MemoryMonitor.History()
Creates a new History object. |
|
| Method Summary | |
|---|---|
void |
memoryStateChanged(long total,
long free)
Indicates that the memory state has changed. |
protected void |
paintComponent(Graphics g)
To paint the component. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PREFERRED_WIDTH
public static final int PREFERRED_HEIGHT
protected static final Stroke GRID_LINES_STROKE
protected static final Stroke CURVE_STROKE
protected static final Stroke BORDER_STROKE
protected Color gridLinesColor
protected Color curveColor
protected Color borderColor
protected List data
protected int xShift
protected long totalMemory
protected long freeMemory
protected GeneralPath path
| Constructor Detail |
|---|
public MemoryMonitor.History()
| Method Detail |
|---|
public void memoryStateChanged(long total,
long free)
memoryStateChanged in interface MemoryMonitor.MemoryChangeListenertotal - The total amount of memory.free - The free memory.protected void paintComponent(Graphics g)
paintComponent in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||