Lines Matching defs:styles

52  * styles in a manner similar to the Rich Text Format.  The element
56 * style runs break at paragraph boundaries since logical styles are
78 * @param styles resources and style definitions which may
81 public DefaultStyledDocument(Content c, StyleContext styles) {
82 super(c, styles);
85 Style defaultStyle = styles.getStyle(StyleContext.DEFAULT_STYLE);
91 * storage implementation and a shared set of styles.
93 * @param styles the styles
95 public DefaultStyledDocument(StyleContext styles) {
96 this(new GapContent(BUFFER_SIZE_DEFAULT), styles);
373 * collection of named styles). The name may be null if the style
384 StyleContext styles = (StyleContext) getAttributeContext();
385 return styles.addStyle(nm, parent);
394 StyleContext styles = (StyleContext) getAttributeContext();
395 styles.removeStyle(nm);
405 StyleContext styles = (StyleContext) getAttributeContext();
406 return styles.getStyle(nm);
920 StyleContext styles = (StyleContext) getAttributeContext();
921 return styles.getForeground(attr);
931 StyleContext styles = (StyleContext) getAttributeContext();
932 return styles.getBackground(attr);
942 StyleContext styles = (StyleContext) getAttributeContext();
943 return styles.getFont(attr);
947 * Called when any of this document's styles have changed.
988 StyleContext styles = (StyleContext)getAttributeContext();
992 styles.removeChangeListener(l);
994 styles.addChangeListener(styleContextChangeListener);
1018 StyleContext styles = (StyleContext)getAttributeContext();
1019 styles.removeChangeListener(styleContextChangeListener);
1040 * Adds a ChangeListener to new styles, and removes ChangeListener from
1041 * old styles.
1045 StyleContext styles = (StyleContext)getAttributeContext();
1049 if (styleChangeListener != null && styles != null) {
1050 Enumeration styleNames = styles.getStyleNames();
1057 Style aStyle = styles.getStyle(name);
1090 StyleContext styles = (StyleContext)getAttributeContext();
1091 styles.addChangeListener(styleContextChangeListener);