|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.rej.gui.hexeditor.SelectionModel
public class SelectionModel
A class that maintains the state of the selected indices in the Hex Editor component. The state can be queried and set.
| Constructor Summary | |
|---|---|
SelectionModel()
Initializes this selection model. |
|
| Method Summary | |
|---|---|
void |
clearSelection()
Clears the selection. |
boolean |
getHexSelection()
Returns the hex-selection mode of this model. |
int |
getMaximumIndex()
Returns the first selected index or -1 if there is no selection. |
int |
getMinimumIndex()
Returns the first selected index or -1 if there is no selection. |
int |
getSize()
Returns the size of the data with which this selection model is associated. |
int |
getSubPosition()
Returns the sub-position value. |
boolean |
isSelected(int index)
Returns true if the given index is currently selected, false otherwise. |
void |
setHexSelection(boolean hexSelection)
Sets the hex-selection mode of this model. |
void |
setSelectedIndex(int index)
Sets the selected index to the given value. |
void |
setSelectedInverval(int begin,
int end)
Sets the selected indices to the given interval. |
void |
setSize(int size)
Sets the size of the data with which this selection model is associated. |
void |
setSubPosition(int subPosition)
Sets the sub-position value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionModel()
| Method Detail |
|---|
public void setSelectedIndex(int index)
index - new selected index.public boolean isSelected(int index)
index - the index to test for being selected.
public void setSelectedInverval(int begin,
int end)
begin - the index of the beginning of the new selection.end - the index of the end of the new selection.public void clearSelection()
public int getMinimumIndex()
public int getMaximumIndex()
public void setSize(int size)
size - the size of the data in bytes.public int getSize()
public int getSubPosition()
public void setSubPosition(int subPosition)
subPosition - new sub-position.public boolean getHexSelection()
public void setHexSelection(boolean hexSelection)
hexSelection - true if the editing should be done on the
hexadecimal values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||