Serialized Form


Package edu.princeton.cs.algs4.growingtree.framework

Class edu.princeton.cs.algs4.growingtree.framework.AnimationEvent extends java.awt.AWTEvent implements Serializable

Serialized Fields

status

java.lang.String status
The string that gives more details of the status of the AnimationEvent.

See Also:
AnimationEvent.getStatus()

animationDescription

java.lang.String animationDescription
The string that gives more details of the description of the AnimationEvent. This information is very specific to the Animation that fired it.

See Also:
AnimationEvent.getAnimationDescription()

progress

double progress
The double (generally between 0 and 1) indicating the current progress of the animation.

See Also:
AnimationEvent.getProgress()

Class edu.princeton.cs.algs4.growingtree.framework.BSTTreeJPanel extends TreeJPanel<P extends NodeProperties> implements Serializable

Serialized Fields

backgroundColor

java.lang.String backgroundColor
The String for the currently selected backgroundColor.


drawingNodeSettings

java.lang.String drawingNodeSettings
The protected String for the currently selected drawing Node Settings.


drawingKeySettings

java.lang.String drawingKeySettings
The protected String for the currently selected drawing Key Settings.


insertNodeLeftSettings

java.lang.String insertNodeLeftSettings
The protected String for the currently selected insertion Left Node Settings.


insertNodeRightSettings

java.lang.String insertNodeRightSettings
The protected String for the currently selected insertion Right Node Settings.


insertAnimatorNodeSettings

java.lang.String insertAnimatorNodeSettings
The protected String for the currently selected insertion Animator Node Settings.


insertAnimatorKeySettings

java.lang.String insertAnimatorKeySettings
The protected String for the currently selected insertion Animator Key Settings.


searchNodeLeftSettings

java.lang.String searchNodeLeftSettings
The protected String for the currently selected searching Left Node Settings.


searchNodeRightSettings

java.lang.String searchNodeRightSettings
The protected String for the currently selected searching Right Node Settings.


searchAnimatorNodeSettings

java.lang.String searchAnimatorNodeSettings
The protected String for the currently selected searching Animator Node Settings.


searchAnimatorKeySettings

java.lang.String searchAnimatorKeySettings
The protected String for the currently selected searching Animator Key Settings.


selectNodeLeftSettings

java.lang.String selectNodeLeftSettings
The protected String for the currently selected select Left Node Settings.


selectNodeRightSettings

java.lang.String selectNodeRightSettings
The protected String for the currently selected select Right Node Settings.


selectAnimatorNodeSettings

java.lang.String selectAnimatorNodeSettings
The protected String for the currently selected select Animator Node Settings.


selectAnimatorKeySettings

java.lang.String selectAnimatorKeySettings
The protected String for the currently selected select Animator Key Settings.


rotateChildNodeSettings

java.lang.String rotateChildNodeSettings
The protected String for the currently selected rotated Child Node Settings.


rotateRootNodeSettings

java.lang.String rotateRootNodeSettings
The protected String for the currently selected rotated Root Node Settings.


rotateDescendantNodeSettings

java.lang.String rotateDescendantNodeSettings
The protected String for the currently selected rotated Descendant Node Settings.


rotateOriginalNodeSettings

java.lang.String rotateOriginalNodeSettings
The protected String for the currently selected rotated Original Node Settings.


rotateAnimatorKeySettings

java.lang.String rotateAnimatorKeySettings
The protected String for the currently selected rotated Animator Key Settings.


rotateOriginalKeySettings

java.lang.String rotateOriginalKeySettings
The protected String for the currently selected rotated Original Key Settings.


deleteLeftLinePaintSettings

java.lang.String deleteLeftLinePaintSettings
The protected String for the currently selected left line paint.


deleteRightLinePaintSettings

java.lang.String deleteRightLinePaintSettings
The protected String for the currently selected right line paint.


traverseAnimatorNodeSettings

java.lang.String traverseAnimatorNodeSettings
The protected String for the currently selected traversal animator Node Settings.


traverseAnimatorKeySettings

java.lang.String traverseAnimatorKeySettings
The protected String for the currently selected traversal animator Key Settings.


animatingPanel

NodeAndLinkAnimatingJPanel<P extends NodeProperties> animatingPanel
The animatingPanel for this JPanel.


drawingPanel

NodeAndLinkDrawingJPanel drawingPanel
The drawingPanel for this JPanel.


colorSettings

java.lang.String colorSettings
The variable holding the colorSettings. Set initially to DEFAULT.


functionJComboBox

javax.swing.JComboBox functionJComboBox
JComboBox that holds all of the functions available for this panel.


colorSettingsJComboBox

javax.swing.JComboBox colorSettingsJComboBox
JComboBox that holds all of the settings available for this current function.


colorSchemesJComboBox

javax.swing.JComboBox colorSchemesJComboBox
JComboBox that holds all of the schemes available for this current settings.


colorPresetOptionsJComboBox

javax.swing.JComboBox colorPresetOptionsJComboBox
JComboBox that holds all of the schemes available for this current settings.


colorOptionsPanel

ColorOptionsJPanel colorOptionsPanel
The colorOptionsPanel held currently within this panel.


allowRotations

boolean allowRotations
Whether or not to allow rotations through the GUI

Class edu.princeton.cs.algs4.growingtree.framework.CenterJFrame extends javax.swing.JFrame implements Serializable

Serialized Fields

listeners

java.util.LinkedList<E> listeners
Listeners for the Panel. Thye listen to the optionEvents made.


treePane

TreeJDesktop treePane
Tree Panel which stores the data for the each tree.


optionPane

OptionMainJPanel optionPane
Option Pane, representing the options for the tree.


menuBar

javax.swing.JMenuBar menuBar
Menu Bar, representing the menu of the Application.


zoomCount

int zoomCount
Zoom count, how far the zoom has gone.


fileMenu

javax.swing.JMenu fileMenu
The menus used in this Frame.


viewMenu

javax.swing.JMenu viewMenu
The menus used in this Frame.


toolMenu

javax.swing.JMenu toolMenu
The menus used in this Frame.


helpMenu

javax.swing.JMenu helpMenu
The menus used in this Frame.


integerTypeRadioItem

javax.swing.JRadioButtonMenuItem integerTypeRadioItem
The radio menus used in this Frame.


characterTypeRadioItem

javax.swing.JRadioButtonMenuItem characterTypeRadioItem
The radio menus used in this Frame.


doubleTypeRadioItem

javax.swing.JRadioButtonMenuItem doubleTypeRadioItem
The radio menus used in this Frame.


subtreeCountCheckItem

javax.swing.JCheckBoxMenuItem subtreeCountCheckItem
The check box menus used in this Frame.


animationMenuCheckItem

javax.swing.JCheckBoxMenuItem animationMenuCheckItem
The check box menus used in this Frame.


toolBarPanelCheckItem

javax.swing.JCheckBoxMenuItem toolBarPanelCheckItem
The check box menus used in this Frame.


nodePanelMenuCheckItem

javax.swing.JCheckBoxMenuItem nodePanelMenuCheckItem
The check box menus used in this Frame.

Class edu.princeton.cs.algs4.growingtree.framework.ColorOptionsJPanel extends OptionJPanel implements Serializable

Serialized Fields

resetButton

javax.swing.JButton resetButton
JButton used for saving to the specific tree.


saveTreeButton

javax.swing.JButton saveTreeButton
JButton used for saving to the specific tree.


saveAllButton

javax.swing.JButton saveAllButton
JButton used for saving to all trees.


presetColorsJComboBox

javax.swing.JComboBox presetColorsJComboBox
JComboBox for the preset Colors options.


functionJComboBox

javax.swing.JComboBox functionJComboBox
JComboBox for the functions.


colorSettingsJComboBox

javax.swing.JComboBox colorSettingsJComboBox
JComboBox for the color settings.


colorSchemesJComboBox

javax.swing.JComboBox colorSchemesJComboBox
JComboBox for the color schemes.


customizablePanel

javax.swing.JPanel customizablePanel
Panel used to display the customizable options and the border.


customizablePanelTitleBorder

javax.swing.border.TitledBorder customizablePanelTitleBorder
Title around the customizablePanel.


presetsPanel

javax.swing.JPanel presetsPanel
Panel used to display the presets and the border.


presetsPanelTitleBorder

javax.swing.border.TitledBorder presetsPanelTitleBorder
Title around the presetsPanel.


drawingNodePanel

javax.swing.JPanel drawingNodePanel
Panel used to display the drawing node and the border.


drawingNodeTitleBorder

javax.swing.border.TitledBorder drawingNodeTitleBorder
Title around the drawingNodePanel.


nodeAndLinkDrawingPanel

NodeAndLinkDrawingJPanel nodeAndLinkDrawingPanel
NodeAndLinkDrawingJPanel used as the panel for the displaying the drawing node.


animatingNodePanel

javax.swing.JPanel animatingNodePanel
Panel used to display the animating node and the border.


animatingNodeTitleBorder

javax.swing.border.TitledBorder animatingNodeTitleBorder
Title around the animatingNodePanel.


nodeAndLinkAnimatingPanel

NodeAndLinkAnimatingJPanel<P extends NodeProperties> nodeAndLinkAnimatingPanel
NodeAndLinkAnimatingJPanel used as the panel for the displaying the animating node.


drawingNode

GrowingTreeNode<P extends NodeProperties> drawingNode
The drawingNode for the panel.


animatingNode

GrowingTreeNode<P extends NodeProperties> animatingNode
The animatingNode for the panel.


selectedPanel

TreeJPanel<P extends NodeProperties> selectedPanel
The currently selected panel.


c

java.awt.GridBagConstraints c
GridBagConstraints of the gridbaglayout.


gridbag

java.awt.GridBagLayout gridbag
GridBagLayout of the gridbaglayout.

Class edu.princeton.cs.algs4.growingtree.framework.DrawingJPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

drawTreeImage

java.awt.image.BufferedImage drawTreeImage
Image of the Panel for drawing the tree onto. (Used so redrawing is not necessary.


drawTreeGraphics

java.awt.Graphics2D drawTreeGraphics
Graphics associate with the image of the Panel. (Used so redrawing is not necessary.


drawTree

boolean drawTree
Boolean flag whether the tree needs to be redrawn.


drawingArea

java.awt.Rectangle drawingArea
Rectangle which represents the drawing area of the panel.


componentShown

boolean componentShown
Flag whether the tree is shown or not.

Class edu.princeton.cs.algs4.growingtree.framework.Ellipse2DNode extends java.awt.geom.Ellipse2D.Double implements Serializable

Class edu.princeton.cs.algs4.growingtree.framework.NodeAndLinkAnimatingJPanel extends DrawingJPanel implements Serializable

Serialized Fields

animatingNode

DrawingTree<P extends NodeProperties> animatingNode
Node kept for the animating current Panel.


movingTransforms

AffineTransformList movingTransforms
Refers to the list of AffineTransforms used to move the animating node.


currentLocation

double currentLocation
Refers to the currentLocation of the animation.


currentStep

double currentStep
Refers to the currentStep of the animation.


animationTimer

javax.swing.Timer animationTimer
Timer for the animation.


delayRate

int delayRate
The delay rate for the animation, set to DEFAULT_DELAY.


drawingLines

boolean drawingLines
Boolean flag whether the panel is drawingLines or not.


leftLinePaint

java.awt.Paint leftLinePaint
The Paint for the left line.


rightLinePaint

java.awt.Paint rightLinePaint
The Paint for the right line.

Class edu.princeton.cs.algs4.growingtree.framework.NodeAndLinkDrawingJPanel extends NodeDrawingJPanel implements Serializable

Class edu.princeton.cs.algs4.growingtree.framework.NodeDrawingJPanel extends DrawingJPanel implements Serializable

Serialized Fields

node

DrawingTree<P extends NodeProperties> node
TreeHead kept for the current Panel.

Class edu.princeton.cs.algs4.growingtree.framework.OptionControlsJPanel extends OptionJPanel implements Serializable

Serialized Fields

messageMode

int messageMode
Used to keep track of the messages to be recieved.


insertTextField

javax.swing.JTextField insertTextField
Textfield used for the key insertion.


deleteTextField

javax.swing.JTextField deleteTextField
Textfield used for the key deletion.


selectTextField

javax.swing.JTextField selectTextField
Textfield used for the key selection.


searchTextField

javax.swing.JTextField searchTextField
Textfield used for the key searching.


insertButton

javax.swing.JButton insertButton
JButton used for the key insertion.


deleteButton

javax.swing.JButton deleteButton
JButton used for the key deletion.


selectButton

javax.swing.JButton selectButton
JButton used for the key selection.


searchButton

javax.swing.JButton searchButton
JButton used for the key searching.


displayPanel

javax.swing.JPanel displayPanel
Panel used to display the node and the border giving the location of the node.


displayTitleBorder

javax.swing.border.TitledBorder displayTitleBorder
Title around the displayPanel. Changes with a change of node.


nodeDrawingPanel

NodeDrawingJPanel<P extends NodeProperties> nodeDrawingPanel
NodeDrawingJPanel used as the panel for the displaying node.


messagePanel

javax.swing.JPanel messagePanel
Panel used to display the messages .


messageScrollPane

javax.swing.JScrollPane messageScrollPane
Panel used to display the messages .


messageTextArea

javax.swing.JTextArea messageTextArea
Text Area that keeps the status information.


previousMessage

java.lang.String previousMessage
Keeps the previous message passed to the status field, so messages are not repeated.


speedSlider

javax.swing.JSlider speedSlider
Slider for the speed of the animation.


animationToolBar

javax.swing.JToolBar animationToolBar
Tool bar for the animation buttons.


textToolBar

javax.swing.JToolBar textToolBar
Tool bar for the animation buttons.


play

javax.swing.JButton play
Animation buttons for the tool bar.


stop

javax.swing.JButton stop
Animation buttons for the tool bar.


pause

javax.swing.JButton pause
Animation buttons for the tool bar.


rewind

javax.swing.JButton rewind
Animation buttons for the tool bar.


stepBack

javax.swing.JButton stepBack
Animation buttons for the tool bar.


stepForward

javax.swing.JButton stepForward
Animation buttons for the tool bar.


treeInformation

javax.swing.JButton treeInformation
Animation buttons for the tool bar.


programInformation

javax.swing.JButton programInformation
Animation buttons for the tool bar.


fastForward

javax.swing.JButton fastForward
Animation buttons for the tool bar.


fastRewind

javax.swing.JButton fastRewind
Animation buttons for the tool bar.


clear

javax.swing.JButton clear
Animation buttons for the tool bar.


treeStatus

javax.swing.JButton treeStatus
Animation buttons for the tool bar.


c

java.awt.GridBagConstraints c
GridBagConstraints of the gridbaglayout.


gridbag

java.awt.GridBagLayout gridbag
GridBagLayout of the gridbaglayout.


displayPanelShow

boolean displayPanelShow
True if the displayPanel should be shown.


messagePanelShow

boolean messagePanelShow
True if the message Panel should be shown.


animationPanelShow

boolean animationPanelShow
True if the animation Panel should be shown.

Class edu.princeton.cs.algs4.growingtree.framework.OptionEvent extends java.awt.AWTEvent implements Serializable

Serialized Fields

actionCommand

java.lang.String actionCommand
The nonlocalized string that gives more details of what actually caused the event. This information is very specific to the component that fired it.

See Also:
OptionEvent.getActionCommand()

value

java.lang.Object value
The nonlocalized Object passed for usage by whatever Object is listening to the current OptionEvent.

See Also:
OptionEvent.getObjectValue()

Class edu.princeton.cs.algs4.growingtree.framework.OptionJPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

listeners

java.util.LinkedList<E> listeners
Listeners for the Panel. Thye listen to the optionEvents made.

Class edu.princeton.cs.algs4.growingtree.framework.OptionMainJPanel extends OptionJPanel implements Serializable

Serialized Fields

treeListeners

java.util.LinkedList<E> treeListeners
List of the listeners to the tree messages.


popup

javax.swing.JPopupMenu popup
PopupMenu to hold the menu for the options.


currentNode

DrawingTree<P extends NodeProperties> currentNode
The currently selected drawingTree.


currentPanel

TreeJPanel<P extends NodeProperties> currentPanel
The currently selected TreeJPanel.


optionControls

OptionControlsJPanel optionControls
OptionControlsJPanel used in this main panel.


popupPanel

TreeJPanel<P extends NodeProperties> popupPanel
TreeJPanel that is the last call to a popup.

Class edu.princeton.cs.algs4.growingtree.framework.SplashPanel extends javax.swing.JPanel implements Serializable

Class edu.princeton.cs.algs4.growingtree.framework.TreeJDesktop extends javax.swing.JDesktopPane implements Serializable

Serialized Fields

optionListeners

java.util.LinkedList<E> optionListeners
Listeners for the tree messages passed.


treeListeners

java.util.LinkedList<E> treeListeners
Listeners for the tree messages passed.


bstPanels

java.util.LinkedList<E> bstPanels

panelNames

java.util.LinkedList<E> panelNames

framesToPanels

java.util.HashMap<K,V> framesToPanels

windows

boolean windows
Flag as to weather the desktop is in windows or tabbed panes.


tabbedPane

javax.swing.JTabbedPane tabbedPane
Tabbed pane for the desktop, if windows are not used.


message

java.lang.Object[] message
The message for the dialog box. Starts off null, and must be created.


duplicateButton

javax.swing.JRadioButton duplicateButton
The radio button for duplication in the make random tree dialog box.


dialog

edu.princeton.cs.algs4.growingtree.framework.ColorPreferencesDialog dialog

constructedMessage

boolean constructedMessage
True when the message for the dialog box to create a tree has been made.


colorOptions

ColorOptionsJPanel colorOptions

Class edu.princeton.cs.algs4.growingtree.framework.TreeJPanel extends DrawingJPanel implements Serializable

Serialized Fields

tree

AnimatingTreeHead<P extends NodeProperties> tree
TreeHead kept for the current Panel.


animationTimer

javax.swing.Timer animationTimer
Timer for the animation.


delayRate

int delayRate
The delay rate for the animation, set to DEFAULT_DELAY.


keyType

java.lang.String keyType
Represents the current type of inserting value.


animating

boolean animating
Flag whether the tree is animating or not.


step

boolean step
Flag whether the tree is stepping or not.


treeListeners

java.util.LinkedList<E> treeListeners
Listeners for the tree messages passed.

Class edu.princeton.cs.algs4.growingtree.framework.TreeMessageEvent extends java.awt.AWTEvent implements Serializable

Serialized Fields

message

java.lang.String message
The string that gives the message of the TreeMessageEvent.


messageObject

java.lang.Object messageObject
An Object which goes along with the message for any purpose or need.