|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--irc.style.StyledList
A styled list is a panel designed for displaying lines of styled text, using special color and style codes, and smileys.
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 | |
static int |
LEFT
Left to right direction. |
static int |
RIGHT
Right to left direction. |
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 | |
StyledList(IRCConfiguration config,
java.awt.Font fnt,
boolean wrap,
ColorContext context)
Create a new StyledList. |
|
StyledList(IRCConfiguration config,
java.awt.Font fnt,
boolean wrap,
ColorContext context,
java.awt.Color male,
java.awt.Color femeale,
java.awt.Color undef)
Create a new StyledList. |
|
StyledList(IRCConfiguration config,
java.awt.Font fnt,
ColorContext context)
Create a new StyledList with automatic text wraping. |
Method Summary | |
void |
addLine(java.lang.String line)
Add a line at the end of this list. |
void |
addLines(java.lang.String[] lines)
|
void |
addStyledListListener(StyledListListener lis)
Add a listener. |
void |
clear()
Clear all the lines in this list. |
void |
dispose()
Dispose any off-screen ressources used by the list. |
int |
getHorizontalDirection()
Get the horizontal display direction. |
int |
getLast()
Get the last displayed line. |
int |
getLeft()
Get the left offset. |
int |
getLineCount()
Get the number of line in this list. |
int |
getLogicalWidth()
Get the logical width of this list. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(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 |
removeStyledListListener(StyledListListener lis)
Remove a listener. |
void |
setBackgroundImage(java.awt.Image img)
Set the background image for display. |
void |
setBackgroundTiling(int t)
Set the background image tiling. |
void |
setFirst(int first)
Set the first line to be displayed. |
void |
setFont(java.awt.Font fnt)
Set the font to be used for display. |
void |
setHorizontalDirection(int direction)
Set the horizontal display direction. |
void |
setLast(int last)
Set the last line to be displayed. |
void |
setLeft(int left)
Set the left offset for this list rendering. |
void |
setNickList(java.lang.String[] list)
Set the nick list for recognition. |
void |
setWrap(boolean wrap)
Set the wrap mode. |
void |
update(java.awt.Graphics g)
|
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, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, 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 |
public static final int LEFT
public static final int RIGHT
Constructor Detail |
public StyledList(IRCConfiguration config, java.awt.Font fnt, ColorContext context)
config
- global irc configuration.fnt
- font to be used.context
- color context.public StyledList(IRCConfiguration config, java.awt.Font fnt, boolean wrap, ColorContext context)
config
- global irc configuration.fnt
- font to be used.wrap
- true if wrapping must occur, false otherwise.context
- color context.public StyledList(IRCConfiguration config, java.awt.Font fnt, boolean wrap, ColorContext context, java.awt.Color male, java.awt.Color femeale, java.awt.Color undef)
config
- global irc configuration.fnt
- font to be used.wrap
- true if wrapping must occur, false otherwise.context
- color context.male
- male color for asl.femeale
- femeale color for asl.undef
- undefined gender color for asl.Method Detail |
public void release()
public void setHorizontalDirection(int direction)
direction
- horizontal display direction.public int getHorizontalDirection()
public void setBackgroundImage(java.awt.Image img)
img
- background image, or null if no background image is to be displayed.public void setBackgroundTiling(int t)
t
- background image tiling mode. See IRCConfiguration for tiling modes.public void setFont(java.awt.Font fnt)
setFont
in class java.awt.Container
fnt
- font to be used.public void setWrap(boolean wrap)
wrap
- mode, true if end-of-line wrapping must be performed, false otherwise.public void setNickList(java.lang.String[] list)
list
- the nick list.public void addStyledListListener(StyledListListener lis)
lis
- the new listener.public void removeStyledListListener(StyledListListener lis)
lis
- the listener to remove.public void setLeft(int left)
left
- the left offset, in pixel.public int getLeft()
public void setFirst(int first)
first
- the first line to be displayed.public void setLast(int last)
last
- last line to be displayed.public int getLogicalWidth()
public int getLast()
public int getLineCount()
public void addLine(java.lang.String line)
line
- new line to add.public void addLines(java.lang.String[] lines)
public void dispose()
public void clear()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
public void update(java.awt.Graphics g)
update
in class java.awt.Container
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
imageUpdate
in class java.awt.Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |