irc.gui.pixx
Class PixxTaskBar

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--irc.gui.pixx.PixxPanel
                          |
                          +--irc.gui.pixx.PixxTaskBar
All Implemented Interfaces:
javax.accessibility.Accessible, AWTSourceListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class PixxTaskBar
extends PixxPanel
implements java.awt.event.MouseListener, AWTSourceListener

The task bar.

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
 
Fields inherited from class irc.gui.pixx.PixxPanel
_ircConfiguration, COLOR_BACK, COLOR_BLACK, COLOR_CLOSE, COLOR_DARK_GRAY, COLOR_EVENT, COLOR_FEMEALE, COLOR_FRONT, COLOR_GRAY, COLOR_LIGHT_GRAY, COLOR_MALE, COLOR_OP, COLOR_SELECTED, COLOR_SEMIOP, COLOR_UNDEF, COLOR_VOICE, 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
PixxTaskBar(IRCConfiguration config)
          Create a new PixxTaskBar.
 
Method Summary
 void activate(AWTSource source)
          Activate the given source.
 void activated(AWTSource source)
          The source has been activated.
 void addChanList(AWTChanList chanlist, boolean bring)
          Add a new chanlist in the taskbar.
 void addChannel(AWTChannel chan, boolean bring)
          Add a new channel in the taskbar.
 void addDCCChat(AWTDCCChat chat, boolean bring)
          Add a new dcc chat in the taskbar.
 void addDefaultSource(AWTDefaultSource source, boolean bring)
          Add a new default source in the taskbar.
 void addPixxTaskBarListener(PixxTaskBarListener lis)
          Add a listener.
 void addQuery(AWTQuery query, boolean bring)
          Add a new query in the taskbar.
 void addStatus(AWTStatus status, boolean bring)
          Add a new status in the taskbar.
 void eventOccured(AWTSource source)
          An event has occured.
 AWTSource getActive()
          Get the current active source.
 int getCount()
          Get icons count in this task bar.
 java.awt.Dimension getPreferredSize()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(java.awt.Graphics g)
           
 void release()
          Release this object.
 void removeChanList(AWTChanList chanlist)
          Remove the given chanlist from the taskbar.
 void removeChannel(AWTChannel chan)
          Remove the given channel from the taskbar.
 void removeDCCChat(AWTDCCChat chat)
          Remove the given dcc chat from the taskbar.
 void removeDefaultSource(AWTDefaultSource source)
          Remove the given default source from the taskbar.
 void removePixxTaskBarListener(PixxTaskBarListener lis)
          Remove a listener.
 void removeQuery(AWTQuery query)
          Remove the given query from the taskbar.
 void removeStatus(AWTStatus status)
          Remove the given status from the taskbar.
 void titleChanged(AWTSource source)
          This source title has changed.
 void update(java.awt.Graphics ug)
           
 
Methods inherited from class irc.gui.pixx.PixxPanel
drawSeparator, getColor, getIRCColorModel, getText
 
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, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, 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
 

Constructor Detail

PixxTaskBar

public PixxTaskBar(IRCConfiguration config)
Create a new PixxTaskBar.

Parameters:
config - global irc configuration.
Method Detail

release

public void release()
Description copied from class: PixxPanel
Release this object. No further method call may be performed.

Overrides:
release in class PixxPanel

addPixxTaskBarListener

public void addPixxTaskBarListener(PixxTaskBarListener lis)
Add a listener.

Parameters:
lis - listener to add.

removePixxTaskBarListener

public void removePixxTaskBarListener(PixxTaskBarListener lis)
Remove a listener.

Parameters:
lis - listener to remove.

getCount

public int getCount()
Get icons count in this task bar.

Returns:
icons count.

addChannel

public void addChannel(AWTChannel chan,
                       boolean bring)
Add a new channel in the taskbar.

Parameters:
chan - channel to add.
bring - true if this new channel must be made the active awt source.

removeChannel

public void removeChannel(AWTChannel chan)
Remove the given channel from the taskbar.

Parameters:
chan - channel to remove.

addStatus

public void addStatus(AWTStatus status,
                      boolean bring)
Add a new status in the taskbar.

Parameters:
status - status to add.

removeStatus

public void removeStatus(AWTStatus status)
Remove the given status from the taskbar.

Parameters:
status - status to remove.

addDefaultSource

public void addDefaultSource(AWTDefaultSource source,
                             boolean bring)
Add a new default source in the taskbar.

Parameters:
source - default source to add.

removeDefaultSource

public void removeDefaultSource(AWTDefaultSource source)
Remove the given default source from the taskbar.

Parameters:
source - default sourceto remove.

addQuery

public void addQuery(AWTQuery query,
                     boolean bring)
Add a new query in the taskbar.

Parameters:
query - query to add.

removeQuery

public void removeQuery(AWTQuery query)
Remove the given query from the taskbar.

Parameters:
query - query to remove.

addChanList

public void addChanList(AWTChanList chanlist,
                        boolean bring)
Add a new chanlist in the taskbar.

Parameters:
chanlist - chanlist to add.

removeChanList

public void removeChanList(AWTChanList chanlist)
Remove the given chanlist from the taskbar.

Parameters:
chanlist - chanlist to remove.

addDCCChat

public void addDCCChat(AWTDCCChat chat,
                       boolean bring)
Add a new dcc chat in the taskbar.

Parameters:
chat - dcc chat to add.

removeDCCChat

public void removeDCCChat(AWTDCCChat chat)
Remove the given dcc chat from the taskbar.

Parameters:
chat - dcc chat to remove.

activate

public void activate(AWTSource source)
Activate the given source.

Parameters:
source - the source to activate.

getActive

public AWTSource getActive()
Get the current active source.

Returns:
active source, or null if there is no active source.

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Container

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Container

update

public void update(java.awt.Graphics ug)
Overrides:
update in class java.awt.Container

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

titleChanged

public void titleChanged(AWTSource source)
Description copied from interface: AWTSourceListener
This source title has changed.

Specified by:
titleChanged in interface AWTSourceListener
Parameters:
source - the source whose title has changed.

eventOccured

public void eventOccured(AWTSource source)
Description copied from interface: AWTSourceListener
An event has occured.

Specified by:
eventOccured in interface AWTSourceListener
Parameters:
source - the source on whose event has occured.

activated

public void activated(AWTSource source)
Description copied from interface: AWTSourceListener
The source has been activated.

Specified by:
activated in interface AWTSourceListener
Parameters:
source - the activated source.