Class ModelBuilder

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ModelBuilder extends FunctionTool
A FunctionTool for building particle models.
See Also:
  • Field Details

    • refreshingLayout

      protected boolean refreshingLayout
  • Constructor Details

    • ModelBuilder

      protected ModelBuilder(TrackerPanel trackerPanel)
      Constructor.
      Parameters:
      trackerPanel - the TrackerPanel with the models
  • Method Details

    • createGUI

      protected void createGUI()
      Description copied from class: FunctionTool
      Creates the GUI.
      Overrides:
      createGUI in class FunctionTool
    • createToolbarComponents

      protected void createToolbarComponents()
      Creates the toolbar components.
    • setTitles

      protected void setTitles()
      Overrides:
      setTitles in class FunctionTool
    • refreshGUI

      protected void refreshGUI()
      Refreshes the GUI.
      Overrides:
      refreshGUI in class FunctionTool
    • setVisible

      public void setVisible(boolean vis)
      Description copied from class: FunctionTool
      Overrides JDialog setVisible method.
      Overrides:
      setVisible in class FunctionTool
      Parameters:
      vis - true to show this tool
    • setFontLevel

      public void setFontLevel(int level)
      Description copied from class: FunctionTool
      Sets the font level.
      Overrides:
      setFontLevel in class FunctionTool
      Parameters:
      level - the level
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Description copied from class: FunctionTool
      Responds to property change events from TrackerPanel.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class FunctionTool
      Parameters:
      e - the property change event
    • getTrackerPanel

      public TrackerPanel getTrackerPanel()
      Gets the TrackerPanel.
      Returns:
      the TrackerPanel
    • refreshLayoutAsync

      protected void refreshLayoutAsync()
      Refreshes the layout to ensure the booster dropdown is fully displayed.
    • refreshSpinners

      protected void refreshSpinners()
      Refreshes the start and end frame spinners.
    • checkGUI

      public void checkGUI()
      Overrides:
      checkGUI in class FunctionTool
    • refreshBoosterDropdown

      protected void refreshBoosterDropdown()
      Refreshes the booster dropdown.
    • syncParameters

      protected void syncParameters(Parameter param)
      Sets the value of all Parameters that are synced and have the same name as a specified Parameter
      Parameters:
      param - the Parameter to sync to
    • setSpinnerStartFrame

      protected void setSpinnerStartFrame(Object frameNumber)
      Sets the startFrameSpinner value.
      Parameters:
      frameNumber - the frameNumber (int or Integer)
    • setSpinnerEndFrame

      protected void setSpinnerEndFrame(Object frameNumber)
      Sets the endFrameSpinner value.
      Parameters:
      frameNumber - the frameNumber (int or Integer)
    • getSpinnerHeight

      protected int getSpinnerHeight()
      Gets the spinner height.
      Returns:
      the spinner height
    • dispose

      public void dispose()
      Overrides:
      dispose in class FunctionTool
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • repaint

      public void repaint(long a, int b, int c, int d, int e)
      Overrides:
      repaint in class JDialog