|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--irc.IRCConfiguration
Global IRC configuration.
| Field Summary | |
static int |
TILING_CENTER
|
static int |
TILING_STRETCH
|
static int |
TILING_TILE
|
| Constructor Summary | |
IRCConfiguration(TextProvider text,
IRCColorModel model,
URLHandler handler,
ImageLoader loader,
SoundHandler sound,
FileHandler file)
Create a new IRCConfiguration. |
|
| Method Summary | |
void |
addSmiley(java.lang.String match,
java.lang.String file)
Add a smiley in the smiley table. |
java.lang.String |
formatASL(java.lang.String info)
Format a string given asl info and current settings. |
java.lang.Object |
get(java.lang.String key)
Get the given property value. |
java.awt.Color |
getASLColor(java.lang.String info,
java.awt.Color male,
java.awt.Color femeale,
java.awt.Color undef)
Find the correct ASL color for the given info. |
boolean |
getASLMaster()
Return wether asl should be processed, because asl field is enabled or floating asl is enabled. |
AudioConfiguration |
getAudioConfiguration()
Get the audio configuration. |
boolean |
getB(java.lang.String key)
Get the given property value as a boolean value. |
java.awt.Image |
getBackgroundImage(java.lang.String type,
java.lang.String name)
Get the background image associated with the given source type and name. |
int |
getBackgroundTiling(java.lang.String type,
java.lang.String name)
Get the background image tiling associated with the given source type and name. |
java.awt.Color |
getColor(int i)
Get the i'th color of the color model. |
ColorContext |
getColorContext(java.lang.String type,
java.lang.String name)
Get the color context associated with the given source type and name. |
ColorContext |
getDefaultColorContext()
Get the default color context. |
boolean |
getDockingPolicy(java.lang.String type,
java.lang.String name)
Get the docking policy for the given source type and name. |
java.util.Enumeration |
getHighLightWords()
Get highlight words. |
int |
getI(java.lang.String key)
Get the given property value as an int value. |
ImageLoader |
getImageLoader()
Get the image loader. |
IRCColorModel |
getIRCColorModel()
Get IRC color model. |
java.util.Vector |
getNickMenuVector()
Get the nick menu configuration vector. |
java.lang.String |
getS(java.lang.String key)
Get the given property value as String value. |
SecurityProvider |
getSecurityProvider()
Get the security provider. |
SmileyTable |
getSmileyTable()
Get the smileys table. |
java.awt.Color[] |
getStyleColors(ColorContext context)
Get the colors associated with the given color context. |
java.lang.String |
getText(int code)
Get formatted text associated with the given text code, with no parameter. |
java.lang.String |
getText(int code,
java.lang.String p1)
Get formatted text associated with the given text code, with one parameter. |
java.lang.String |
getText(int code,
java.lang.String p1,
java.lang.String p2)
Get formatted text associated with the given text code, with two parameters. |
java.lang.String |
getText(int code,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
Get formatted text associated with the given text code, with three parameters. |
TextProvider |
getTextProvider()
Get text provider. |
URLHandler |
getURLHandler()
Get URLHandler. |
java.lang.String |
getVersion()
Get version number as a string. |
int |
getVersionHigh()
Get the high version number. |
int |
getVersionLow()
Get the low version number. |
int |
getVersionMed()
Get the middle version number. |
java.lang.String |
getVersionModifiers()
Get the version modifiers. |
boolean |
highLightNick()
Get nick highlight flag. |
void |
loadDefaultColors(java.awt.Color[] cols)
Load the given color array with the default source colors. |
boolean |
matchMouseConfiguration(java.lang.String eventName,
java.awt.event.MouseEvent event)
Check whether the given event name and the given mouse event match. |
boolean |
mayCommand(java.lang.String cmd)
Check wether the given command may be executed by the user. |
boolean |
mayJoin(java.lang.String channel)
Test wether the given channel may be joined. |
boolean |
mayLeave(java.lang.String channel)
Test wether the given channel may be left. |
void |
set(java.lang.String key,
boolean val)
Set the given property to the given boolean value. |
void |
set(java.lang.String key,
int val)
Set the given property to the given int value. |
void |
set(java.lang.String key,
java.lang.Object obj)
Set the given property to the given value. |
void |
setBackgroundImage(java.lang.String type,
java.lang.String name,
java.lang.String image)
Set the background image to be used for the given source type and name. |
void |
setBackgroundTiling(java.lang.String type,
java.lang.String name,
int tiling)
Set the background image tiling to be used for the given source type and name. |
void |
setCommandList(java.lang.String list)
Set the authorized command list. |
void |
setDockingPolicy(java.lang.String type,
java.lang.String name,
boolean action)
Set the docking policy associated with the given source type and name. |
void |
setHighLightConfig(int color,
boolean nick,
java.util.Vector words)
Set highlight configuration. |
void |
setJoinList(java.lang.String list)
Set the "may join" list. |
void |
setLeaveList(java.lang.String list)
Set the "may leave" list. |
void |
setMouseConfiguration(java.lang.String eventName,
int button,
int count)
Configure the given mouse event name. |
void |
setSourceColor(java.lang.String type,
java.lang.String name,
java.awt.Color[] c)
Set the source colors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TILING_CENTER
public static final int TILING_STRETCH
public static final int TILING_TILE
| Constructor Detail |
public IRCConfiguration(TextProvider text,
IRCColorModel model,
URLHandler handler,
ImageLoader loader,
SoundHandler sound,
FileHandler file)
text - text provider to use.model - color model to use.handler - URL handler to use.loader - image loader to use.sound - sound handler to use.file - file handler to use.| Method Detail |
public int getVersionHigh()
public int getVersionMed()
public int getVersionLow()
public java.lang.String getVersionModifiers()
public java.lang.String getVersion()
public SecurityProvider getSecurityProvider()
public void setMouseConfiguration(java.lang.String eventName,
int button,
int count)
eventName - event name.button - mouse button index.count - mouse click count.
public boolean matchMouseConfiguration(java.lang.String eventName,
java.awt.event.MouseEvent event)
eventName - mouse event name.event - mouse event.
public void set(java.lang.String key,
java.lang.Object obj)
key - property name.obj - property value.
public void set(java.lang.String key,
int val)
key - property name.val - property value.
public void set(java.lang.String key,
boolean val)
key - property name.val - property value.public java.lang.Object get(java.lang.String key)
key - property name.
java.lang.RuntimeException - if the property is unknown.public int getI(java.lang.String key)
key - property name.
java.lang.RuntimeException - if the property is unknown.public boolean getB(java.lang.String key)
key - property name.
java.lang.RuntimeException - if the property is unknown.public java.lang.String getS(java.lang.String key)
key - property name.
java.lang.RuntimeException - if the property is unknown.public java.util.Vector getNickMenuVector()
public void setDockingPolicy(java.lang.String type,
java.lang.String name,
boolean action)
type - source type.name - source name.action - true if source should be undocked, false otherwise.
public boolean getDockingPolicy(java.lang.String type,
java.lang.String name)
type - source type.name - source name.
public java.awt.Image getBackgroundImage(java.lang.String type,
java.lang.String name)
type - source type.name - source name.
public int getBackgroundTiling(java.lang.String type,
java.lang.String name)
type - source type.name - source name.
public void setBackgroundImage(java.lang.String type,
java.lang.String name,
java.lang.String image)
type - source type.name - source name.image - image name.
public void setBackgroundTiling(java.lang.String type,
java.lang.String name,
int tiling)
type - source type.name - source name.tiling - tiling mode to be used.public boolean mayLeave(java.lang.String channel)
channel - channel to be left.
public boolean mayJoin(java.lang.String channel)
channel - channel to be joined.
public void setJoinList(java.lang.String list)
list - join list.public void setLeaveList(java.lang.String list)
list - leave list.public void setCommandList(java.lang.String list)
list - authorized command list.public boolean mayCommand(java.lang.String cmd)
public java.lang.String formatASL(java.lang.String info)
info - user whois information.
public java.awt.Color getASLColor(java.lang.String info,
java.awt.Color male,
java.awt.Color femeale,
java.awt.Color undef)
info - user whois information.male - male color.femeale - femeale color.undef - undefined gender color.
public AudioConfiguration getAudioConfiguration()
public ColorContext getDefaultColorContext()
public ColorContext getColorContext(java.lang.String type,
java.lang.String name)
type - source name.name - source name.
public void loadDefaultColors(java.awt.Color[] cols)
cols - color array to be filled.
public void setSourceColor(java.lang.String type,
java.lang.String name,
java.awt.Color[] c)
type - source type.name - source name.c - color array.public java.awt.Color[] getStyleColors(ColorContext context)
context - the context to get colors from.
public void addSmiley(java.lang.String match,
java.lang.String file)
match - the matching text to replace.file - image file name.public ImageLoader getImageLoader()
public SmileyTable getSmileyTable()
public boolean getASLMaster()
public void setHighLightConfig(int color,
boolean nick,
java.util.Vector words)
color - hightlight color.nick - true if nick highlight enabled.words - hightlight words set.public boolean highLightNick()
public java.util.Enumeration getHighLightWords()
public URLHandler getURLHandler()
public TextProvider getTextProvider()
public IRCColorModel getIRCColorModel()
public java.lang.String getText(int code)
code - text code.
public java.lang.String getText(int code,
java.lang.String p1)
code - text code.p1 - first parameter.
public java.lang.String getText(int code,
java.lang.String p1,
java.lang.String p2)
code - text code.p1 - first parameter.p2 - second parameter.
public java.lang.String getText(int code,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
code - text code.p1 - first parameter.p2 - second parameter.p3 - third parameter.
public java.awt.Color getColor(int i)
i - index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||