Package 

Class ReactionIcon


  • 
    public final class ReactionIcon
    
                        

    Contains Painters for normal and selected states of the reaction icon.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Painter painter
      private final Painter selectedPainter
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactionIcon(Painter painter, Painter selectedPainter)
    • Method Summary

      Modifier and Type Method Description
      final Painter getPainter()
      final Painter getSelectedPainter()
      final Painter getPainter(Boolean isSelected) Returns either one of the Painters depending on the reaction state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactionIcon

        ReactionIcon(Painter painter, Painter selectedPainter)
        Parameters:
        painter - The Painter used to render the reaction in its normal state.
        selectedPainter - The Painter used to render the reaction in its selected state.
    • Method Detail

      • getPainter

         final Painter getPainter(Boolean isSelected)

        Returns either one of the Painters depending on the reaction state.

        Parameters:
        isSelected - If the reaction is selected.