public class STViz extends Object
| Modifier and Type | Field and Description |
|---|---|
List |
allEvents
|
InterpEvent |
currentEvent
|
InstanceScope |
currentScope
|
ErrorManager |
errMgr
|
List |
errors
|
Interpreter |
interp
|
String |
output
|
EvalTemplateEvent |
root
|
JTreeSTModel |
tmodel
|
List |
trace
|
STViewFrame |
viewFrame
|
protected static String |
WINDOWS_LINE_ENDINGS
|
| Constructor and Description |
|---|
STViz(ErrorManager
|
| Modifier and Type | Method and Description |
|---|---|
InterpEvent |
findEventAtOutputLocation(List
|
protected void |
highlight(JTextComponent
|
protected void |
highlight(JTextComponent
|
static void |
main(String
|
void |
open()
|
protected void |
setText(JEditorPane
|
static void |
test1()
|
static void |
test2()
|
static void |
test3()
|
static void |
test4()
|
protected int |
toComponentPosition(JTextComponent
|
protected int |
toEventPosition(JTextComponent
|
protected void |
updateAttributes(InstanceScope
|
protected void |
updateStack(InstanceScope
|
void |
waitForClose()
|
static void |
writeFile(String
|
protected static final StringWINDOWS_LINE_ENDINGS
public EvalTemplateEventroot
public InterpEventcurrentEvent
public InstanceScopecurrentScope
public List<InterpEvent > allEvents
public JTreeSTModeltmodel
public ErrorManagererrMgr
public Interpreterinterp
public Stringoutput
public STViewFrameviewFrame
public STViz(ErrorManagererrMgr, EvalTemplateEvent root, String output, Interpreter interp, List <String > trace, List <STMessage > errors)
public void open()
public void waitForClose()
throws InterruptedException
InterruptedException
protected void setText(JEditorPanecomponent, String text)
protected int toComponentPosition(JTextComponentcomponent, int position)
protected int toEventPosition(JTextComponentcomponent, int position)
protected final void highlight(JTextComponentcomp, int i, int j)
protected void highlight(JTextComponentcomp, int i, int j, boolean scroll)
protected void updateAttributes(InstanceScopescope, STViewFrame m)
protected void updateStack(InstanceScopescope, STViewFrame m)
public InterpEventfindEventAtOutputLocation(List <InterpEvent > events, int charIndex)
public static void main(String[] args) throws IOException
IOException
public static void test1()
throws IOException
IOException
public static void test2()
throws IOException
IOException
public static void test3()
throws IOException
IOException
public static void test4()
throws IOException
IOException