|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.compat.trace.TraceModel
public class TraceModel
A model that contains data for a TracePane.
Nested Class Summary | |
---|---|
static class |
TraceModel.Element
A single element of a trace |
static class |
TraceModel.Trace
The data contained along a single trace |
Constructor Summary | |
---|---|
TraceModel()
Create a new TraceModel with an unspecified initial capacity. |
|
TraceModel(int capacity)
Create a new TraceModel with the given initial capacity. |
Method Summary | |
---|---|
void |
addTrace(Object key,
TraceModel.Trace trace)
Add a new trace |
void |
clear()
Remove all data from the model |
TraceModel.Trace |
getTrace(int index)
Get the trace at the given index |
TraceModel.Trace |
getTrace(String key)
Get the trace at the given key |
int |
size()
Get the number of traces |
Iterator |
traceKeys()
Get an iterator over all trace keys |
Iterator |
traces()
Get an iterator over all traces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TraceModel()
public TraceModel(int capacity)
Method Detail |
---|
public void addTrace(Object key, TraceModel.Trace trace)
public void clear()
public TraceModel.Trace getTrace(String key)
public TraceModel.Trace getTrace(int index)
public int size()
public Iterator traceKeys()
public Iterator traces()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |