@FunctionalInterface public static interface ZmtConsole.TimeBoxItem
Modifier and Type | Method and Description |
---|---|
static ZmtConsole.TimeBoxItem |
create(String name,
Function<SimState,String> createText)
Convenience factory method to create a
ZmtConsole.TimeBoxItem with the
specified Function for creating text. |
String |
createText(SimState state)
Creates the text displayed in the label next to the time box.
|
String |
toString()
The text that is displayed for the item in the time box.
|
String toString()
String createText(SimState state)
state
- the simulation statestatic ZmtConsole.TimeBoxItem create(String name, Function<SimState,String> createText)
ZmtConsole.TimeBoxItem
with the
specified Function
for creating text.name
- the name to be displayed in the time boxcreateText
- the Function
for creating the text displayed in
the label next to the time boxZmtConsole.TimeBoxItem
item