java.lang.Object
java.awt.Component
java.awt.Canvas
ar.com.jkohen.awt.NickInfoPopup
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
- public class NickInfoPopup
- extends java.awt.Canvas
| Nested classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Canvas |
|
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
H_GAP
private final int H_GAP
- See Also:
- Constant Field Values
V_GAP
private final int V_GAP
- See Also:
- Constant Field Values
IMAGE_WIDTH
public static int IMAGE_WIDTH
IMAGE_HEIGHT
public static int IMAGE_HEIGHT
nick
private java.lang.String nick
show
private boolean show
image
private java.awt.Image image
img_gfx
private java.awt.Graphics img_gfx
bounds
private java.awt.Rectangle bounds
rendered
private boolean rendered
NickInfoPopup
public NickInfoPopup()
getNick
public java.lang.String getNick()
setNick
public void setNick(java.lang.String n)
getInfoString
private java.lang.String getInfoString(java.lang.String nick)
getInfoColor
private java.awt.Color getInfoColor(java.lang.String nick)
setVisible
public void setVisible(boolean b)
- Description copied from class:
java.awt.Component
- Makes this component visible or invisible. Note that it wtill might
not show the component, if a parent is invisible.
show
private void show(java.lang.String n)
render
private void render(java.awt.Graphics g)
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
java.awt.Canvas
- Repaints the canvas window. This method should be overridden by
a subclass to do something useful, as this method simply paints
the window with the background color.
setFont
public void setFont(java.awt.Font f)
- Description copied from class:
java.awt.Component
- Sets the font for this component to the specified font. This is a bound
property.
setLocation
public void setLocation(int x,
int y)
- Description copied from class:
java.awt.Component
- Moves this component to the specified location, relative to the parent's
coordinates. The coordinates are the new upper left corner of this
component.
setLocation
public void setLocation(java.awt.Point p)
- Description copied from class:
java.awt.Component
- Moves this component to the specified location, relative to the parent's
coordinates. The coordinates are the new upper left corner of this
component.
getLocation
public java.awt.Point getLocation()
- Description copied from class:
java.awt.Component
- Returns the location of this component's top left corner relative to
its parent component. This may be outdated, so for synchronous behavior,
you should use a component listner.
getSize
public java.awt.Dimension getSize()
- Description copied from class:
java.awt.Component
- Returns the size of this object.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
java.awt.Component
- Returns the component's preferred size.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
java.awt.Component
- Returns the component's minimum size.