Class AutoPanAnimationPanel

    • Constructor Detail

      • AutoPanAnimationPanel

        public AutoPanAnimationPanel​(Bounds2d homeExtent,
                                     SimulatorInterface<?> simulator)
                              throws RemoteException,
                                     nl.tudelft.simulation.language.DsolException
        Constructor for the AutoPanAnimationPanel.
        Parameters:
        homeExtent - Bounds2d; home extent
        simulator - SimulatorInterface<?, ?, ?>; simulator
        Throws:
        RemoteException - on remote animation error
        nl.tudelft.simulation.language.DsolException - when simulator does not implement AnimatorInterface
    • Method Detail

      • getSelectedObject

        protected Object getSelectedObject​(Point2D mousePoint)
        returns the list of selected objects at a certain mousePoint.
        Parameters:
        mousePoint - Point2D; the mousePoint
        Returns:
        the selected objects
      • setAutoPan

        public void setAutoPan​(String newAutoPanId,
                               SearchPanel.ObjectKind<?> newAutoPanKind,
                               boolean newAutoPanTrack)
        Change auto pan target.
        Parameters:
        newAutoPanId - String; id of object to track (or
        newAutoPanKind - String; kind of object to track
        newAutoPanTrack - boolean; if true; tracking is continuously; if false; tracking is once