Lines Matching refs:style
79 * Sets opaqueness of the associated component according to its style,
111 * the appropriate property is set in the default style of
134 * Update the color in the default style of the document.
137 * from the document's style
141 Style style = doc.getStyle(StyleContext.DEFAULT_STYLE);
143 if (style == null) {
148 style.removeAttribute(StyleConstants.Foreground);
150 StyleConstants.setForeground(style, color);
155 * Update the font in the default style of the document.
158 * from the document's style
162 Style style = doc.getStyle(StyleContext.DEFAULT_STYLE);
164 if (style == null) {
169 style.removeAttribute(StyleConstants.FontFamily);
170 style.removeAttribute(StyleConstants.FontSize);
171 style.removeAttribute(StyleConstants.Bold);
172 style.removeAttribute(StyleConstants.Italic);
174 StyleConstants.setFontFamily(style, font.getName());
175 StyleConstants.setFontSize(style, font.getSize());
176 StyleConstants.setBold(style, font.isBold());
177 StyleConstants.setItalic(style, font.isItalic());