Class StyleSet

java.lang.Object
games.stendhal.client.gui.textformat.StyleSet

public class StyleSet extends Object
FormatSet wrapper for Styles.
  • Constructor Details

    • StyleSet

      public StyleSet(StyleContext sc, Style style)
      Create a new StyleSet.
      Parameters:
      sc - style context
      style - wrapped style
  • Method Details

    • union

      public StyleSet union(StyleSet additional)
    • copy

      public StyleSet copy()
    • contents

      public Style contents()
    • setAttribute

      public void setAttribute(Object key, Object value)
      Set a text attribute. See StyleConstants for valid keys and values.
      Parameters:
      key - attribute key
      value - attribute value