Module java.desktop

Class StyleContext.NamedStyle

  • All Implemented Interfaces:
    Serializable, AttributeSet, MutableAttributeSet, Style
    Enclosing class:
    StyleContext

    public class StyleContext.NamedStyle
    extends Object
    implements Style, Serializable
    A collection of attributes, typically used to represent character and paragraph styles. This is an implementation of MutableAttributeSet that can be observed if desired. These styles will take advantage of immutability while the sets are small enough, and may be substantially more efficient than something like SimpleAttributeSet.

    Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

    See Also:
    Serialized Form