Package org.opensourcephysics.display
Interface AppFrame
- All Known Implementing Classes:
AnimationControl
,ArrayFrame
,CalculationControl
,Complex2DFrame
,ComplexPlotFrame
,ControlFrame
,DataTableFrame
,DataTool
,Display3DFrame
,DisplayFrame
,DrawingFrame
,DrawingFrame3D
,FFT2DFrame
,FFTFrame
,FFTRealFrame
,GridTableFrame
,HistogramFrame
,ImageFrame
,LatticeFrame
,OSPControl
,OSPFrame
,ParticleFrame
,PlotFrame
,RasterFrame
,Scalar2DFrame
,SimulationControl
,TableFrame
,TFrame
,Vector2DFrame
,VideoFrame
public interface AppFrame
Tags stand alone programs so that the main frame does not exit the VM when the frame is close.
Used by Launcher and LaunchBuilder.
- Version:
- 1.0
- Author:
- Wolfgang Christian
-
Method Summary
Modifier and TypeMethodDescriptionint
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
Returns true if this frame wishes to exit.
-
Method Details
-
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
void setDefaultCloseOperation(int operation) Sets the operation that occurs when the user initiates a "close" on this frame.- See Also:
-