Class CopyCatIcon

    • Field Detail

      • echoBoxColor

        public ColorAttribute echoBoxColor
        Color of the echo boxes. This defaults to white.
      • echos

        public Parameter echos
        The number of echos of the bounding box to draw. This is an int that defaults to 2.
      • includeName

        public Parameter includeName
        If true, include the name of the copied actor in the icon if the name is included normally in its icon. NOTE: This will not include the name if the inside actor does not have an icon attribute, but only has an _iconDescription, so it's far from perfect. This is a boolean that defaults to false.
    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the object into the specified workspace. The new object is not added to the directory of that workspace (you must do this yourself if you want it there). The result is an object with no container.
        Overrides:
        clone in class XMLIcon
        Parameters:
        workspace - The workspace for the cloned object.
        Returns:
        The new Attribute.
        Throws:
        java.lang.CloneNotSupportedException - Not thrown in this base class
        See Also:
        NamedObj.exportMoML(Writer, int, String), NamedObj.setDeferringChangeRequests(boolean)
      • createBackgroundFigure

        public Figure createBackgroundFigure()
        Create a new background figure. This method looks for entities contained by the same container, and if there are any, copies the icon of the last such entity. If there are none, then it behaves like the base class.
        Overrides:
        createBackgroundFigure in class XMLIcon
        Returns:
        A new figure.