irc.gui.pixx
Class PixxPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--irc.gui.pixx.PixxPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
PixxHorizontalScrollBar, PixxMDIInterface, PixxMenuBar, PixxNickList, PixxTaskBar, PixxVerticalScrollBar, ScrollablePixxNickList

public class PixxPanel
extends java.awt.Panel

Root panel for all PixxComponents.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  IRCConfiguration _ircConfiguration
           
static int COLOR_BACK
           
static int COLOR_BLACK
           
static int COLOR_CLOSE
           
static int COLOR_DARK_GRAY
           
static int COLOR_EVENT
           
static int COLOR_FEMEALE
           
static int COLOR_FRONT
           
static int COLOR_GRAY
           
static int COLOR_LIGHT_GRAY
           
static int COLOR_MALE
           
static int COLOR_OP
           
static int COLOR_SELECTED
           
static int COLOR_SEMIOP
           
static int COLOR_UNDEF
           
static int COLOR_VOICE
           
static int COLOR_WHITE
           
 
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
PixxPanel(IRCConfiguration config)
          Create a new PixxPanel.
 
Method Summary
protected  void drawSeparator(java.awt.Graphics g, int x, int y, int w, int h)
          Draw a 3d box at given position.
 java.awt.Color getColor(int col)
          Return the i'th color from the color model.
 IRCColorModel getIRCColorModel()
          Get the current IRC color model.
 java.lang.String getText(int code)
          Get the formatted text from the formatted text code.
 void release()
          Release this object.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, 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

COLOR_BLACK

public static final int COLOR_BLACK
See Also:
Constant Field Values

COLOR_WHITE

public static final int COLOR_WHITE
See Also:
Constant Field Values

COLOR_DARK_GRAY

public static final int COLOR_DARK_GRAY
See Also:
Constant Field Values

COLOR_GRAY

public static final int COLOR_GRAY
See Also:
Constant Field Values

COLOR_LIGHT_GRAY

public static final int COLOR_LIGHT_GRAY
See Also:
Constant Field Values

COLOR_FRONT

public static final int COLOR_FRONT
See Also:
Constant Field Values

COLOR_BACK

public static final int COLOR_BACK
See Also:
Constant Field Values

COLOR_SELECTED

public static final int COLOR_SELECTED
See Also:
Constant Field Values

COLOR_EVENT

public static final int COLOR_EVENT
See Also:
Constant Field Values

COLOR_CLOSE

public static final int COLOR_CLOSE
See Also:
Constant Field Values

COLOR_VOICE

public static final int COLOR_VOICE
See Also:
Constant Field Values

COLOR_OP

public static final int COLOR_OP
See Also:
Constant Field Values

COLOR_SEMIOP

public static final int COLOR_SEMIOP
See Also:
Constant Field Values

COLOR_MALE

public static final int COLOR_MALE
See Also:
Constant Field Values

COLOR_FEMEALE

public static final int COLOR_FEMEALE
See Also:
Constant Field Values

COLOR_UNDEF

public static final int COLOR_UNDEF
See Also:
Constant Field Values

_ircConfiguration

protected IRCConfiguration _ircConfiguration
Constructor Detail

PixxPanel

public PixxPanel(IRCConfiguration config)
Create a new PixxPanel.

Parameters:
config - global irc configuration.
Method Detail

release

public void release()
Release this object. No further method call may be performed.


getText

public java.lang.String getText(int code)
Get the formatted text from the formatted text code.

Parameters:
code - text code.
Returns:
formatted string.

drawSeparator

protected void drawSeparator(java.awt.Graphics g,
                             int x,
                             int y,
                             int w,
                             int h)
Draw a 3d box at given position.

Parameters:
g - where to draw.
x - x position.
y - y position.
w - width.
h - height.

getColor

public java.awt.Color getColor(int col)
Return the i'th color from the color model.

Returns:
i'th color from color model.

getIRCColorModel

public IRCColorModel getIRCColorModel()
Get the current IRC color model.

Returns:
the irc color model.