org.lyra.Interface
Class StatisticsAndFunctionsDialog.Interact

java.lang.Object
  extended by org.lyra.Interface.StatisticsAndFunctionsDialog.Interact
Enclosing class:
StatisticsAndFunctionsDialog

private class StatisticsAndFunctionsDialog.Interact
extends java.lang.Object

Provides a separation of code and interface. This specific instance contains elements necessary to establish the state.

Author:
Martin Foster

Field Summary
private  java.lang.Integer nColumns
           
private  java.text.NumberFormat nFormat
           
 
Constructor Summary
StatisticsAndFunctionsDialog.Interact()
          Stub Constructor.
 
Method Summary
 int fetchColumns()
          In order to reserve space for the written elements, we establish the amount of columns the element will take.
private  java.lang.String formatElapsed(java.lang.String time)
          Format a string based on a large number that needs to be split into the individual components.
private  java.lang.String formatEpoch(java.lang.String epoch)
          Will take an Epoch date and transform it into a human readable format.
 void setState()
          Establishes the base information components used for the dialog itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nFormat

private java.text.NumberFormat nFormat

nColumns

private java.lang.Integer nColumns
Constructor Detail

StatisticsAndFunctionsDialog.Interact

public StatisticsAndFunctionsDialog.Interact()
Stub Constructor.

Method Detail

formatElapsed

private java.lang.String formatElapsed(java.lang.String time)
Format a string based on a large number that needs to be split into the individual components.

Parameters:
time - String containing elapsed time.
Returns:
String formatted with elapsed time.

formatEpoch

private java.lang.String formatEpoch(java.lang.String epoch)
Will take an Epoch date and transform it into a human readable format.

Parameters:
epoch - String containing the epoch time in seconds.
Returns:
String formatted for human readable dates.

fetchColumns

public int fetchColumns()
In order to reserve space for the written elements, we establish the amount of columns the element will take.

Returns:
Integer containing the amount of columns to expect.

setState

public void setState()
Establishes the base information components used for the dialog itself. Elements such as enabled/disabled commands and so forth.