writer2latex.office
Class TableView

java.lang.Object
  extended by writer2latex.office.TableView

public class TableView
extends java.lang.Object

This class represents a view of a TableRange. A view provides read access to the range using a simple grid model.


Field Summary
private  CellView[][] cells
           
private  int nColCount
           
private  int[] nColMap
           
private  int nRowCount
           
private  int[] nRowMap
           
private  TableRange range
           
private  TableReader reader
           
 
Constructor Summary
TableView(TableReader reader, TableRange range)
           
 
Method Summary
 org.w3c.dom.Element getCell(int nRow, int nCol)
           
 java.lang.String getCellStyleName(int nRow, int nCol)
           
 java.lang.String getCellWidth(int nRow, int nCol)
           
 TableLine getCol(int nCol)
           
 int getColCount()
           
 int getColSpan(int nRow, int nCol)
           
 java.lang.String getColumnWidth(int nCol)
           
 java.lang.String getRelColumnWidth(int nCol)
           
 java.lang.String getRelTableWidth()
           
 TableLine getRow(int nRow)
           
 int getRowCount()
           
 int getRowSpan(int nRow, int nCol)
           
private  boolean isVisibleCol(int nCol)
           
private  boolean isVisibleRow(int nRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private TableReader reader

range

private TableRange range

nRowCount

private int nRowCount

nColCount

private int nColCount

nRowMap

private int[] nRowMap

nColMap

private int[] nColMap

cells

private CellView[][] cells
Constructor Detail

TableView

public TableView(TableReader reader,
                 TableRange range)
Method Detail

getRelTableWidth

public java.lang.String getRelTableWidth()

getRowCount

public int getRowCount()

getColCount

public int getColCount()

getColumnWidth

public java.lang.String getColumnWidth(int nCol)

getRelColumnWidth

public java.lang.String getRelColumnWidth(int nCol)

getRow

public TableLine getRow(int nRow)

getCol

public TableLine getCol(int nCol)

getCell

public org.w3c.dom.Element getCell(int nRow,
                                   int nCol)

getRowSpan

public int getRowSpan(int nRow,
                      int nCol)

getColSpan

public int getColSpan(int nRow,
                      int nCol)

getCellStyleName

public java.lang.String getCellStyleName(int nRow,
                                         int nCol)

getCellWidth

public java.lang.String getCellWidth(int nRow,
                                     int nCol)

isVisibleRow

private boolean isVisibleRow(int nRow)

isVisibleCol

private boolean isVisibleCol(int nCol)