|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.rej.gui.hexeditor.DataRow
public class DataRow
Stores the data of the hex editor. Each object of this class
is a row in a JList and the custom renderer renders
the data contained in these objects. Each row shares the
DataProvider object.
| Constructor Summary | |
|---|---|
DataRow(DataProvider data,
int offset)
Initializes this object with the given data and an offset from which to start reading the data. |
|
| Method Summary | |
|---|---|
int |
getAbsolute(int index)
Returns the absolute position of the given index of this row. |
char |
getAsciiData(int index)
Returns the byte in the given index as a char value. |
java.lang.String |
getHexData(int index)
Returns a 2 digit hexadecimal value of the byte in the given index of this row. |
java.lang.String |
getOffsetString()
Returns a 6 digit hexadecimal number indicating the beginning offset of this row. |
boolean |
isDataAvailable(int index)
Checks availability of data in the given index. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataRow(DataProvider data,
int offset)
data - the data contained in this row.offset - the offset from which to read the data.| Method Detail |
|---|
public boolean isDataAvailable(int index)
index - an index between 0 and row-width inclusive.
false
indicates that the index is after the end of the data.public java.lang.String getOffsetString()
public java.lang.String getHexData(int index)
index - the index of the byte queried.
public char getAsciiData(int index)
index - the inded of the queried ascii character.
public int getAbsolute(int index)
index - an index into this row.
DataRow was initialized with the offset of 200 and the
the absolute offset of the index 7 is queried, 207 will be
returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||