Interface OpacityStyle

  • All Superinterfaces:
    Style
    All Known Implementing Classes:
    CustomTile

    public interface OpacityStyle
    extends Style
    Interface implemented by items that support a opacity change.
    Since:
    3.0
    Author:
    Chris Jennings
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getOpacity()
      Returns the opacity value of the item.
      void setOpacity​(float opacity)
      Sets the opacity for the item to the specified value, which must be between 0 (completely transparent) and 1 (completely opaque).
    • Method Detail

      • setOpacity

        void setOpacity​(float opacity)
        Sets the opacity for the item to the specified value, which must be between 0 (completely transparent) and 1 (completely opaque). This affects the opacity of the item: if the item contains parts with an opacity other than 1, then their effective opacity will be adjusted proportionally.
        Parameters:
        opacity - the opacity value for the item
      • getOpacity

        float getOpacity()
        Returns the opacity value of the item.
        Returns:
        the opacity level, from 0 (completely transparent) to 1 (completely opaque)