亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hssfrichtextstring.java

?? java 報表 to office文檔: 本包由java語言開發
?? JAVA
字號:
/* ====================================================================   Copyright 2004   Apache Software Foundation   Licensed under the Apache License, Version 2.0 (the "License");   you may not use this file except in compliance with the License.   You may obtain a copy of the License at       http://www.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License.==================================================================== */package org.apache.poi.hssf.usermodel;import java.util.Map;import java.util.SortedMap;import java.util.TreeMap;/** * Rich text unicode string.  These strings can have fonts applied to * arbitary parts of the string. * * @author Glen Stampoultzis (glens at apache.org) */public class HSSFRichTextString        implements Comparable{    /** Place holder for indicating that NO_FONT has been applied here */    public static final short NO_FONT = -1;    String string;    SortedMap formattingRuns = new TreeMap();    public HSSFRichTextString()    {        this("");    }    public HSSFRichTextString( String string )    {        this.string = string;        this.formattingRuns.put(new Integer(0), new Short(NO_FONT));    }    /**     * Applies a font to the specified characters of a string.     *     * @param startIndex    The start index to apply the font to (inclusive)     * @param endIndex      The end index to apply the font to (exclusive)     * @param fontIndex     The font to use.     */    public void applyFont(int startIndex, int endIndex, short fontIndex)    {        if (startIndex > endIndex)            throw new IllegalArgumentException("Start index must be less than end index.");        if (startIndex < 0 || endIndex > length())            throw new IllegalArgumentException("Start and end index not in range.");        if (startIndex == endIndex)            return;        Integer from = new Integer(startIndex);        Integer to = new Integer(endIndex);        short fontAtIndex = NO_FONT;        if (endIndex != length())            fontAtIndex = getFontAtIndex(endIndex);        formattingRuns.subMap(from, to).clear();        formattingRuns.put(from, new Short(fontIndex));        if (endIndex != length())        {            if (fontIndex != fontAtIndex)                formattingRuns.put(to, new Short(fontAtIndex));        }    }    /**     * Applies a font to the specified characters of a string.     *     * @param startIndex    The start index to apply the font to (inclusive)     * @param endIndex      The end index to apply to font to (exclusive)     * @param font          The index of the font to use.     */    public void applyFont(int startIndex, int endIndex, HSSFFont font)    {        applyFont(startIndex, endIndex, font.getIndex());    }    /**     * Sets the font of the entire string.     * @param font          The font to use.     */    public void applyFont(HSSFFont font)    {        applyFont(0, string.length(), font);    }    /**     * Returns the plain string representation.     */    public String getString()    {        return string;    }    /**     * @return  the number of characters in the font.     */    public int length()    {        return string.length();    }    /**     * Returns the font in use at a particular index.     *     * @param index         The index.     * @return              The font that's currently being applied at that     *                      index or null if no font is being applied or the     *                      index is out of range.     */    public short getFontAtIndex( int index )    {        if (index < 0 || index >= string.length())            throw new ArrayIndexOutOfBoundsException("Font index " + index + " out of bounds of string");        Integer key = new Integer(index + 1);        SortedMap head = formattingRuns.headMap(key);        if (head.isEmpty())            throw new IllegalStateException("Should not reach here.  No font found.");        else            return ((Short) head.get(head.lastKey())).shortValue();    }    /**     * @return  The number of formatting runs used. There will always be at     *          least one of font NO_FONT.     *     * @see #NO_FONT     */    public int numFormattingRuns()    {        return formattingRuns.size();    }    /**     * The index within the string to which the specified formatting run applies.     * @param index     the index of the formatting run     * @return  the index within the string.     */    public int getIndexOfFormattingRun(int index)    {        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );        return ((Integer)runs[index].getKey()).intValue();    }    /**     * Gets the font used in a particular formatting run.     *     * @param index     the index of the formatting run     * @return  the font number used.     */    public short getFontOfFormattingRun(int index)    {        Map.Entry[] runs = (Map.Entry[]) formattingRuns.entrySet().toArray(new Map.Entry[formattingRuns.size()] );        return ((Short)(runs[index].getValue())).shortValue();    }    /**     * Compares one rich text string to another.     */    public int compareTo( Object o )    {        return 0; // todo    }    /**     * @return  the plain text representation of this string.     */    public String toString()    {        return string;    }    /**     * Applies the specified font to the entire string.     *     * @param fontIndex  the font to apply.     */    public void applyFont( short fontIndex )    {        applyFont(0, string.length(), fontIndex);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线精品亚洲一区二区不卡| 日韩欧美一区二区视频| 91精品国产一区二区三区香蕉 | 无吗不卡中文字幕| 国产mv日韩mv欧美| 日韩三级在线观看| 一区二区三区不卡在线观看| 国产精一区二区三区| 精品成人一区二区三区四区| 亚洲国产婷婷综合在线精品| 成人一级视频在线观看| 日韩精品资源二区在线| 亚洲国产日韩一级| a级高清视频欧美日韩| 久久精品综合网| 麻豆精品国产传媒mv男同| 欧美性淫爽ww久久久久无| 国产精品美女久久久久久久| 韩国一区二区三区| 日韩亚洲欧美成人一区| 日本不卡中文字幕| 91精品国产综合久久婷婷香蕉| 亚洲美女视频在线| 色婷婷综合久久久中文一区二区| 国产精品色一区二区三区| 国产激情一区二区三区| 久久色在线视频| 国产精品影视网| 国产亚洲美州欧州综合国| 久久99久久精品| 欧美大片一区二区| 国产精品综合一区二区三区| 久久一二三国产| 欧美性videosxxxxx| 亚洲精品免费一二三区| 一本到三区不卡视频| 亚洲精品水蜜桃| 91高清在线观看| 午夜视频在线观看一区| 欧美久久久一区| 久久精品国产精品青草| 精品国产乱码久久久久久1区2区| 国产综合成人久久大片91| 国产欧美综合在线| 色综合久久综合| 五月婷婷综合在线| 亚洲精品在线三区| 懂色中文一区二区在线播放| 一区二区在线电影| 7777精品伊人久久久大香线蕉超级流畅| 日韩高清在线不卡| 久久综合色天天久久综合图片| 国产精品亚洲人在线观看| 国产精品人成在线观看免费| 欧美亚日韩国产aⅴ精品中极品| 午夜精品免费在线| 久久久久久免费网| 99久久国产综合精品女不卡| 亚洲午夜电影在线| 久久亚洲捆绑美女| 在线影院国内精品| 黑人巨大精品欧美一区| 亚洲欧洲色图综合| 日韩一区二区三区高清免费看看| 国产一区二区网址| 亚洲另类在线制服丝袜| 欧美精品一区二区三区一线天视频 | 日本aⅴ免费视频一区二区三区| 久久久久久久精| 欧美tk—视频vk| 成人av在线播放网站| 午夜精品一区在线观看| 久久精品亚洲一区二区三区浴池 | 国产一区二区三区精品视频| 一区二区视频免费在线观看| 欧美一级高清片在线观看| 成人精品视频一区二区三区 | 亚洲综合一二三区| 欧美激情在线一区二区| 欧美精品亚洲一区二区在线播放| 白白色亚洲国产精品| 美女精品一区二区| 伊人开心综合网| 国产精品午夜春色av| 欧美成人性战久久| 欧美日韩视频一区二区| 国产成a人亚洲| 麻豆精品久久久| 日韩黄色片在线观看| 成人欧美一区二区三区在线播放| 精品久久久久久亚洲综合网| 欧美精品18+| 色哟哟一区二区| 成人动漫视频在线| 国产麻豆一精品一av一免费| 日韩精品一区第一页| 一区二区三区欧美日| 中文字幕不卡在线播放| 久久伊人蜜桃av一区二区| 91精品国产高清一区二区三区蜜臀| 一本一道久久a久久精品| 欧美丰满少妇xxxxx高潮对白 | 欧美一区二区福利视频| 欧美日韩午夜影院| 欧美性欧美巨大黑白大战| 成人av高清在线| 99久久久久久| 一本大道久久精品懂色aⅴ| 92精品国产成人观看免费| 成人sese在线| yourporn久久国产精品| 99国产精品久久久| 91小视频免费观看| 99re66热这里只有精品3直播| 国产69精品久久久久毛片| 懂色一区二区三区免费观看| 成人app在线| av成人免费在线观看| av高清不卡在线| 99精品在线免费| 色悠悠久久综合| 精品视频一区二区三区免费| 精品1区2区3区| 91精品国产综合久久精品 | 欧美日韩国产综合一区二区 | 99热精品一区二区| 色婷婷综合久久久中文字幕| 在线观看一区日韩| 欧美精品在线观看播放| 日韩一区二区影院| 国产欧美综合在线| 亚洲另类色综合网站| 亚洲成人av在线电影| 欧美a级理论片| 成人黄页在线观看| 91捆绑美女网站| 欧美日韩精品一区二区| 精品国产凹凸成av人导航| 欧美国产日本韩| 亚洲成av人片| 韩国av一区二区三区| 97精品视频在线观看自产线路二| 在线亚洲一区二区| 日韩欧美亚洲一区二区| 国产免费观看久久| 亚洲午夜私人影院| 国产美女精品一区二区三区| 91精品国产综合久久小美女| 久久蜜桃一区二区| 一区二区三区四区在线免费观看| 人禽交欧美网站| 99久久精品国产导航| 日韩一区二区三区三四区视频在线观看 | 精品中文字幕一区二区小辣椒| 国产高清一区日本| 欧美视频一区二区三区| 久久综合999| 亚洲电影你懂得| 国产成人久久精品77777最新版本| 在线视频国内自拍亚洲视频| 久久久精品中文字幕麻豆发布| 亚洲精品国产无套在线观| 国产一区二区三区香蕉| 欧美日韩一级二级三级| 久久精品人人做人人爽人人| 视频一区视频二区中文| 成人91在线观看| 久久综合九色综合久久久精品综合| 亚洲美腿欧美偷拍| 成人午夜在线播放| 日韩欧美在线影院| 亚洲麻豆国产自偷在线| 国产精品一级二级三级| 7777精品伊人久久久大香线蕉| 亚洲免费观看视频| eeuss鲁片一区二区三区在线观看| 日韩免费观看2025年上映的电影| 一区二区日韩电影| 成人av在线看| 日本一区二区三区dvd视频在线| 美女视频免费一区| 欧美一级午夜免费电影| 亚洲一区在线观看视频| 色综合天天综合在线视频| 中文字幕不卡在线观看| 91视频国产观看| √…a在线天堂一区| 国产成人精品一区二| 久久综合九色综合97_久久久| 日韩精品乱码免费| 91精品国产乱| 美脚の诱脚舐め脚责91| 91麻豆精品国产91久久久久| 亚洲国产精品麻豆| 欧美日韩国产色站一区二区三区| 亚洲精品一卡二卡| 欧美熟乱第一页| 午夜精品一区二区三区免费视频| 欧美日韩色一区| 日韩不卡在线观看日韩不卡视频|