📄 alganimframe.html
字号:
<dd><dl> <dt> <b>Parameters:</b> <dd> n - The line to be highlighted. </dl></dd></dl><a name="restoreDrawingPanel()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="restoreDrawingPanel"><b>restoreDrawingPanel</b></a><pre> public void restoreDrawingPanel()</pre><dl> <dd> Restore the drawing panel at the end of the animation or during initialization.<p></dl><a name="startAlg()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="startAlg"><b>startAlg</b></a><pre> public void startAlg()</pre><dl> <dd> Start the animation algorithm if the <b>run</b> or <b>step</b> button is pressed.<p></dl><a name="finishAlg()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="finishAlg"><b>finishAlg</b></a><pre> public void finishAlg()</pre><dl> <dd> This method is invoked at the end of the animation or when the <b>stop</b> button is pressed. It restores the buttons status on the control panel.<p></dl><a name="waitStep()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="waitStep"><b>waitStep</b></a><pre> public void waitStep()</pre><dl> <dd> This method is called when the <b>step</b> execution mode is used. It is normally added to the line where the execution will wait for the <b>step</b> button to be pressed.<p></dl><a name="waitSkip()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="waitSkip"><b>waitSkip</b></a><pre> public void waitSkip()</pre><dl> <dd> This method is called when the <b>skip</b> execution mode is used. It is normally added to the line where the execution will wait after the <b>skip</b> button to be pressed.<p></dl><a name="setSkip(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setSkip"><b>setSkip</b></a><pre> public void setSkip(boolean skip)</pre><dl> <dd> Sets the attribute which indicate if the <b>skip</b> execution mode is current.<p></dl><a name="setStep(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setStep"><b>setStep</b></a><pre> public void setStep(boolean step)</pre><dl> <dd> Sets the attribute which indicate if the <b>step</b> execution mode is current.<p></dl><a name="getAlg()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getAlg"><b>getAlg</b></a><pre> public <a href="AlgThread.html#_top_">AlgThread</a> getAlg()</pre><dl> <dd> Returns the reference to the AlgThread which contains the details and execution sequences of the algorithm.<p> <dd><dl> <dt> <b>See Also:</b> <dd> <a href="AlgThread.html#_top_">AlgThread</a> </dl></dd></dl><a name="setDelay(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDelay"><b>setDelay</b></a><pre> public void setDelay(int delay)</pre><dl> <dd> Set the delay for highlighting text.<p></dl><a name="getDelay()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDelay"><b>getDelay</b></a><pre> public int getDelay()</pre><dl> <dd> Get the delay for highlighting text.<p></dl><a name="getApplet()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getApplet"><b>getApplet</b></a><pre> public <a href="AlgAnimApp.html#_top_">AlgAnimApp</a> getApplet()</pre><dl> <dd> Get the applet which contains a button to start up this window.<p> <dd><dl> <dt> <b>Returns:</b> <dd> Returns the applet which contains the button to start up this window. </dl></dd></dl><a name="getDrawingPanel()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDrawingPanel"><b>getDrawingPanel</b></a><pre> public <a href="DrawingPanel.html#_top_">DrawingPanel</a> getDrawingPanel()</pre><dl> <dd> Returns an instance of the drawing panel which is cast to its super class <code>Panel</code>.<p></dl><a name="setDrawingPanel(DrawingPanel)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="setDrawingPanel"><b>setDrawingPanel</b></a><pre> public void setDrawingPanel(<a href="DrawingPanel.html#_top_">DrawingPanel</a> panel)</pre><dl> <dd> Sets the drawing panel which is cast to its super class <code>Panel</code>. This instance is used to set the GridBagConstraint of the layout manager.<p> <dd><dl> <dt> <b>See Also:</b> <dd> <a href="DrawingPanel.html#_top_">DrawingPanel</a> </dl></dd></dl><a name="getTextFrame()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getTextFrame"><b>getTextFrame</b></a><pre> public <a href="TextFrame.html#_top_">TextFrame</a> getTextFrame()</pre><dl> <dd> Returns an instance of the <code>TextFrame</code> used to set the layout constraints and highlight certain lines of the source code.<p> <dd><dl> <dt> <b>See Also:</b> <dd> <a href="TextFrame.html#_top_">TextFrame</a> </dl></dd></dl><a name="getComPanel()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getComPanel"><b>getComPanel</b></a><pre> public <a href="ComPanel.html#_top_">ComPanel</a> getComPanel()</pre><dl> <dd> Get the commentary panel that displays messages of any type.<p> <dd><dl> <dt> <b>Returns:</b> <dd> Commentary panel, in which each text field within can be set to display text string from this class. <dt> <b>See Also:</b> <dd> <a href="ComPanel.html#_top_">ComPanel</a> </dl></dd></dl><a name="getDataChoice()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDataChoice"><b>getDataChoice</b></a><pre> public int getDataChoice()</pre><dl> <dd> Get the index of selected choice from the 'Select' pull menu.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The choice of the data selected. </dl></dd></dl><a name="getSkipItem()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getSkipItem"><b>getSkipItem</b></a><pre> public Button getSkipItem()</pre><dl> <dd> Get the skip button from the control panel.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The skip button. </dl></dd></dl><a name="getRunItem()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getRunItem"><b>getRunItem</b></a><pre> public Button getRunItem()</pre><dl> <dd> Get the run button from the control panel.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The run button. </dl></dd></dl><a name="getStopItem()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getStopItem"><b>getStopItem</b></a><pre> public Button getStopItem()</pre><dl> <dd> Get the stop button from the control panel.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The stop button. </dl></dd></dl><a name="isNoAnim()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="isNoAnim"><b>isNoAnim</b></a><pre> public boolean isNoAnim()</pre><dl> <dd> Obtain the status of the preferred animation style.<p> <dd><dl> <dt> <b>Returns:</b> <dd> True is the animation is kept to a minimum for the animated algorithm; false otherwise. </dl></dd></dl><a name="getEnableAnim()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getEnableAnim"><b>getEnableAnim</b></a><pre> public CheckboxMenuItem getEnableAnim()</pre><dl> <dd> Get the menu item which specify if the animation is enabled.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The checkbox menu item to enable the Animation of the alg. </dl></dd></dl><a name="getDisableAnim()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getDisableAnim"><b>getDisableAnim</b></a><pre> public CheckboxMenuItem getDisableAnim()</pre><dl> <dd> Get the menu item which specify if the animation is disabled.<p> <dd><dl> <dt> <b>Returns:</b> <dd> The checkbox menu item to disable the Animation of the alg. </dl></dd></dl></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -