public class HexEditorEvent
extends java.util.EventObject
| Constructor and Description |
|---|
HexEditorEvent(HexEditorComponent editor,
int offs,
int added,
int removed)
Creates a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAddedCount()
Returns the number of bytes added.
|
HexEditorComponent |
getHexEditor()
Returns the hex editor that fired this event.
|
int |
getOffset()
Returns the offset of the change.
|
int |
getRemovedCount()
Returns the number of bytes removed.
|
boolean |
isModification()
Returns whether this was a "modification" of bytes; that is, no bytes
were added or removed, bytes were only modified.
|
public HexEditorEvent(HexEditorComponent editor, int offs, int added, int removed)
editor - The source of this event.offs - The offset at which bytes were added or removed.added - The number of bytes added, or 0 for none.removed - The number of bytes removed, or 0 for none.public int getAddedCount()
getRemovedCount()public HexEditorComponent getHexEditor()
public int getOffset()
public int getRemovedCount()
getAddedCount()public boolean isModification()
getAddedCount() == getRemovedCount().