|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.UserDefinedEvent
User Defined Event base class.
| Constructor Summary | |
UserDefinedEvent()
Constructor. |
|
| Method Summary | |
java.lang.String |
getClassName()
Gets the event class name. |
boolean |
isEventClass(java.lang.Class eventClass)
Indicates if this event matches a given event class. |
boolean |
isUserDefined()
Indicates if this event is user defined or not. |
boolean |
onText(java.lang.String buffer,
java.lang.String text)
This method is called when new text has arrived from the game server. |
void |
printTrace(java.lang.Exception e)
Print an exception and the complete stack trace in the SWATH console window. |
void |
printTrace(java.lang.String text)
Print trace text in the SWATH console window. |
void |
setBufferText(java.lang.String text)
Sets the current text buffer content. |
void |
skipBufferText(int count)
Removes characters from the current text buffer. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserDefinedEvent()
| Method Detail |
public final boolean isEventClass(java.lang.Class eventClass)
EventIfc
isEventClass in interface EventIfceventClass - The event class.
true if this event is of the same class,
otherwise false.public final boolean isUserDefined()
EventIfc
isUserDefined in interface EventIfctrue if user defined, otherwise false.public final java.lang.String getClassName()
EventIfc
getClassName in interface EventIfcpublic final void skipBufferText(int count)
count - Number of characters to remove.setBufferText(java.lang.String),
onText(java.lang.String, java.lang.String)public final void setBufferText(java.lang.String text)
text - The new content.skipBufferText(int),
onText(java.lang.String, java.lang.String)
public final void printTrace(java.lang.String text)
throws java.lang.Exception
text - The text to print.
java.lang.Exception
public final void printTrace(java.lang.Exception e)
throws java.lang.Exception
e - The exception to print.
java.lang.Exception
public boolean onText(java.lang.String buffer,
java.lang.String text)
throws java.lang.Exception
skipBufferText and setBufferText methods.
buffer - The current text buffer.text - The new incoming text.
true to post this event or false to wait.
java.lang.ExceptionskipBufferText(int),
setBufferText(java.lang.String),
printTrace(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||