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.
    Finalization is deprecated and subject to removal in a future release.
    final Class<?>
    Returns the runtime class of this Object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    final void
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
    final void
    wait(long timeoutMillis)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
    final void
    wait(long timeoutMillis, int nanos)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.