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

Quick Search    Search Deep

cgsuite.plugin
Class TableOutput  view TableOutput download TableOutput.java

java.lang.Object
  extended bycgsuite.plugin.TableOutput
All Implemented Interfaces:
Output

class TableOutput
extends java.lang.Object
implements Output


Field Summary
(package private)  Output[][] cells
           
(package private)  TableFormat format
           
(package private)  int maxCellWidth
           
(package private)  int numColumns
           
 
Constructor Summary
(package private) TableOutput(Table table, OutputContext outputContext)
           
 
Method Summary
private  char getCompressedChar(java.lang.Object o)
           
 java.lang.String toLatexSource()
          Converts this Output to a LaTeX source fragment.
 java.lang.String toPlainText()
          Converts this Output to a String that is readable as-is.
 java.awt.Image toScreenImage(int pixelWidth)
          Converts this Output to an image suitable for screen display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numColumns

int numColumns

maxCellWidth

int maxCellWidth

format

TableFormat format

cells

Output[][] cells
Constructor Detail

TableOutput

TableOutput(Table table,
            OutputContext outputContext)
Method Detail

getCompressedChar

private char getCompressedChar(java.lang.Object o)

toScreenImage

public java.awt.Image toScreenImage(int pixelWidth)
Description copied from interface: Output
Converts this Output to an image suitable for screen display. The Combinatorial Game Suite user interface calls this method to display worksheet output.

The pixelWidth parameter is the desired width of the image, in pixels. It is not an absolute requirement. The Output object will generate an image that fits within pixelWidth provided that this does not otherwise compromise the readability of the display.

Specified by:
toScreenImage in interface Output

toPlainText

public java.lang.String toPlainText()
Description copied from interface: Output
Converts this Output to a String that is readable as-is.

Specified by:
toPlainText in interface Output

toLatexSource

public java.lang.String toLatexSource()
Description copied from interface: Output
Converts this Output to a LaTeX source fragment. The resulting String can then be compiled using LaTeX.

Specified by:
toLatexSource in interface Output