Class StyleContext.SmallAttributeSet

java.lang.Object
javax.swing.text.StyleContext.SmallAttributeSet
All Implemented Interfaces:
AttributeSet
Enclosing class:
StyleContext

public class StyleContext.SmallAttributeSet extends Object implements AttributeSet
This class holds a small number of attributes in an array. The storage format is key, value, key, value, etc. The size of the set is the length of the array divided by two. By default, this is the class that will be used to store attributes when held in the compact shareable form.
  • Nested Class Summary

    Nested classes/interfaces declared in interface AttributeSet

    AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
    Modifier and Type
    Interface
    Description
    static interface 
    This interface is the type signature that is expected to be present on any attribute key that contributes to character level presentation.
    static interface 
    This interface is the type signature that is expected to be present on any attribute key that contributes to presentation of color.
    static interface 
    This interface is the type signature that is expected to be present on any attribute key that contributes to the determination of what font to use to render some text.
    static interface 
    This interface is the type signature that is expected to be present on any attribute key that contributes to the paragraph level presentation.
  • Field Summary

    Fields declared in interface AttributeSet

    NameAttribute, ResolveAttribute
    Modifier and Type
    Field
    Description
    static final Object
    Attribute name used to name the collection of attributes.
    static final Object
    Attribute name used to identify the resolving parent set of attributes, if one is defined.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmallAttributeSet(Object[] attributes)
    Constructs a SmallAttributeSet.
    Constructs a SmallAttributeSet.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clones a set of attributes.
    boolean
    Checks whether a given attribute name/value is defined.
    boolean
    Checks whether the attribute set contains all of the given attributes.
    Copies a set of attributes.
    boolean
    Compares this object to the specified object.
    Gets the value of an attribute.
    int
    Gets the number of attributes that are defined.
    Gets the names of all attributes.
    If not overridden, the resolving parent defaults to the parent element.
    int
    Returns a hashcode for this set of attributes.
    boolean
    Checks whether a given attribute is defined.
    boolean
    Checks whether two attribute sets are equal.
    Returns a string showing the key/value pairs.

    Methods declared in class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    May cause performance issues, deadlocks and hangs.
    final Class<? extends Object>
    Answers the unique instance of java.lang.Class which represents the class of the receiver.
    final void
    Causes one thread which is waiting on the receiver to be made ready to run.
    final void
    Causes all threads which are waiting on the receiver to be made ready to run.
    final void
    Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated by notify or notifyAll).
    final void
    wait(long time)
    Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated by notify or notifyAll) or the expiration of the timeout.
    final void
    wait(long time, int frac)
    Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated by notify or notifyAll) or the expiration of the timeout.