Lines Matching refs:style

42  * merged into a resulting style.
91 * style. Any StateInfo's of the passed in style are clonsed as well.
93 * @param style Style to duplicate
95 public DefaultSynthStyle(DefaultSynthStyle style) {
96 opaque = style.opaque;
97 if (style.insets != null) {
98 insets = new Insets(style.insets.top, style.insets.left,
99 style.insets.bottom, style.insets.right);
101 if (style.states != null) {
102 states = new StateInfo[style.states.length];
103 for (int counter = style.states.length - 1; counter >= 0;
105 states[counter] = (StateInfo)style.states[counter].clone();
108 if (style.data != null) {
110 data.putAll(style.data);
112 font = style.font;
113 synthGraphics = style.synthGraphics;
114 painter = style.painter;
184 * @param c JComponent the style is associated with
237 * @param c JComponent the style is associated with
364 * Sets style specific values. This does NOT copy the data, it
374 * Returns the style specific data.
383 * Getter for a region specific style property.
436 * invoked if this style doesn't define a property for <code>key</code>.
447 * Creates a clone of this style.
449 * @return Clone of this style
452 DefaultSynthStyle style;
454 style = (DefaultSynthStyle)super.clone();
459 style.states = new StateInfo[states.length];
461 style.states[counter] = (StateInfo)states[counter].clone();
465 style.data = new HashMap();
466 style.data.putAll(data);
468 return style;
476 * style specifics a non-null font, the returned style will have its
477 * font so to that regardless of the <code>style</code>'s font.
479 * @param style Style to add our styles to
480 * @return Merged style.
482 public DefaultSynthStyle addTo(DefaultSynthStyle style) {
484 style.insets = this.insets;
487 style.font = this.font;
490 style.painter = this.painter;
493 style.synthGraphics = this.synthGraphics;
495 style.opaque = opaque;
497 if (style.states == null) {
498 style.states = new StateInfo[states.length];
501 style.states[counter] = (StateInfo)states[counter].
513 int maxOStyles = style.states.length;
521 if (state == style.states[oCounter].
523 style.states[oCounter] = states[thisCounter].
524 addTo(style.states[oCounter]);
526 StateInfo tmp = style.states[maxOStyles - 1 -
528 style.states[maxOStyles - 1 - matchCount] =
529 style.states[oCounter];
530 style.states[oCounter] = tmp;
542 // don't exist in the other style, recreate the array
548 System.arraycopy(style.states, 0, newStates, 0,maxOStyles);
556 if (state == style.states[oCounter].
567 style.states = newStates;
572 if (style.data == null) {
573 style.data = new HashMap();
575 style.data.putAll(data);
577 return style;
582 * specific to a particular style.
592 * properties specific to a particular style.