Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ar.com.jkohen.awt
Class NickInfoPopup  view NickInfoPopup download NickInfoPopup.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Canvas
          extended byar.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 Class Summary
 
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
 
Field Summary
private  java.awt.Rectangle bounds
           
private  int H_GAP
           
private  java.awt.Image image
           
static int IMAGE_HEIGHT
           
static int IMAGE_WIDTH
           
private  java.awt.Graphics img_gfx
           
private  java.lang.String nick
           
private  boolean rendered
           
private  boolean show
           
private  int V_GAP
           
 
Fields inherited from class java.awt.Canvas
 
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
NickInfoPopup()
           
 
Method Summary
private  java.awt.Color getInfoColor(java.lang.String nick)
           
private  java.lang.String getInfoString(java.lang.String nick)
           
 java.awt.Point getLocation()
          Returns the location of this component's top left corner relative to its parent component.
 java.awt.Dimension getMinimumSize()
          Returns the component's minimum size.
 java.lang.String getNick()
           
 java.awt.Dimension getPreferredSize()
          Returns the component's preferred size.
 java.awt.Dimension getSize()
          Returns the size of this object.
 void paint(java.awt.Graphics g)
          Repaints the canvas window.
private  void render(java.awt.Graphics g)
           
 void setFont(java.awt.Font f)
          Sets the font for this component to the specified font.
 void setLocation(int x, int y)
          Moves this component to the specified location, relative to the parent's coordinates.
 void setLocation(java.awt.Point p)
          Moves this component to the specified location, relative to the parent's coordinates.
 void setNick(java.lang.String n)
           
 void setVisible(boolean b)
          Makes this component visible or invisible.
private  void show(java.lang.String n)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

NickInfoPopup

public NickInfoPopup()
Method Detail

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.