simtools.ui
Class PlotInformationDialog

java.lang.Object
  extended by simtools.ui.PlotInformationDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, ShapeListener
Direct Known Subclasses:
TimePlotStatisticsDialog

public class PlotInformationDialog
extends java.lang.Object
implements java.awt.event.ActionListener, ShapeListener

A dialog box dedicated to gather information concerning plot curves. This information is computed on current X-axis interval.

Author:
zxpletran007

Nested Class Summary
 class PlotInformationDialog.HeaderPanel
          A Panel dedicated to display shape description or warnings/errors messages
 
Field Summary
protected  javax.swing.JButton bok
           
protected  CurveStatisticsPanel[] curveStatisticsPanel
           
protected  javax.swing.JDialog dialog
           
protected static int FIELD_SIZE
           
protected  PlotInformationDialog.HeaderPanel headerPanel
           
protected  PlotShape plotShape
           
static MenuResourceBundle resources
           
protected static java.awt.Insets STANDARD_INSETS
           
protected  javax.swing.JTextField tfpxmax
           
protected  javax.swing.JTextField tfpxmin
           
protected  javax.swing.JTextField tfsxmax
           
protected  javax.swing.JTextField tfsxmin
           
 
Constructor Summary
PlotInformationDialog(PlotShape ps)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  javax.swing.JPanel createButtonPanel()
           
protected  javax.swing.JPanel createCurveStatisticsPanel()
           
 javax.swing.JDialog createDialog(java.awt.Frame parent)
           
protected  javax.swing.JPanel createGlobalStatisticPanel()
           
protected  void dispose()
          When closing dialog box, unsubscribe to all notifications from vurves, plots...
 PlotInformationDialog.HeaderPanel getHeaderPanel()
           
 double getXmax()
           
 double getXmin()
           
 void shapeChanged(AbstractShape shape, java.awt.Rectangle changedArea)
           
 java.lang.String toString()
           
protected  void upateGlobalStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bok

protected javax.swing.JButton bok

dialog

protected javax.swing.JDialog dialog

plotShape

protected PlotShape plotShape

tfpxmin

protected javax.swing.JTextField tfpxmin

tfpxmax

protected javax.swing.JTextField tfpxmax

tfsxmin

protected javax.swing.JTextField tfsxmin

tfsxmax

protected javax.swing.JTextField tfsxmax

headerPanel

protected PlotInformationDialog.HeaderPanel headerPanel

curveStatisticsPanel

protected CurveStatisticsPanel[] curveStatisticsPanel

STANDARD_INSETS

protected static final java.awt.Insets STANDARD_INSETS

FIELD_SIZE

protected static final int FIELD_SIZE
See Also:
Constant Field Values

resources

public static MenuResourceBundle resources
Constructor Detail

PlotInformationDialog

public PlotInformationDialog(PlotShape ps)
Method Detail

createButtonPanel

protected javax.swing.JPanel createButtonPanel()

createGlobalStatisticPanel

protected javax.swing.JPanel createGlobalStatisticPanel()
Returns:
JPanel containing global statistics related to plot

createCurveStatisticsPanel

protected javax.swing.JPanel createCurveStatisticsPanel()
Returns:
JPanel containing statistics related to all curves

createDialog

public javax.swing.JDialog createDialog(java.awt.Frame parent)

shapeChanged

public void shapeChanged(AbstractShape shape,
                         java.awt.Rectangle changedArea)
Specified by:
shapeChanged in interface ShapeListener

upateGlobalStatistics

protected void upateGlobalStatistics()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

dispose

protected void dispose()
When closing dialog box, unsubscribe to all notifications from vurves, plots...


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getXmax

public double getXmax()

getXmin

public double getXmin()

getHeaderPanel

public PlotInformationDialog.HeaderPanel getHeaderPanel()