Class StyleSet.Set

    • Field Detail

      • foregroundColor

        private TextColor foregroundColor
      • backgroundColor

        private TextColor backgroundColor
      • style

        private final java.util.EnumSet<SGR> style
    • Constructor Detail

      • Set

        public Set()
      • Set

        public Set​(StyleSet<?> source)
    • Method Detail

      • enableModifiers

        public StyleSet.Set enableModifiers​(SGR... modifiers)
        Description copied from interface: StyleSet
        Adds zero or more modifiers to the set of currently active modifiers
        Specified by:
        enableModifiers in interface StyleSet<StyleSet.Set>
        Parameters:
        modifiers - Modifiers to add to the set of currently active modifiers
        Returns:
        Itself
      • disableModifiers

        public StyleSet.Set disableModifiers​(SGR... modifiers)
        Description copied from interface: StyleSet
        Removes zero or more modifiers from the set of currently active modifiers
        Specified by:
        disableModifiers in interface StyleSet<StyleSet.Set>
        Parameters:
        modifiers - Modifiers to remove from the set of currently active modifiers
        Returns:
        Itself
      • setModifiers

        public StyleSet.Set setModifiers​(java.util.EnumSet<SGR> modifiers)
        Description copied from interface: StyleSet
        Sets the active modifiers to exactly the set passed in to this method. Any previous state of which modifiers are enabled doesn't matter.
        Specified by:
        setModifiers in interface StyleSet<StyleSet.Set>
        Parameters:
        modifiers - Modifiers to set as active
        Returns:
        Itself
      • getActiveModifiers

        public java.util.EnumSet<SGR> getActiveModifiers()
        Description copied from interface: StyleSet
        Returns all the SGR codes that are currently active
        Specified by:
        getActiveModifiers in interface StyleSet<StyleSet.Set>
        Returns:
        Currently active SGR modifiers