⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brview.java

📁 Mobile 应用程序使用 Java Micro Edition (Java ME) 平台
💻 JAVA
字号:
/* * @(#)BRView.java	1.12 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.text.html;import javax.swing.text.*;/** * Processes the <BR> tag.  In other words, forces a line break. * * @author Sunita Mani * @version 1.12 11/17/05 */class BRView extends InlineView {    /**     * Creates a new view that represents a <BR> element.     *     * @param elem the element to create a view for     */    public BRView(Element elem) {	super(elem);    }    /**     * Forces a line break.     *     * @return View.ForcedBreakWeight     */    public int getBreakWeight(int axis, float pos, float len) {	if (axis == X_AXIS) {	    return ForcedBreakWeight;	} else {	    return super.getBreakWeight(axis, pos, len);	}    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -