Class Scene3DTool

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

    public class Scene3DTool
    extends Tool
    Tool for editing RMScene3D in Swing.
    • Constructor Detail

      • Scene3DTool

        public Scene3DTool()
    • Method Detail

      • getUI

        public RJPanel getUI()
        Returns the Swing UI panel.
        Overrides:
        getUI in class Tool
      • resetUI

        public void resetUI()
        Updates Swing UI panel from currently selected scene3d.
        Overrides:
        resetUI in class Tool
      • reset

        public void reset​(RMScene3D aScene)
        Updates the Swing GUI from the given scene.
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Updates currently selected scene 3d from Swing UI panel controls.
        Overrides:
        respondUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj,
                              RMScene3D aScene)
        Updates the given scene 3d from Swing UI panel controls.
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the class that this tool is responsible for.
        Overrides:
        getShapeClass in class Tool
      • isInstance

        public boolean isInstance​(java.lang.Object anObj)
        Returns whether an object can be edited by this tool.
        Overrides:
        isInstance in class Tool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name of this tool for the inspector window.
        Overrides:
        getWindowTitle in class Tool
      • mousePressed

        public void mousePressed​(RMShape aShape,
                                 java.awt.event.MouseEvent anEvent)
        Event handler for editing.
        Overrides:
        mousePressed in class Tool
      • mouseDragged

        public void mouseDragged​(RMShape aShape,
                                 java.awt.event.MouseEvent anEvent)
        Event handler for editing.
        Overrides:
        mouseDragged in class Tool
      • mouseReleased

        public void mouseReleased​(RMShape aShape,
                                  java.awt.event.MouseEvent anEvent)
        Event handler for editing.
        Overrides:
        mouseReleased in class Tool