Class GRActor2D

    • Field Detail

      • _viewScreen

        protected ViewScreen2D _viewScreen
        The actor displaying the scene, if there is one.
    • Constructor Detail

      • GRActor2D

        public GRActor2D​(CompositeEntity container,
                         java.lang.String name)
                  throws IllegalActionException,
                         NameDuplicationException
        Create a new GRActor in the specified container with the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container.
        name - The name of this actor within the container.
        Throws:
        IllegalActionException - If this actor cannot be contained by the proposed container (see the setContainer() method).
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • _setViewScreen

        protected void _setViewScreen​(GRActor actor)
        Set the view screen that this actor is connected to.
        Specified by:
        _setViewScreen in class GRActor
        Parameters:
        actor - The actor.
        Throws:
        java.lang.RuntimeException - If the given actor is not a ViewScreen2D.