maslab.telemetry.botclient
Interface Plugin

All Superinterfaces:
JugMessageListener
All Known Implementing Classes:
ImagePlugin, ScopePlugin, TextPlugin, VectorPlugin

public interface Plugin
extends JugMessageListener

To write a plugin, implement this interface. Your constructor must be of the form: public MyPlugin(javax.swing.JInternalFrame frame) This give you a JInternalFrame to draw on. At present, your plugin must be in the default namespace, or within maslab.telemetry.botclient. You can also optionally implement maslab.util.StatusListener, in which case you will receive connection/disconnection events from the relevant JugClient.


Field Summary
static java.lang.String types
          A comma-separated list of types that this plugin can handle.
 
Method Summary
 boolean addChannel(java.lang.String name, java.lang.String type)
          Return true if you can properly handle this new channel (without dropping any existing channels).
 void messageReceived(java.lang.String channel, byte[] data)
          Handle data
 void removeChannel(java.lang.String name)
          Self explanatory
 

Field Detail

types

static final java.lang.String types
A comma-separated list of types that this plugin can handle.

See Also:
Constant Field Values
Method Detail

addChannel

boolean addChannel(java.lang.String name,
                   java.lang.String type)
Return true if you can properly handle this new channel (without dropping any existing channels). will always be one of the types you listed in "types" above.


removeChannel

void removeChannel(java.lang.String name)
Self explanatory


messageReceived

void messageReceived(java.lang.String channel,
                     byte[] data)
Handle data

Specified by:
messageReceived in interface JugMessageListener