Class TransformationAttributeIcon

    • Method Detail

      • createBackgroundFigure

        public Figure createBackgroundFigure()
        Description copied from class: EditorIcon
        Create a new background figure. This figure is a composition of the figures of any contained visible attributes. If there are no such visible attributes, then this figure is a simple white box. If you override this method, keep in mind that this method is expected to manufacture a new figure each time, since figures are inexpensive and contain their own location and transformations. This method should never return null.
        Overrides:
        createBackgroundFigure in class EditorIcon
        Returns:
        A new figure.
      • createFigure

        public Figure createFigure()
        Description copied from class: EditorIcon
        Create a new Diva figure that visually represents this icon. The figure will be an instance of CompositeFigure with the figure returned by createBackgroundFigure() as its background. This method adds a LabelFigure to the CompositeFigure that contains the name of the container of this icon, unless the container has a parameter called "_hideName" with value true. If the container has an attribute called "_centerName" with value true, then the name is rendered in the center of the background figure, rather than above it. This method should never return null, even if the icon has not been properly initialized.
        Overrides:
        createFigure in class EditorIcon
        Returns:
        A new CompositeFigure consisting of the background figure and a label.