5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
cda73f64f20b8a0afc4909f5ea1f055ec7913856Toomas Soome * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
cda73f64f20b8a0afc4909f5ea1f055ec7913856Toomas Soome * This code is free software; you can redistribute it and/or modify it
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * under the terms of the GNU General Public License version 2 only, as
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * published by the Free Software Foundation. Oracle designates this
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * particular file as subject to the "Classpath" exception as provided
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * by Oracle in the LICENSE file that accompanied this code.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * This code is distributed in the hope that it will be useful, but WITHOUT
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * version 2 for more details (a copy is included in the LICENSE file that
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * accompanied this code).
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * You should have received a copy of the GNU General Public License version
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * 2 along with this work; if not, write to the Free Software Foundation,
cda73f64f20b8a0afc4909f5ea1f055ec7913856Toomas Soome * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * or visit www.oracle.com if you need additional information or have any
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * questions.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Displays the <dfn>inline element</dfn> styles
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * based upon css attributes.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @author Timothy Prinzing
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Constructs a new view wrapped on an element.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param elem the element
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Gives notification that something was inserted into
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * the document in a location that this view is responsible for.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * If either parameter is <code>null</code>, behavior of this method is
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * implementation dependent.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param e the change information from the associated document
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param a the current allocation of the view
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param f the factory to use to rebuild if the view has children
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @since 1.5
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @see View#insertUpdate
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) {
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome super.insertUpdate(e, a, f);
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * Gives notification that something was removed from the document
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * in a location that this view is responsible for.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * If either parameter is <code>null</code>, behavior of this method is
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * implementation dependent.
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param e the change information from the associated document
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param a the current allocation of the view
5ffb0c9b03b5149ff4f5821a62be4a52408ada2aToomas Soome * @param f the factory to use to rebuild if the view has children
super.removeUpdate(e, a, f);
super.changedUpdate(e, a, f);
return attr;
if (nowrap) {
return BadBreakWeight;
super.setPropertiesFromAttributes();
setUnderline(u);
setStrikeThrough(s);
setSuperscript(s);
setSubscript(s);
nowrap = true;
nowrap = false;