Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Interface
javax.swing.text.Style

Packages that use Style
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.html Provides the class HTMLEditorKit and supporting classes for creating HTML text editors. 
 

Uses of Style in javax.swing
 

Methods in javax.swing that return Style
 Style JTextPane.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 Style JTextPane.getStyle(String nm)
          Fetches a named non-null style previously added.
 Style JTextPane.getLogicalStyle()
          Fetches the logical style assigned to the paragraph represented by the current position of the caret, or null.
 

Methods in javax.swing with parameters of type Style
 Style JTextPane.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 void JTextPane.setLogicalStyle(Style s)
          Sets the logical style to use for the paragraph at the current caret position.
 

Uses of Style in javax.swing.text
 

Classes in javax.swing.text that implement Style
 class StyleContext.NamedStyle
          A collection of attributes, typically used to represent character and paragraph styles.
 

Methods in javax.swing.text that return Style
 Style StyleContext.addStyle(String nm, Style parent)
          Adds a new style into the style hierarchy.
 Style StyleContext.getStyle(String nm)
          Fetches a named style previously added to the document
 Style StyledDocument.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 Style StyledDocument.getStyle(String nm)
          Fetches a named style previously added.
 Style StyledDocument.getLogicalStyle(int p)
          Gets a logical style for a given position in a paragraph.
 Style DefaultStyledDocument.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 Style DefaultStyledDocument.getStyle(String nm)
          Fetches a named style previously added.
 Style DefaultStyledDocument.getLogicalStyle(int p)
          Fetches the logical style assigned to the paragraph represented by the given position.
 

Methods in javax.swing.text with parameters of type Style
 Style StyleContext.addStyle(String nm, Style parent)
          Adds a new style into the style hierarchy.
 Style StyledDocument.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 void StyledDocument.setLogicalStyle(int pos, Style s)
          Sets the logical style to use for the paragraph at the given position.
 Style DefaultStyledDocument.addStyle(String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 void DefaultStyledDocument.setLogicalStyle(int pos, Style s)
          Sets the logical style to use for the paragraph at the given position.
protected  void DefaultStyledDocument.styleChanged(Style style)
          Creates a change event for the whole document and propagates it to the listeners.
 

Constructors in javax.swing.text with parameters of type Style
StyleContext.NamedStyle(String name, Style parent)
          Creates a new named style.
StyleContext.NamedStyle(Style parent)
          Creates a new named style.
 

Uses of Style in javax.swing.text.html
 

Methods in javax.swing.text.html that return Style
 Style StyleSheet.getRule(HTML.Tag t, Element e)
          Fetches the style to use to render the given type of HTML tag.
 Style StyleSheet.getRule(String selector)
          Fetches the rule that best matches the selector given in string form.
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.

free hit counter