Interface Stylable

    • Method Detail

      • getCachedStyle

        StyleCache getCachedStyle​(ElemStyles styles)
        Returns the cached style.
        Parameters:
        styles - styles for which the data is retrieved
        Returns:
        the cached style
        Since:
        19528 (added param styles)
      • setCachedStyle

        void setCachedStyle​(ElemStyles styles,
                            StyleCache mappaintStyle)
        Sets the cached style.
        Parameters:
        styles - styles for which the data is stored
        mappaintStyle - the cached style
        Since:
        19528 (added param styles)
      • clearCachedStyle

        void clearCachedStyle()
        Clears the cached style. This should not be called from outside. Fixing the UI to add relevant get/set functions calling this implicitly is preferred, so we can have transparent cache handling in the future.
      • isCachedStyleUpToDate

        boolean isCachedStyleUpToDate​(ElemStyles styles)
        Check if the cached style for this primitive is up to date.
        Parameters:
        styles - styles for which the data is checked
        Returns:
        true if the cached style for this primitive is up to date
        Since:
        13420, 19528 (added param styles)
      • declareCachedStyleUpToDate

        void declareCachedStyleUpToDate​(ElemStyles styles)
        Declare that the cached style for this primitive is up to date.
        Parameters:
        styles - styles for which the data is handled
        Since:
        13420, 19528 (added param styles)