public class HQSPanel
extends javax.swing.JPanel
,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
HQSPanel.HQSPanelUI
The UI of this panel.
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.image.BufferedImage |
bgrImage |
protected static java.awt.image.BufferedImage |
brgImage |
protected static java.awt.image.BufferedImage |
gbrImage |
protected static java.awt.image.BufferedImage |
grbImage |
static java.lang.String |
ICON_CONFIG
The configuration icon resource.
|
static java.lang.String |
ICON_ERROR
The error icon resource.
|
static java.lang.String |
ICON_FATAL
The fatal icon resource.
|
static java.lang.String |
ICON_INFO
The info icon resource.
|
static java.lang.String |
ICON_MESSAGE
The message icon resource.
|
static java.lang.String |
ICON_QUESTION
The question icon resource.
|
static java.lang.String |
ICON_WARNING
The warning icon resource.
|
protected static java.lang.String |
PACKAGE_PATH |
protected static java.awt.image.BufferedImage |
rbgImage |
protected static java.awt.image.BufferedImage |
rgbImage |
static int |
TYPE_BGR
The background image red/blue swap.
|
static int |
TYPE_BRG
The background image color right shift.
|
static int |
TYPE_CONFIG
The background image color right shift and the gear icon.
|
static int |
TYPE_ERROR
The background image red/green swap and the requestion mark icon.
|
static int |
TYPE_FATAL
The background image red/green swap and the bomb icon.
|
static int |
TYPE_GBR
The background image color left shift.
|
static int |
TYPE_GRB
The background image red/green swap.
|
static int |
TYPE_INFO
The background image color right shift and the 'i' icon.
|
static int |
TYPE_MESSAGE
The background image green/blue swap and the message icon.
|
static int |
TYPE_QUESTION
The Original background image question mark icon.
|
static int |
TYPE_RBG
The background image green/blue swap.
|
static int |
TYPE_RGB
The Original background image.
|
static int |
TYPE_WARNING
The background image red/blue swap and the warning icon.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
HQSPanel()
The default constructor.
|
HQSPanel(int type)
The constructor receiving the background image type.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Font |
getFont()
Get the current font.
|
java.awt.image.BufferedImage |
getImage() |
java.awt.image.BufferedImage |
getImage(int type) |
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
static void |
main(java.lang.String[] args) |
void |
setFont(java.awt.Font font)
Set the font.
|
void |
setIcon(javax.swing.ImageIcon icon)
Set the icon of the panel.
|
void |
setIcon(java.lang.String resource)
Set the resource string of the icon to be used.
|
void |
setLineDistance(int distance)
Set the line distance.
|
void |
setLineHeight(int height)
Set the line height.
|
void |
setText(java.lang.String text)
Set the label text.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, 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, imageUpdate, 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, transferFocusBackward, transferFocusUpCyclepublic static final int TYPE_RGB
public static final int TYPE_GBR
public static final int TYPE_BRG
public static final int TYPE_GRB
public static final int TYPE_RBG
public static final int TYPE_BGR
public static final int TYPE_QUESTION
public static final int TYPE_INFO
public static final int TYPE_ERROR
public static final int TYPE_FATAL
public static final int TYPE_MESSAGE
public static final int TYPE_WARNING
public static final int TYPE_CONFIG
protected static java.awt.image.BufferedImage rgbImage
protected static java.awt.image.BufferedImage gbrImage
protected static java.awt.image.BufferedImage brgImage
protected static java.awt.image.BufferedImage grbImage
protected static java.awt.image.BufferedImage rbgImage
protected static java.awt.image.BufferedImage bgrImage
protected static java.lang.String PACKAGE_PATH
public static final java.lang.String ICON_INFO
public static final java.lang.String ICON_ERROR
public static final java.lang.String ICON_FATAL
public static final java.lang.String ICON_MESSAGE
public static final java.lang.String ICON_WARNING
public static final java.lang.String ICON_CONFIG
public static final java.lang.String ICON_QUESTION
public HQSPanel()
public HQSPanel(int type)
type - the background image type (s.a.)public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic void setLineHeight(int height)
height - the height of th linespublic void setLineDistance(int distance)
distance - the distance of th linespublic void setText(java.lang.String text)
text - the label text.public void setFont(java.awt.Font font)
setFont in class javax.swing.JComponentfont - the font.public java.awt.Font getFont()
getFont in interface java.awt.MenuContainergetFont in class java.awt.Componentpublic java.awt.image.BufferedImage getImage()
public void setIcon(javax.swing.ImageIcon icon)
icon - the new icon.public void setIcon(java.lang.String resource)
resource - the resource of an icon.public java.awt.image.BufferedImage getImage(int type)
public static void main(java.lang.String[] args)