|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
com.guigarage.jgrid.ui.GridUI
public abstract class GridUI
Look and feel interface for JGrid.
| Constructor Summary | |
|---|---|
GridUI()
|
|
| Method Summary | |
|---|---|
abstract int |
getCellAt(Point point)
Returns the index of the cell that point lies in or -1 if
point is not in a cell |
abstract Rectangle |
getCellBounds(int index)
Returns the Bounds of the cell with index |
abstract int[] |
getCellsIntersectedBy(Rectangle rect)
Returns the indexes of cells that intersect with rect, or an
empty array if none do |
abstract int |
getColumnCount()
Returns the current count of columns in the grid |
abstract int |
getColumnForIndex(int modelIndex)
Returns the index of the column where modelIndex is in |
abstract int |
getIndexAt(int row,
int column)
Returns the model-index of the cell at row /
column |
abstract int |
getRowCount()
Returns the current count of rows in the grid |
abstract int |
getRowForIndex(int modelIndex)
Returns the index of the row where modelIndex is in |
abstract void |
markCellBoundsAsDirty()
Marks the bounds of all rendered cells as dirty. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridUI()
| Method Detail |
|---|
public abstract int[] getCellsIntersectedBy(Rectangle rect)
rect, or an
empty array if none do
rect - the area of interest
rect, in ascending orderpublic abstract int getCellAt(Point point)
point lies in or -1 if
point is not in a cell
point - the location of interest
public abstract Rectangle getCellBounds(int index)
index
index - the model-index
public abstract int getColumnCount()
public abstract int getIndexAt(int row,
int column)
row /
column
row - the row of the cellcolumn - the column of the cell
public abstract int getRowCount()
public abstract int getRowForIndex(int modelIndex)
modelIndex is in
selectedIndex - the model-index
public abstract int getColumnForIndex(int modelIndex)
modelIndex is in
selectedIndex - the model-index
public abstract void markCellBoundsAsDirty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||