Package xal.extension.widgets.olmplot
Class GraphFrame
java.lang.Object
xal.extension.widgets.olmplot.GraphFrame
Enclosing Swing frame. This class manages the main GUI frame for displaying
FunctionGraphsJPanel
objects.- Since:
- Nov 26, 2012
- Author:
- Christopher K. Allen
-
Constructor Summary
ConstructorsConstructorDescriptionGraphFrame
(String strTitle, FunctionGraphsJPanel pnlGraph) Creates a newPlotFrame
object to display the givenFunctionGraphsJPanel
in a frame with the given title. -
Method Summary
Modifier and TypeMethodDescriptionvoid
display()
Displays the graph with frame.void
setPreferredSize
(Dimension dimSize) Sets the preferred size of this component to a constant value.
-
Constructor Details
-
GraphFrame
Creates a newPlotFrame
object to display the givenFunctionGraphsJPanel
in a frame with the given title.- Parameters:
strTitle
- title of the frame for the plotpnlGraph
- graph object containing plots- Since:
- Nov 21, 2012
-
-
Method Details
-
display
public void display()Displays the graph with frame.- Since:
- Nov 21, 2012
-
setPreferredSize
Sets the preferred size of this component to a constant value. Subsequent calls to getPreferredSize will always return this value. Setting the preferred size to null restores the default behavior.- Parameters:
dimSize
- The new preferred size, ornull
- Since:
- Nov 27, 2012
-