org.opensourcephysics.display
Interface AppFrame

All Known Implementing Classes:
AnimationControl, ArrayFrame, CalculationControl, Complex2DFrame, ComplexPlotFrame, ControlFrame, DataTableFrame, DataTool, Display3DFrame, DisplayFrame, DrawingFrame, DrawingFrame3D, FFT2DFrame, FFTFrame, FFTRealFrame, FourierTool, GridTableFrame, HistogramFrame, LatticeFrame, OSPControl, OSPFrame, ParticleFrame, PlotFrame, RasterFrame, Scalar2DFrame, SimulationControl, TableFrame, Vector2DFrame, VideoFrame

public interface AppFrame

Tags stand alone programs so that the main frame does not exit the VM whne the frame is close. Used by Launcher and LaunchBuilder.

Version:
1.0
Author:
Wolfgang Christian

Method Summary
 int getDefaultCloseOperation()
          Returns the operation that occurs when the user initiates a "close" on this frame.
 void setDefaultCloseOperation(int operation)
          Sets the operation that occurs when the user initiates a "close" on this frame.
 boolean wishesToExit()
          Returns true if this frame wishes to exit.
 

Method Detail

wishesToExit

boolean wishesToExit()
Returns true if this frame wishes to exit. Launcher uses this to identify control frames.

Returns:
true if this frame wishes to exit

getDefaultCloseOperation

int getDefaultCloseOperation()
Returns the operation that occurs when the user initiates a "close" on this frame.

Returns:
an integer indicating the window-close operation
See Also:
setDefaultCloseOperation(int)

setDefaultCloseOperation

void setDefaultCloseOperation(int operation)
Sets the operation that occurs when the user initiates a "close" on this frame.

See Also:
getDefaultCloseOperation()