public class HexDumpModel extends Object
Constructor and Description |
---|
HexDumpModel() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a property change listener for a named property.
|
TableModel |
getAsciiTableModel()
Retrieve the table used by the ASCII model.
|
int |
getColumns()
Retrieve the number of columns in the view tables.
|
int |
getCurrentSelectionIndex()
Retrieve the index of the currently selected byte in the hex or ASCII table.
|
String |
getCurrentSelectionValueLabel()
Retrieve the description of the current hex and ASCII table selection.
|
byte[] |
getData()
Retrieve the contents of the file represented as a byte array.
|
String |
getDateValueLabel()
Retrieve the value from the currently selected byte as a date.
|
String |
getDoubleValueLabel()
Retrieve the value from the currently selected byte as a double.
|
String |
getDurationValueLabel()
Retrieve the value from the currently selected byte as a duration.
|
String |
getGuidValueLabel()
Retrieve the value from the currently selected byte as a GUID.
|
TableModel |
getHexTableModel()
Retrieve the model used by the hex table.
|
String |
getLongSixValueLabel()
Retrieve the value from the currently selected byte as a six byte long.
|
String |
getLongValueLabel()
Retrieve the value from the currently selected byte as a long int.
|
int |
getOffset()
Retrieve the offset into the file at which the display starts.
|
String |
getPercentageValueLabel()
Retrieve the value from the currently selected byte as a percentage.
|
int |
getPreviousSelectionIndex()
Retrieve the index of the previously selected byte in the hex or ASCII table.
|
String |
getPreviousSelectionValueLabel()
Retrieve a description of the previously selected index in the hex or ASCII table.
|
Point |
getSelectedCell()
Retrieve the current table selection as a row and column point.
|
String |
getSelectionDifferenceValueLabel()
Retrieve the difference in bytes between the previous and the current selection.
|
String |
getShortValueLabel()
Retrieve the value from the currently selected byte as a short int.
|
String |
getSizeValueLabel()
Retrieve the file size.
|
String |
getTimestampValueLabel()
Retrieve the value from the currently selected byte as a timestamp.
|
String |
getTimeUnitsValueLabel()
Retrieve the value from the currently selected byte as a time unit.
|
String |
getTimeValueLabel()
Retrieve the value from the currently selected byte as a time.
|
String |
getWorkUnitsValueLabel()
Retrieve the value from the currently selected byte as work time units.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener.
|
void |
setAsciiTableModel(TableModel tableModel)
Set the model used by the ASCII table.
|
void |
setColumns(int columns)
Set the number of columns in the view tables.
|
void |
setCurrentSelectionIndex(int currentSelectionIndex)
Set the index of the currently selected byte in the hex or ASCII table.
|
void |
setCurrentSelectionValueLabel(String currentSelectionValueLabel)
Set the description of the current hex and ASCII table selection.
|
void |
setData(byte[] data)
Set the contents of the file represented as a byte array.
|
void |
setDateValueLabel(String dateValueLabel)
Set the value from the currently selected byte as a date.
|
void |
setDoubleValueLabel(String doubleValueLabel)
Set the value from the currently selected byte as a double.
|
void |
setDurationValueLabel(String durationValueLabel)
Set the value from the currently selected byte as a duration.
|
void |
setGuidValueLabel(String guidValueLabel)
Set the value from the currently selected byte as a GUID.
|
void |
setHexTableModel(TableModel tableModel)
Set the model used by the hex table.
|
void |
setLongSixValueLabel(String longSixValueLabel)
Set the value from the currently selected byte as a six byte long.
|
void |
setLongValueLabel(String longValueLabel)
Set the value from the currently selected byte as a long int.
|
void |
setOffset(int offset)
Set the offset into the file at which the display starts.
|
void |
setPercentageValueLabel(String percentageValueLabel)
Set the value from the currently selected byte as a percentage.
|
void |
setPreviousSelectionIndex(int previousSelectionIndex)
Set the index of the previously selected byte in the hex or ASCII table.
|
void |
setPreviousSelectionValueLabel(String previousSelectionValueLabel)
Set a description of the previously selected index in the hex or ASCII table.
|
void |
setSelectedCell(Point selectedCell)
Set the current table selection as a row and column point.
|
void |
setSelectionDifferenceValueLabel(String selectionDifferenceValueLabel)
Set the difference in bytes between the previous and the current selection.
|
void |
setShortValueLabel(String shortValueLabel)
Set the value from the currently selected byte as a short int.
|
void |
setSizeValueLabel(String size)
Set the file size.
|
void |
setTimestampValueLabel(String timestampValueLabel)
Set the value from the currently selected byte as a timestamp.
|
void |
setTimeUnitsValueLabel(String timeUnitsValueLabel)
Set the value from the currently selected byte as a time unit.
|
void |
setTimeValueLabel(String timeValueLabel)
Set the value from the currently selected byte as a time.
|
void |
setWorkUnitsValueLabel(String workUnitsValueLabel)
set the value from the currently selected byte as work time units.
|
public void setSizeValueLabel(String size)
size
- file sizepublic String getSizeValueLabel()
public int getColumns()
public void setColumns(int columns)
columns
- number of columnspublic int getOffset()
public void setOffset(int offset)
offset
- offsetpublic void setData(byte[] data)
data
- file contentspublic byte[] getData()
public void setHexTableModel(TableModel tableModel)
tableModel
- table modelpublic TableModel getHexTableModel()
public void setAsciiTableModel(TableModel tableModel)
tableModel
- table modelpublic TableModel getAsciiTableModel()
public int getCurrentSelectionIndex()
public void setCurrentSelectionIndex(int currentSelectionIndex)
currentSelectionIndex
- currently selected byte indexpublic int getPreviousSelectionIndex()
public void setPreviousSelectionIndex(int previousSelectionIndex)
previousSelectionIndex
- previously selected byte indexpublic String getPreviousSelectionValueLabel()
public void setPreviousSelectionValueLabel(String previousSelectionValueLabel)
previousSelectionValueLabel
- previously selected index descriptionpublic String getCurrentSelectionValueLabel()
public void setCurrentSelectionValueLabel(String currentSelectionValueLabel)
currentSelectionValueLabel
- current selection descriptionpublic String getSelectionDifferenceValueLabel()
public void setSelectionDifferenceValueLabel(String selectionDifferenceValueLabel)
selectionDifferenceValueLabel
- difference in bytespublic Point getSelectedCell()
public void setSelectedCell(Point selectedCell)
selectedCell
- current table selectionpublic String getShortValueLabel()
public void setShortValueLabel(String shortValueLabel)
shortValueLabel
- short valuepublic String getLongSixValueLabel()
public void setLongSixValueLabel(String longSixValueLabel)
longSixValueLabel
- long6 valuepublic String getLongValueLabel()
public void setLongValueLabel(String longValueLabel)
longValueLabel
- long int valuepublic String getDoubleValueLabel()
public void setDoubleValueLabel(String doubleValueLabel)
doubleValueLabel
- double valuepublic String getDurationValueLabel()
public void setDurationValueLabel(String durationValueLabel)
durationValueLabel
- duration valuepublic String getTimeUnitsValueLabel()
public void setTimeUnitsValueLabel(String timeUnitsValueLabel)
timeUnitsValueLabel
- time unit valuepublic String getGuidValueLabel()
public void setGuidValueLabel(String guidValueLabel)
guidValueLabel
- GUID valuepublic String getPercentageValueLabel()
public void setPercentageValueLabel(String percentageValueLabel)
percentageValueLabel
- percentage valuepublic String getDateValueLabel()
public void setDateValueLabel(String dateValueLabel)
dateValueLabel
- date valuepublic String getTimeValueLabel()
public void setTimeValueLabel(String timeValueLabel)
timeValueLabel
- time valuepublic String getTimestampValueLabel()
public void setTimestampValueLabel(String timestampValueLabel)
timestampValueLabel
- timestamp valuepublic String getWorkUnitsValueLabel()
public void setWorkUnitsValueLabel(String workUnitsValueLabel)
workUnitsValueLabel
- work time unitspublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
- property change listenerpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- property namelistener
- listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- property change listenerCopyright © 2000–2024 Packwood Software. All rights reserved.