|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientGUI
Interface to the client GUI.
Method Summary | |
---|---|
BatButton |
createBatButton(java.lang.String title,
java.awt.event.ActionListener listener)
Create a BatButton with an ActionListener that should be called when the button is pressed. |
javax.swing.JTextPane |
createBatTextArea()
|
BatWindow |
createBatWindow(java.lang.String name,
int x,
int y,
int width,
int height)
Creates a new BatWindow. |
BatScrollPane |
createScrollPane(java.awt.Component view)
Create a default scrollpane with vertical and horizontal scrollbars AS NEEDED. |
BatScrollPane |
createScrollPane(java.awt.Component view,
int verticalPolicy,
int horizontalPolicy)
Create a scrollpane with policies. |
void |
doCommand(java.lang.String cmd)
Sends the command string to the command parser. |
void |
doCommand(java.lang.String cmd,
java.util.ArrayList<java.lang.String> vars)
Sends the command string to the command parser with an ArrayList of local variables. |
java.lang.String |
getBaseDirectory()
|
BatTooltipManager |
getBatTooltipManager()
|
SoundPlayer |
getSoundPlayer()
|
void |
printAttributedString(java.lang.String channel,
ParsedResult msg)
Same as calling printAttributedString(channel, msg, true); |
void |
printAttributedString(java.lang.String channel,
ParsedResult msg,
boolean useTriggers)
|
void |
printAttributedString(java.lang.String channel,
ParsedResult msg,
boolean useTriggers,
boolean catchAll)
|
void |
printAttributedStringToWindow(java.lang.String windowname,
ParsedResult msg)
|
void |
printAttributedStringToWindow(java.lang.String windowname,
ParsedResult msg,
boolean useTriggers)
|
void |
printText(java.lang.String channel,
java.lang.String msg)
Prints a text message into at "channel" in the client. |
void |
printText(java.lang.String channel,
java.lang.String msg,
boolean useTriggers)
|
void |
printText(java.lang.String channel,
java.lang.String msg,
boolean useTriggers,
boolean catchAll)
|
void |
printText(java.lang.String channel,
java.lang.String msg,
java.lang.String htmlColorCode)
Prints a text message into a channel in the client and wraps the text in a particular color defined by a html color code. |
void |
printTextToWindow(java.lang.String windowname,
java.lang.String msg)
Prints text into a particular window (tab) name in the client. |
void |
printTextToWindow(java.lang.String windowname,
java.lang.String msg,
boolean useTriggers)
|
void |
setActionButton(int type,
int button,
java.lang.String title,
java.lang.String action,
java.lang.String customImageURL)
|
void |
setWallpaper(java.lang.String imagePath)
Sets the wallpaper of the client. |
void |
setWallpaper(java.lang.String imagePath,
float brightness)
Sets the wallpaper of the client. |
Method Detail |
---|
javax.swing.JTextPane createBatTextArea()
java.lang.String getBaseDirectory()
BatWindow createBatWindow(java.lang.String name, int x, int y, int width, int height)
SoundPlayer getSoundPlayer()
BatTooltipManager getBatTooltipManager()
BatButton createBatButton(java.lang.String title, java.awt.event.ActionListener listener)
title
- listener
-
BatScrollPane createScrollPane(java.awt.Component view)
view
-
BatScrollPane createScrollPane(java.awt.Component view, int verticalPolicy, int horizontalPolicy)
view
- verticalPolicy
- horizontalPolicy
-
void doCommand(java.lang.String cmd)
cmd
- void doCommand(java.lang.String cmd, java.util.ArrayList<java.lang.String> vars)
cmd
- vars
- void printText(java.lang.String channel, java.lang.String msg)
channel
- msg
- void printText(java.lang.String channel, java.lang.String msg, java.lang.String htmlColorCode)
channel
- msg
- htmlColorCode
- void printText(java.lang.String channel, java.lang.String msg, boolean useTriggers)
void printText(java.lang.String channel, java.lang.String msg, boolean useTriggers, boolean catchAll)
void printAttributedString(java.lang.String channel, ParsedResult msg)
channel
- msg
- void printAttributedString(java.lang.String channel, ParsedResult msg, boolean useTriggers)
void printAttributedString(java.lang.String channel, ParsedResult msg, boolean useTriggers, boolean catchAll)
void printTextToWindow(java.lang.String windowname, java.lang.String msg)
windowname
- msg
- void printTextToWindow(java.lang.String windowname, java.lang.String msg, boolean useTriggers)
void printAttributedStringToWindow(java.lang.String windowname, ParsedResult msg)
void printAttributedStringToWindow(java.lang.String windowname, ParsedResult msg, boolean useTriggers)
void setWallpaper(java.lang.String imagePath)
imagePath
- void setWallpaper(java.lang.String imagePath, float brightness)
imagePath
- brightness
- A value for brightness. 0.9 = 10% darker. 1.3 = 30 % brighter.void setActionButton(int type, int button, java.lang.String title, java.lang.String action, java.lang.String customImageURL)
type
- Either 1 for ActionButton1 frame, or 2 for ActionButton2 frame.button
- An integer between 0-23 representing the button index.title
- action
- customImageURL
- Either a local file path, or an URL to a website image.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |