|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JLabel com.alee.laf.label.WebLabel com.alee.extended.statusbar.WebMemoryBar
public class WebMemoryBar
User: mgarin Date: 10.10.11 Time: 17:51
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JLabel |
---|
javax.swing.JLabel.AccessibleJLabel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
boolean |
drawBorder
|
boolean |
fillBackground
|
static java.lang.String |
THREAD_NAME
|
Fields inherited from class javax.swing.JLabel |
---|
labelFor |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebMemoryBar()
|
Method Summary | |
---|---|
void |
addMemoryBarListener(MemoryBarListener listener)
|
void |
doGC()
|
void |
fireGcCalled()
|
void |
fireGcCompleted()
|
java.awt.Color |
getAllocatedBorderColor()
|
java.awt.Color |
getAllocatedDisabledBorderColor()
|
long |
getAllocatedMemory()
|
int |
getLeftRightSpacing()
|
long |
getMaxMemory()
|
protected java.lang.String |
getMemoryBarText()
|
protected java.lang.String |
getMemoryBarTooltipText()
|
javax.swing.ImageIcon |
getMemoryIcon()
|
int |
getMinimumHeight()
Returns component minimum height. |
int |
getMinimumWidth()
Returns component minimum width. |
int |
getPreferredHeight()
Returns component preferred height. |
java.awt.Dimension |
getPreferredSize()
Returns component preferred size. |
int |
getPreferredWidth()
Returns component preferred width. |
int |
getRefreshRate()
|
int |
getRound()
|
int |
getShadeWidth()
|
int |
getTooltipDelay()
|
java.awt.Color |
getUsedBorderColor()
|
java.awt.Color |
getUsedFillColor()
|
long |
getUsedMemory()
|
boolean |
isAllowGcAction()
|
boolean |
isDrawBorder()
|
boolean |
isFillBackground()
|
boolean |
isShowMaximumMemory()
|
boolean |
isShowTooltip()
|
protected void |
paintComponent(java.awt.Graphics g)
|
java.awt.Shape |
provideShape()
Returns component shape. |
void |
removeMemoryBarListener(MemoryBarListener listener)
|
void |
setAllocatedBorderColor(java.awt.Color allocatedBorderColor)
|
void |
setAllocatedDisabledBorderColor(java.awt.Color allocatedDisabledBorderColor)
|
void |
setAllowGcAction(boolean allowGcAction)
|
void |
setDrawBorder(boolean drawBorder)
|
void |
setFillBackground(boolean fillBackground)
|
void |
setLeftRightSpacing(int leftRightSpacing)
|
void |
setMemoryIcon(javax.swing.ImageIcon memoryIcon)
|
WebMemoryBar |
setMinimumHeight(int minimumHeight)
Sets component minimum height. |
WebMemoryBar |
setMinimumWidth(int minimumWidth)
Sets component minimum width. |
WebMemoryBar |
setPreferredHeight(int preferredHeight)
Sets component preferred height. |
WebMemoryBar |
setPreferredWidth(int preferredWidth)
Sets component preferred width. |
void |
setRefreshRate(int refreshRate)
|
void |
setRound(int round)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setShowMaximumMemory(boolean showMaximumMemory)
|
void |
setShowTooltip(boolean showTooltip)
|
void |
setTooltipDelay(int tooltipDelay)
|
void |
setUsedBorderColor(java.awt.Color usedBorderColor)
|
void |
setUsedFillColor(java.awt.Color usedFillColor)
|
protected void |
updateMemory()
|
Methods inherited from class javax.swing.JLabel |
---|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String THREAD_NAME
public boolean drawBorder
public boolean fillBackground
Constructor Detail |
---|
public WebMemoryBar()
Method Detail |
---|
public void doGC()
protected void updateMemory()
protected java.lang.String getMemoryBarText()
protected java.lang.String getMemoryBarTooltipText()
public int getRefreshRate()
public void setRefreshRate(int refreshRate)
public int getRound()
public void setRound(int round)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public java.awt.Color getAllocatedBorderColor()
public void setAllocatedBorderColor(java.awt.Color allocatedBorderColor)
public java.awt.Color getAllocatedDisabledBorderColor()
public void setAllocatedDisabledBorderColor(java.awt.Color allocatedDisabledBorderColor)
public java.awt.Color getUsedBorderColor()
public void setUsedBorderColor(java.awt.Color usedBorderColor)
public java.awt.Color getUsedFillColor()
public void setUsedFillColor(java.awt.Color usedFillColor)
public int getLeftRightSpacing()
public void setLeftRightSpacing(int leftRightSpacing)
public boolean isDrawBorder()
public void setDrawBorder(boolean drawBorder)
public boolean isFillBackground()
public void setFillBackground(boolean fillBackground)
public boolean isAllowGcAction()
public void setAllowGcAction(boolean allowGcAction)
public boolean isShowTooltip()
public void setShowTooltip(boolean showTooltip)
public long getAllocatedMemory()
public long getUsedMemory()
public long getMaxMemory()
public javax.swing.ImageIcon getMemoryIcon()
public void setMemoryIcon(javax.swing.ImageIcon memoryIcon)
public int getTooltipDelay()
public void setTooltipDelay(int tooltipDelay)
public boolean isShowMaximumMemory()
public void setShowMaximumMemory(boolean showMaximumMemory)
public java.awt.Shape provideShape()
ShapeProvider
provideShape
in interface ShapeProvider
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void addMemoryBarListener(MemoryBarListener listener)
public void removeMemoryBarListener(MemoryBarListener listener)
public void fireGcCalled()
public void fireGcCompleted()
public int getPreferredWidth()
getPreferredWidth
in interface SizeMethods<WebLabel>
getPreferredWidth
in class WebLabel
public WebMemoryBar setPreferredWidth(int preferredWidth)
setPreferredWidth
in interface SizeMethods<WebLabel>
setPreferredWidth
in class WebLabel
preferredWidth
- new component preferred width
public int getPreferredHeight()
getPreferredHeight
in interface SizeMethods<WebLabel>
getPreferredHeight
in class WebLabel
public WebMemoryBar setPreferredHeight(int preferredHeight)
setPreferredHeight
in interface SizeMethods<WebLabel>
setPreferredHeight
in class WebLabel
preferredHeight
- new component preferred height
public int getMinimumWidth()
getMinimumWidth
in interface SizeMethods<WebLabel>
getMinimumWidth
in class WebLabel
public WebMemoryBar setMinimumWidth(int minimumWidth)
setMinimumWidth
in interface SizeMethods<WebLabel>
setMinimumWidth
in class WebLabel
minimumWidth
- new component minimum width
public int getMinimumHeight()
getMinimumHeight
in interface SizeMethods<WebLabel>
getMinimumHeight
in class WebLabel
public WebMemoryBar setMinimumHeight(int minimumHeight)
setMinimumHeight
in interface SizeMethods<WebLabel>
setMinimumHeight
in class WebLabel
minimumHeight
- new component minimum height
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface SizeMethods<WebLabel>
getPreferredSize
in class WebLabel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |