Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cgsuite.plugin
Interface OutputHandler  view OutputHandler download OutputHandler.java


public interface OutputHandler

Converts objects to Output suitable for display in the Combinatorial Game Suite user interface.

To add support for graphical or LaTeX output for your plug-in, declare an instance of this interface using PluginContext.registerOutputHandler 55 . When the UI is ready to display an object whose type matches one of the classes declared by your plug-in, it calls the associated OutputHandler's getOutput 55 method.

Version:
0.1.1

Method Summary
 boolean canGetOutput(java.lang.Object obj, OutputContext context)
          Determines whether the specified object can be displayed using this output handler.
 Output getOutput(java.lang.Object obj, OutputContext context)
          Gets output corresponding to the specified object.
 

Method Detail

canGetOutput

public boolean canGetOutput(java.lang.Object obj,
                            OutputContext context)
Determines whether the specified object can be displayed using this output handler.


getOutput

public Output getOutput(java.lang.Object obj,
                        OutputContext context)
Gets output corresponding to the specified object.