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

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

?? compositemodule.java

?? 這是個國外JAVA愛好者寫的條形碼生成器
?? JAVA
字號:
/***********************************************************************************************************************
Copyright (c) 2003, International Barcode Consortium
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of
      conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of
      conditions and the following disclaimer in the documentation and/or other materials
      provided with the distribution.
    * Neither the name of the International Barcode Consortium nor the names of any contributors may be used to endorse
      or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
***********************************************************************************************************************/

package net.sourceforge.barbecue;

import net.sourceforge.barbecue.output.Output;
import net.sourceforge.barbecue.output.OutputException;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Specific implementation of Module that allows the grouping of multiple Modules into
 * one parent module.
 * <p/>Note: You should not instantiate this class directly.
 *
 * @author <a href="mailto:opensource@ianbourke.com">Ian Bourke</a>
 */
public class CompositeModule extends Module {
	private final List modules;

	/**
	 * Constructs a new Composite module that is initially empty.
	 */
	public CompositeModule() {
		super(new int[0]);
		modules = new ArrayList();
	}

	/**
	 * Adds the given module to this composite module.
	 * @param module The module to add
	 */
	public void add(Module module) {
		modules.add(module);
	}

	/**
	 * Returns the number of modules currently contained within this composite module.
	 * @return The number of child modules
	 */
	public int size() {
		return modules.size();
	}

	/**
	 * Returns the child module at the specified index.
	 * @param index The module index
	 * @return The module at the given index
	 */
	public Module getModule(int index) {
		return (Module) modules.get(index);
	}

	/**
	 * Returns the symbol group encoded by this module. This is actually a concatenation
	 * of the symbols encoded by each child module.
	 * @return The symbol encoded by this composite module
	 */
	public String getSymbol() {
		StringBuffer buf = new StringBuffer();
		for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
			Module module = (Module) iterator.next();
			buf.append(module.getSymbol());
		}
		return buf.toString();
	}

	/**
	 * Returns the underlying total width of the bars from the bar specification (that is, the sum of original bar widths
	 * in base bar units).
	 *
	 * @return The total width of bars in base (unscaled) units
	 */
	public int widthInBars() {
		int width = 0;
		for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
			Module module = (Module) iterator.next();
			width += module.widthInBars();
		}
		return width;
	}

	/**
	 * Draws the module to the given outputter at the specified origin. This actually
	 * draws each child module in turn.
	 * @param output The outputter to draw to
	 * @param x The X component of the origin
	 * @param y The Y component of the origin
	 * @param barWidth
	 * @param barHeight
	 * @return The total width drawn
	 */
	protected int draw(Output output, int x, int y, int barWidth, int barHeight) throws OutputException {
		int sum = 0;
		int currentX = x;
		
		for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
			Module module = (Module) iterator.next();
			int result = module.draw(output, currentX, y, barWidth, barHeight);
			currentX += result;
			sum += result;
		}

		return sum;
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲sss视频在线视频| 欧美一卡二卡在线| 99久久夜色精品国产网站| 久久av资源网| 麻豆一区二区三| 成人av综合在线| 在线播放中文一区| 中文字幕欧美国产| 亚洲三级电影全部在线观看高清| 色综合久久中文综合久久牛| 欧美色综合网站| 久久综合丝袜日本网| 一区2区3区在线看| 国产高清一区日本| 91精品国产欧美日韩| 亚洲欧美另类久久久精品| 日韩二区三区在线观看| 色综合欧美在线视频区| 欧美tickle裸体挠脚心vk| 一区二区三区国产豹纹内裤在线| 日日骚欧美日韩| 国产精品亚洲第一区在线暖暖韩国 | 日日夜夜免费精品视频| 欧美亚洲动漫精品| 91欧美一区二区| 亚洲国产aⅴ成人精品无吗| 精品无人码麻豆乱码1区2区| 国产亚洲1区2区3区| 中文字幕巨乱亚洲| 国产亚洲视频系列| 亚洲三级免费观看| 日本欧美一区二区三区| 国产一区二区三区精品视频| 成人免费精品视频| 色综合欧美在线视频区| 欧美一区二区三区影视| 久久亚洲一级片| 亚洲免费在线电影| 亚洲免费av网站| 视频在线观看国产精品| 国产成人超碰人人澡人人澡| 91丨porny丨在线| 色av成人天堂桃色av| 精品国产精品网麻豆系列| 国产精品电影一区二区三区| 日本人妖一区二区| 国产成人高清在线| 日韩欧美在线网站| 亚洲蜜臀av乱码久久精品蜜桃| 日本va欧美va欧美va精品| 99久久久无码国产精品| 在线不卡免费av| 亚洲一区二区美女| 国产成人av福利| 91精品婷婷国产综合久久竹菊| 国产无遮挡一区二区三区毛片日本| 亚洲成av人**亚洲成av**| av亚洲精华国产精华精| 欧美成人伊人久久综合网| 中文字幕中文字幕在线一区| 天堂蜜桃91精品| 欧美日韩黄色影视| 亚洲欧美视频在线观看视频| 国产精品自拍毛片| 精品久久一区二区三区| 日本欧美韩国一区三区| 欧美日韩在线直播| 亚洲国产视频直播| 97se狠狠狠综合亚洲狠狠| 成人福利在线看| 在线综合视频播放| 成人欧美一区二区三区| 裸体歌舞表演一区二区| 国产精品一区二区你懂的| 日韩视频永久免费| 日韩国产精品久久久| 欧美视频一区二| 亚洲电影激情视频网站| 欧美天堂一区二区三区| 亚洲国产视频a| 欧美性xxxxxx少妇| 婷婷国产在线综合| 91精品国产一区二区三区| 日韩电影免费在线| 欧美一级夜夜爽| 国产又黄又大久久| 中文字幕精品一区二区精品绿巨人| 国产精品亚洲专一区二区三区| 国产午夜亚洲精品羞羞网站| 国产精品99久久久久久宅男| 中文字幕精品三区| 91首页免费视频| 亚洲午夜电影在线观看| 欧美区在线观看| 久久99国内精品| 国产人伦精品一区二区| 不卡的av电影| 亚洲一区二区视频在线| 欧美一级xxx| 国产成人av福利| 欧美一区二区三区不卡| 国产一区二区三区免费| 国产亚洲精品7777| 欧美日本在线视频| 久久这里都是精品| 亚洲va国产天堂va久久en| 亚洲图片欧美激情| 国产精品白丝av| 国产欧美视频在线观看| 精品亚洲成a人| 久久久国产精品麻豆| 波多野洁衣一区| 精品国偷自产国产一区| 色天使久久综合网天天| 久久精品国产久精国产爱| 亚洲精品中文在线影院| 国产精品免费av| 久久影院视频免费| 国产精品天干天干在观线| 国产日韩欧美精品综合| 欧美日韩国产成人在线91| 99精品视频一区| 亚洲午夜精品网| 日韩午夜av一区| 国产成人在线视频网址| 亚洲人成7777| 欧美日韩1234| 国产精品一区二区不卡| 久久奇米777| 欧美视频完全免费看| 麻豆91在线播放| 国产亚洲一区二区三区在线观看| 国产一区在线不卡| 717成人午夜免费福利电影| 波多野结衣在线aⅴ中文字幕不卡| 日韩主播视频在线| 亚洲精品久久久蜜桃| 久久久亚洲高清| 日韩网站在线看片你懂的| 欧美亚洲一区二区在线| 国产成人在线视频免费播放| 日韩电影在线一区二区| 亚洲男同1069视频| 国产精品嫩草久久久久| 国产日韩综合av| 日韩一区二区免费在线电影| 欧美日韩精品三区| 欧美亚洲国产bt| 欧美午夜宅男影院| 色综合久久中文字幕综合网| 国产电影一区在线| 国产.欧美.日韩| 国产成人亚洲精品青草天美| 久久电影国产免费久久电影| 日韩精品国产精品| 午夜视频一区二区三区| 亚洲最色的网站| 亚洲小说欧美激情另类| 亚洲综合色丁香婷婷六月图片| 亚洲免费av观看| 亚洲乱码中文字幕| 亚洲精品免费在线| 亚洲自拍偷拍欧美| 亚洲综合久久久| 亚洲成av人片一区二区三区| 午夜av一区二区| 激情图区综合网| 国产精品888| eeuss鲁片一区二区三区在线观看| 成年人国产精品| 91在线免费看| 日本福利一区二区| 777午夜精品免费视频| 欧美一区二区三区日韩| 精品国产乱码久久久久久免费| 日韩欧美国产1| 国产色爱av资源综合区| 中文在线一区二区| 亚洲午夜在线电影| 日韩激情av在线| 精品制服美女丁香| 成人性生交大片免费看中文| 9i在线看片成人免费| 欧美日韩你懂的| 精品国产免费久久| 亚洲欧美日韩成人高清在线一区| 亚洲宅男天堂在线观看无病毒| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产一区二区三区免费看| 91免费精品国自产拍在线不卡 | 久久色在线观看| 国产日韩av一区| 五月婷婷色综合| 韩国av一区二区三区| 欧美性xxxxxxxx| 中文字幕不卡在线观看| 天堂蜜桃91精品| 国产精品一区久久久久| 欧美电影影音先锋| 中文av一区二区|