Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing.text
Version documentée : Java SE 17

Classe « StyleContext »

Informations générales

Héritage

java.lang.Object
    javax.swing.text.StyleContext

Interfaces implémentées

java.io.Serializable
javax.swing.text.AbstractDocument$AttributeContext

Définition

public class StyleContext extends java.lang.Object
implements java.io.Serializable,
javax.swing.text.AbstractDocument$AttributeContext

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static String DEFAULT_STYLE

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
StyleContext()

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public ChangeListener[] changeListeners R/-
protected int compressionThreshold R/-
public static StyleContext defaultStyleContext R/-
public AttributeSet emptySet R/-
public Enumeration styleNames R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public synchronized AttributeSet addAttribute( AttributeSet old, Object name, Object value )
public synchronized AttributeSet addAttributes( AttributeSet old, AttributeSet attr )
public void addChangeListener( ChangeListener l )
public Style addStyle( String nm, Style parent )
protected MutableAttributeSet createLargeAttributeSet( AttributeSet a )
protected SmallAttributeSet createSmallAttributeSet( AttributeSet a )
public Color getBackground( AttributeSet attr )
public ChangeListener[] getChangeListeners()
protected int getCompressionThreshold()
public static StyleContext getDefaultStyleContext()
public AttributeSet getEmptySet()
public Font getFont( AttributeSet attr )
public Font getFont( String family, int style, int size )
public FontMetrics getFontMetrics( Font f )
public Color getForeground( AttributeSet attr )
public static Object getStaticAttribute( Object key )
public static Object getStaticAttributeKey( Object key )
public Style getStyle( String nm )
public Enumeration<?> getStyleNames()
public void readAttributes( ObjectInputStream in, MutableAttributeSet a )
public static void readAttributeSet( ObjectInputStream in, MutableAttributeSet a )
public void reclaim( AttributeSet a )
public static void registerStaticAttributeKey( Object key )
public synchronized AttributeSet removeAttribute( AttributeSet old, Object name )
public synchronized AttributeSet removeAttributes( AttributeSet old, AttributeSet attrs )
public synchronized AttributeSet removeAttributes( AttributeSet old, Enumeration<?> names )
public void removeChangeListener( ChangeListener l )
public void removeStyle( String nm )
public String toString()
public void writeAttributes( ObjectOutputStream out, AttributeSet a )
public static void writeAttributeSet( ObjectOutputStream out, AttributeSet a )

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait