Class Toolbox

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MenuElement
Direct Known Subclasses:
FaceToolbox, FogToolbox, RenderingToolbox

public abstract class Toolbox extends JPopupMenu
A generic toolbox panel that pops up when a user clicks on a button at the canvas toolbar (located under the 3D scene).
See Also:
  • Field Details

    • BUTTONS_BORDER

      public static final Border BUTTONS_BORDER
      Toolbox border
  • Constructor Details

    • Toolbox

      public Toolbox(Canvas canvas)
      Constructor.
      Parameters:
      canvas - Rendering canvas
  • Method Details

    • initToggleButton

      public static JToggleButton initToggleButton(String icon, String tooltip, boolean isSelected)
      Helper method that creates a toggle button for toolbox or toolbar.
      Parameters:
      icon - The name icon file
      tooltip - NbBundle tooltip identifier
      isSelected - Whether the button is selected by default
      Returns:
      The button.
    • initButton

      public static JButton initButton(String icon, String tooltip, boolean isSelected)
      Helper method that creates a toggle button for toolbox or toolbar.
      Parameters:
      icon - The name icon file
      tooltip - NbBundle tooltip identifier
      isSelected - Whether the button is selected by default
      Returns:
      The button.
    • addToPanel

      protected Component addToPanel(Component component)
    • getCanvas

      protected Canvas getCanvas()
    • getScene

      protected Scene getScene()