public class JFrameContextView extends Object implements ContextView
ContextView.NULL| Modifier and Type | Field and Description |
|---|---|
protected JFrame |
frame |
protected int |
height |
protected 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 String |
formatText(String story,
String scenario,
String step) |
protected void |
initialize() |
protected String |
labelTemplate() |
JFrameContextView |
located(int x,
int y)
Builder-style way to set the preferred location for the frame
|
protected long |
pauseInMillis() |
void |
show(String story,
String scenario,
String step) |
JFrameContextView |
sized(int width,
int height)
Builder-style way to set the preferred size for the frame
|
protected JFrame frame
protected 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(String story, String scenario, String step)
show in interface ContextViewprotected String labelTemplate()
protected long pauseInMillis()
public void close()
close in interface ContextViewprotected void initialize()
Copyright © 2003–2016. All rights reserved.