|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.jeppers.grid.AbstractRulerModel
|
+--net.sf.jeppers.grid.DefaultRulerModel
Default implementation of RulerModel.
Uses javax.swing.SizeSequence as underlying data structure.
| Field Summary |
| Fields inherited from class net.sf.jeppers.grid.AbstractRulerModel |
listenerList |
| Constructor Summary | |
DefaultRulerModel(int numEntries,
int defaultSize,
int orientation)
|
|
| Method Summary | |
int |
getCount()
Returns the number of entries. |
int |
getIndex(int position)
Returns the index of the entry that contains the specified position. |
int |
getPosition(int index)
Returns the start position for the specified entry. |
int |
getSize(int index)
Returns the size of the specified entry. |
int |
getTotalSize()
Returns the total size of the entries. |
void |
insertColumns(int column,
int columnCount)
Insert columnCount columns at column. |
void |
insertRows(int row,
int rowCount)
Insert rowCount rows at row. |
void |
removeColumns(int column,
int columnCount)
Remove columnCount columns at column. |
void |
removeRows(int row,
int rowCount)
Remove rowCount rows at row. |
void |
setSize(int index,
int size)
Sets the size of the specified entry. |
| Methods inherited from class net.sf.jeppers.grid.AbstractRulerModel |
addRulerModelListener, fireIndexChanged, fireIntervalChanged, fireRulerChanged, getListeners, removeRulerModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultRulerModel(int numEntries,
int defaultSize,
int orientation)
| Method Detail |
public int getSize(int index)
RulerModel
getSize in interface RulerModelindex - the index corresponding to the entry
public int getIndex(int position)
RulerModel
getIndex in interface RulerModelposition - the position of the entry
public int getPosition(int index)
RulerModel
getPosition in interface RulerModelindex - the index of the entry whose position is desired
public int getCount()
RulerModel
getCount in interface RulerModel
public void setSize(int index,
int size)
RulerModel
setSize in interface RulerModelindex - the index corresponding to the entrysize - the size of the entrypublic int getTotalSize()
RulerModel
getTotalSize in interface RulerModel
public void insertRows(int row,
int rowCount)
ResizableGridrowCount rows at row.
insertRows in interface ResizableGridrow - the row to insert atrowCount - the number of rows to insert
public void removeRows(int row,
int rowCount)
ResizableGridrowCount rows at row.
removeRows in interface ResizableGridrow - the row to remove fromrowCount - the number of rows to remove
public void insertColumns(int column,
int columnCount)
ResizableGridcolumnCount columns at column.
insertColumns in interface ResizableGridcolumn - the column to insert atcolumnCount - the number of columns to insert
public void removeColumns(int column,
int columnCount)
ResizableGridcolumnCount columns at column.
removeColumns in interface ResizableGridcolumn - the column to remove fromcolumnCount - the number of columns to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||