|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.refractions.udig.ui.graphics.TableSettings
public class TableSettings
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.
TableUtils
Constructor Summary | |
---|---|
TableSettings(Table table)
Constructor for the TableSettings object |
Method Summary | |
---|---|
int |
getColumnCount()
Returns the number of columns in the table |
double |
getColumnMax(int columnIndex)
returns the maximum width of the column, as a percentage ratio (0-->1) |
int |
getColumnMin(int columnIndex)
returns the minimum pixel width of the column |
int |
getCurrentMode()
|
void |
setColumnMax(int columnIndex,
double widthPercent)
sets the maximum width of the column, as a percentage ratio (0-->1) |
void |
setColumnMin(int columnIndex,
int numPixels)
sets the minimum pixel width of the column |
void |
setCurrentMode(int currentMode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableSettings(Table table)
table
- Method Detail |
---|
public void setColumnMin(int columnIndex, int numPixels)
columnIndex
- integer representing the column index (first column = 0, second = 1, ...)numPixels
- public int getColumnMin(int columnIndex)
columnIndex
- integer representing the column index (first column = 0, second = 1, ...)public void setColumnMax(int columnIndex, double widthPercent)
columnIndex
- integer representing the column index (first column = 0, second = 1, ...)widthPercent
- value between 0 and 1, where 1 is 100%public double getColumnMax(int columnIndex)
columnIndex
- integer representing the column index (first column = 0, second = 1, ...)public int getColumnCount()
public int getCurrentMode()
public void setCurrentMode(int currentMode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |