public class JFrameContextView extends java.lang.Object implements ContextView
ContextView.NULL
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JFrame |
frame |
protected int |
height |
protected javax.swing.JLabel |
label |
protected int |
width |
protected int |
x |
protected int |
y |
Constructor and Description |
---|
JFrameContextView()
Creates view frame of default size - (380 x 85)
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected java.lang.String |
formatText(java.lang.String story,
java.lang.String scenario,
java.lang.String step) |
protected void |
initialize() |
protected java.lang.String |
labelTemplate() |
JFrameContextView |
located(int x,
int y)
Builder-style way to set the preferred location for the frame
|
protected long |
pauseInMillis() |
void |
show(java.lang.String story,
java.lang.String scenario,
java.lang.String step) |
JFrameContextView |
sized(int width,
int height)
Builder-style way to set the preferred size for the frame
|
protected javax.swing.JFrame frame
protected javax.swing.JLabel label
protected int width
protected int height
protected int x
protected int y
public JFrameContextView()
public JFrameContextView sized(int width, int height)
width
- the widthheight
- heightpublic JFrameContextView located(int x, int y)
x
- the x position on screeny
- the y position on screenpublic void show(java.lang.String story, java.lang.String scenario, java.lang.String step)
show
in interface ContextView
protected java.lang.String formatText(java.lang.String story, java.lang.String scenario, java.lang.String step)
protected java.lang.String labelTemplate()
protected long pauseInMillis()
public void close()
close
in interface ContextView
protected void initialize()
Copyright © 2003-2014. All Rights Reserved.