Lines Matching refs:style

44  * by the various style definitions.  This can be shared by multiple
91 * Adds a new style into the style hierarchy. Style attributes
95 * @param nm the name of the style (must be unique within the
97 * be null if the style is unnamed, but the caller is responsible
98 * for managing the reference returned as an unnamed style can't
99 * be fetched by name. An unnamed style may be useful for things
100 * like character attribute overrides such as found in a style
102 * @param parent the parent style. This may be null if unspecified
103 * attributes need not be resolved in some other style.
104 * @return the created style
107 Style style = new NamedStyle(nm, parent);
109 // add a named style, a class of attributes
110 styles.addAttribute(nm, style);
112 return style;
116 * Removes a named style previously added to the document.
118 * @param nm the name of the style to remove
125 * Fetches a named style previously added to the document
127 * @param nm the name of the style
128 * @return the style
187 int style = Font.PLAIN;
189 style |= Font.BOLD;
192 style |= Font.ITALIC;
207 return getFont(family, style, size);
243 * @param style the style of the font (such as Font.PLAIN)
247 public Font getFont(String family, int style, int size) {
248 fontSearch.setValue(family, style, size);
260 f = defaultFont.deriveFont(style, size);
264 f = new Font(family, style, size);
269 FontKey key = new FontKey(family, style, size);
726 * The name given to the default logical style attached
1186 private int style;
1192 public FontKey(String family, int style, int size) {
1193 setValue(family, style, size);
1196 public void setValue(String family, int style, int size) {
1198 this.style = style;
1208 return fhash ^ style ^ size;
1215 * name, style, and point size as this font.
1223 return (size == font.size) && (style == font.style) && (family == font.family);
1250 * Creates a new named style.
1252 * @param name the style name, null for unnamed
1253 * @param parent the parent style, null if none
1267 * Creates a new named style.
1269 * @param parent the parent style, null if none
1277 * Creates a new named style, with a null name and parent.
1284 * Converts the style to a string.
1293 * Fetches the name of the style. A style is not required to be named,
1294 * so null is returned if there is no name associated with the style.
1306 * Changes the name of the style. Does nothing with a null name.