| java.lang.Object net.refractions.udig.ui.graphics.TableSettings
TableSettings | public class TableSettings (Code) | | This class contains the settings for a table, including the minimum widths of
columns and maximum width (ratio) of each column with respect to the entire table.
author: chorner since: 1.0.1 See Also: net.refractions.udig.ui.graphics.TableUtils |
TableSettings | public TableSettings(Table table)(Code) | | Constructor for the TableSettings object
Parameters: table - |
TableSettings | public TableSettings(Tree tree)(Code) | | |
TableSettings | public TableSettings(int columnCount)(Code) | | |
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns in the table
the number of columns in the table that was initially passed to the constructor |
getColumnMax | public double getColumnMax(int columnIndex)(Code) | | returns the maximum width of the column, as a percentage ratio (0-->1)
Parameters: columnIndex - integer representing the column index (first column = 0, second = 1, ...) |
getColumnMin | public int getColumnMin(int columnIndex)(Code) | | returns the minimum pixel width of the column
Parameters: columnIndex - integer representing the column index (first column = 0, second = 1, ...) |
getCurrentMode | public int getCurrentMode()(Code) | | |
setColumnMax | public void setColumnMax(int columnIndex, double widthPercent)(Code) | | sets the maximum width of the column, as a percentage ratio (0-->1)
Parameters: columnIndex - integer representing the column index (first column = 0, second = 1, ...) Parameters: widthPercent - value between 0 and 1, where 1 is 100% |
setColumnMin | public void setColumnMin(int columnIndex, int numPixels)(Code) | | sets the minimum pixel width of the column
Parameters: columnIndex - integer representing the column index (first column = 0, second = 1, ...) Parameters: numPixels - |
setCurrentMode | public void setCurrentMode(int currentMode)(Code) | | |
|
|