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

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

?? graphicsmock.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 java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ImageObserver;
import java.awt.image.RenderedImage;
import java.awt.image.renderable.RenderableImage;
import java.text.AttributedCharacterIterator;

public class GraphicsMock extends Graphics2D {
	private List colors;
	private List rects;
	private int maxX;
	private int maxY;
	private int minY;
	private int minX;
	private boolean maxSet;
	private boolean minSet;
	private Rectangle textBounds;
	private Color currentColor;
	private List strings;
	private boolean textDrawn;

	public GraphicsMock() {
		init();
	}

	public void reset() {
		init();
	}

	private void init() {
		this.colors = new ArrayList();
		this.rects = new ArrayList();
		this.strings = new ArrayList();
		this.currentColor = Color.black;
		this.minSet = false;
		this.maxSet = false;
		this.textDrawn = false;
	}

	public Rectangle getTextBounds() {
		return textBounds;
	}

	public Rectangle getModifiedBounds() {
		return new Rectangle(minX, minY, maxX, maxY);
	}

	public List getColors() {
		return colors;
	}

	public List getRects() {
		return rects;
	}

	public void draw(Shape s) {
	}

	public boolean drawImage(Image img,
	                         AffineTransform xform,
	                         ImageObserver obs) {
		return false;
	}

	public void drawImage(BufferedImage img,
	                      BufferedImageOp op,
	                      int x,
	                      int y) {
		updateMin(x, y);
		updateMax(x, y);
	}

	public void drawRenderedImage(RenderedImage img,
	                              AffineTransform xform) {
	}

	public void drawRenderableImage(RenderableImage img,
	                                AffineTransform xform) {
	}

	public void drawString(String str, int x, int y) {
		updateMin(x, y);
		updateMax(x, y);
		textBounds = new Rectangle(x, y, x, y);
		strings.add(str);
		textDrawn = true;
	}

	public void drawString(String s, float x, float y) {
		updateMin(x, y);
		updateMax((int)x, (int)y);
		textBounds = new Rectangle((int) x, (int) y, (int) x, (int) y);
		strings.add(s);
		textDrawn = true;
	}

	public void drawString(AttributedCharacterIterator iterator,
	                       int x, int y) {
		updateMin(x, y);
		updateMax(x, y);
		textBounds = new Rectangle(x, y, x, y);
		textDrawn = true;
	}

	public void drawString(AttributedCharacterIterator iterator,
	                       float x, float y) {
		updateMin(x, y);
		updateMax((int)x, (int)y);
		textBounds = new Rectangle((int) x, (int) y, (int) x, (int) y);
		textDrawn = true;
	}

	public void drawGlyphVector(GlyphVector g, float x, float y) {
		updateMin(x, y);
		updateMax(x, y);
		textBounds = new Rectangle((int) x, (int) y, (int) x, (int) y);
		textDrawn = true;
	}

	public void fill(Shape s) {
	}

	public boolean hit(Rectangle rect,
	                   Shape s,
	                   boolean onStroke) {
		return false;
	}

	public GraphicsConfiguration getDeviceConfiguration() {
		return null;
	}

	public void setComposite(Composite comp) {
	}

	public void setPaint(Paint paint) {
	}

	public void setStroke(Stroke s) {
	}

	public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue) {
	}

	public Object getRenderingHint(RenderingHints.Key hintKey) {
		return null;
	}

	public void setRenderingHints(Map hints) {
	}

	public void addRenderingHints(Map hints) {
	}

	public RenderingHints getRenderingHints() {
		return null;
	}

	public void translate(int x, int y) {
	}

	public void translate(double tx, double ty) {
	}

	public void rotate(double theta) {
	}

	public void rotate(double theta, double x, double y) {
	}

	public void scale(double sx, double sy) {
	}

	public void shear(double shx, double shy) {
	}

	public void transform(AffineTransform Tx) {
	}

	public void setTransform(AffineTransform Tx) {
	}

	public AffineTransform getTransform() {
		return null;
	}

	public Paint getPaint() {
		return null;
	}

	public Composite getComposite() {
		return null;
	}

	public void setBackground(Color color) {
	}

	public Color getBackground() {
		return null;
	}

	public Stroke getStroke() {
		return null;
	}

	public void clip(Shape s) {
	}

	public FontRenderContext getFontRenderContext() {
		return new FontRenderContext(new AffineTransform(0, 0, 0, 0, 0, 0), false, false);
	}

	public Graphics create() {
		return null;
	}

	public Color getColor() {
		return currentColor;
	}

	public void setColor(Color c) {
		currentColor = c;
		colors.add(c);
	}

	public void setPaintMode() {
	}

	public void setXORMode(Color c1) {
	}

	public Font getFont() {
		return null;
	}

	public void setFont(Font font) {
	}

	public FontMetrics getFontMetrics(Font f) {
		return null;
	}

	public Rectangle getClipBounds() {
		return null;
	}

	public void clipRect(int x, int y, int width, int height) {
	}

	public void setClip(int x, int y, int width, int height) {
	}

	public Shape getClip() {
		return null;
	}

	public void setClip(Shape clip) {
	}

	public void copyArea(int x, int y, int width, int height,
	                     int dx, int dy) {
	}

	public void drawLine(int x1, int y1, int x2, int y2) {
		updateMin(x1, y1);
		updateMax(x2, y2);
	}

	public void fillRect(int x, int y, int width, int height) {
		rects.add(new Rectangle(x, y, width, height));
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void clearRect(int x, int y, int width, int height) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void drawRoundRect(int x, int y, int width, int height,
	                          int arcWidth, int arcHeight) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void fillRoundRect(int x, int y, int width, int height,
	                          int arcWidth, int arcHeight) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void drawOval(int x, int y, int width, int height) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void fillOval(int x, int y, int width, int height) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void drawArc(int x, int y, int width, int height,
	                    int startAngle, int arcAngle) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void fillArc(int x, int y, int width, int height,
	                    int startAngle, int arcAngle) {
		updateMin(x, y);
		updateMax(x + width, y + height);
	}

	public void drawPolyline(int xPoints[], int yPoints[],
	                         int nPoints) {
		for (int i=0; i<nPoints; i++) {
			updateMin(xPoints[i], yPoints[i]);
			updateMax(xPoints[i], yPoints[i]);
		}
	}

	public void drawPolygon(int xPoints[], int yPoints[],
	                        int nPoints) {
		for (int i=0; i<nPoints; i++) {
			updateMin(xPoints[i], yPoints[i]);
			updateMax(xPoints[i], yPoints[i]);
		}
	}

	public void fillPolygon(int xPoints[], int yPoints[],
	                        int nPoints) {
		for (int i=0; i<nPoints; i++) {
			updateMin(xPoints[i], yPoints[i]);
			updateMax(xPoints[i], yPoints[i]);
		}
	}

	public boolean drawImage(Image img, int x, int y,
	                         ImageObserver observer) {
		updateMin(x, y);
		return false;
	}

	public boolean drawImage(Image img, int x, int y,
	                         int width, int height,
	                         ImageObserver observer) {
		updateMin(x, y);
		updateMax(x + width, y + height);
		return false;
	}

	public boolean drawImage(Image img, int x, int y,
	                         Color bgcolor,
	                         ImageObserver observer) {
		updateMin(x, y);
		return false;
	}

	public boolean drawImage(Image img, int x, int y,
	                         int width, int height,
	                         Color bgcolor,
	                         ImageObserver observer) {
		updateMin(x, y);
		updateMax(x + width, y + height);
		return false;
	}

	public boolean drawImage(Image img,
	                         int dx1, int dy1, int dx2, int dy2,
	                         int sx1, int sy1, int sx2, int sy2,
	                         ImageObserver observer) {
		return false;
	}

	public boolean drawImage(Image img,
	                         int dx1, int dy1, int dx2, int dy2,
	                         int sx1, int sy1, int sx2, int sy2,
	                         Color bgcolor,
	                         ImageObserver observer) {
		return false;
	}

	public void dispose() {
	}

	private void updateMin(float x, float y) {
		updateMin((int) x, (int) y);
	}

	private void updateMin(int x, int y) {
		if (! minSet) {
			minX = x;
			minY = y;
			minSet = true;
		} else {
			if (x < minX) {
				minX = x;
			}
			if (y < minY) {
				minY = y;
			}
		}
	}

	private void updateMax(float x, float y) {
		updateMax((int) x, (int) y);
	}

	private void updateMax(int x, int y) {
		if (! maxSet) {
			maxX = x;
			maxY = y;
			maxSet = true;
		} else {
			if (x > maxX) {
				maxX = x;
			}
			if (y > maxY) {
				maxY = y;
			}
		}
	}

	public List getStrings() {
		return strings;
	}

	public boolean wasTextDrawn() {
		return textDrawn;
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
777xxx欧美| 亚洲影院免费观看| 欧美一级免费观看| 日本乱人伦aⅴ精品| 丁香啪啪综合成人亚洲小说 | 91在线视频免费观看| 国产一区二区免费看| 秋霞av亚洲一区二区三| 亚洲二区视频在线| 亚洲最大的成人av| 亚洲免费观看在线观看| 中文字幕永久在线不卡| 国产欧美一区二区三区在线看蜜臀| 精品嫩草影院久久| 美女mm1313爽爽久久久蜜臀| 人妖欧美一区二区| 免费成人av资源网| 麻豆国产精品777777在线| 美女一区二区三区在线观看| 琪琪一区二区三区| 激情综合一区二区三区| 韩国av一区二区三区四区| 国产成人在线观看| 成人亚洲一区二区一| 99久久国产综合色|国产精品| 成人精品视频一区二区三区尤物| 懂色av噜噜一区二区三区av| 成人激情动漫在线观看| 日本丰满少妇一区二区三区| 欧美撒尿777hd撒尿| 日韩女优制服丝袜电影| 久久久久久久av麻豆果冻| 中文字幕免费观看一区| 亚洲乱码国产乱码精品精98午夜| 一区二区在线观看视频在线观看| 亚洲成人动漫av| 国产精品一区二区在线观看不卡 | 久久久一区二区三区| 中文字幕一区二区三区蜜月| 亚洲午夜在线观看视频在线| 另类的小说在线视频另类成人小视频在线| 国产一区二区精品久久91| 91麻豆国产自产在线观看| 9191国产精品| 国产精品久久久久aaaa樱花| 日日骚欧美日韩| 国v精品久久久网| 91精品国产欧美一区二区成人 | 欧美三级电影一区| 国产日韩av一区| 天天av天天翘天天综合网| 国产91精品入口| 欧美一卡二卡三卡| 一区二区三区四区不卡视频| 蜜桃视频一区二区三区| 色综合久久综合中文综合网| 久久亚洲一级片| 日韩成人一级片| 日本丶国产丶欧美色综合| 国产丝袜美腿一区二区三区| 天天操天天干天天综合网| 91年精品国产| 国产色婷婷亚洲99精品小说| 麻豆视频观看网址久久| 91福利在线观看| 亚洲视频一区在线| 国产成人日日夜夜| 久久久亚洲午夜电影| 美女mm1313爽爽久久久蜜臀| 欧美日本一道本在线视频| 亚洲精品自拍动漫在线| 丁香五精品蜜臀久久久久99网站| 欧美成人艳星乳罩| 蜜桃视频在线一区| 日韩一区二区在线看| 日韩国产在线一| 国产在线播放一区| 久久亚洲综合av| 国产福利一区在线| 欧美激情中文字幕| 成人免费高清在线| 欧美日韩国产中文| 性久久久久久久久| 91精品国产麻豆| 免费高清在线一区| 欧美sm极限捆绑bd| 精品午夜一区二区三区在线观看| 欧美一级久久久| 国内外成人在线| 欧美韩日一区二区三区四区| 成人性色生活片| 一区二区在线电影| 欧美人妖巨大在线| 久久精品国产亚洲aⅴ| 久久精品人人做人人综合| 成人一区二区视频| 一区二区三区影院| 欧美一区二区在线播放| 国产一区免费电影| 亚洲日本韩国一区| 91精品国产综合久久香蕉麻豆| 久草在线在线精品观看| 中文一区二区在线观看| 欧美综合欧美视频| 极品少妇一区二区三区精品视频| 国产午夜精品久久| 欧美精品18+| 丁香网亚洲国际| 日韩电影网1区2区| 亚洲视频免费观看| 日韩欧美一区在线观看| 成人精品免费看| 全部av―极品视觉盛宴亚洲| 国产日韩欧美激情| 欧美欧美欧美欧美首页| 成人午夜免费电影| 蜜臀av性久久久久蜜臀aⅴ四虎| 中文在线一区二区| 日韩一级高清毛片| 一本久久a久久免费精品不卡| 久久精品国产免费| 亚洲图片欧美综合| 国产精品家庭影院| 久久精品日韩一区二区三区| 91麻豆精品国产91久久久久久久久| 波多野结衣视频一区| 精品亚洲国内自在自线福利| 亚洲一级不卡视频| 中文字幕色av一区二区三区| 精品粉嫩超白一线天av| 欧美精品一级二级| 欧美午夜精品一区二区蜜桃| 成人动漫精品一区二区| 国产乱码精品1区2区3区| 蜜臀国产一区二区三区在线播放| 亚洲精品你懂的| 国产欧美日韩视频一区二区| 欧美一区二区三区视频免费| 97精品电影院| 免费在线观看一区| 亚洲一卡二卡三卡四卡五卡| 《视频一区视频二区| 久久久亚洲高清| 欧美成人伊人久久综合网| 欧美久久婷婷综合色| 91麻豆6部合集magnet| 成人一区二区三区视频| 国产一区二三区好的| 久久66热偷产精品| 久久99精品视频| 久久国产精品第一页| 一区二区三区欧美亚洲| 亚洲精品福利视频网站| 亚洲欧美日韩一区二区三区在线观看| 中文一区在线播放| 久久久久久久久久久久久夜| 精品免费日韩av| 欧美mv日韩mv亚洲| 精品毛片乱码1区2区3区| 欧美变态tickling挠脚心| 日韩欧美在线123| 久久久久9999亚洲精品| 精品欧美一区二区在线观看| 久久综合九色综合97婷婷女人| 精品国精品国产| 久久精品夜夜夜夜久久| 日韩一区在线免费观看| 亚洲国产成人高清精品| 日本成人在线电影网| 国产真实乱偷精品视频免| 国产精品白丝jk白祙喷水网站| 国产电影一区二区三区| 99久久综合精品| 欧美欧美欧美欧美| www国产亚洲精品久久麻豆| 久久伊人蜜桃av一区二区| 综合电影一区二区三区| 亚洲无线码一区二区三区| 九色综合狠狠综合久久| 懂色中文一区二区在线播放| 成人av资源网站| 欧美在线一区二区三区| 日韩精品一区二区三区视频在线观看| 久久久久久免费毛片精品| 国产精品灌醉下药二区| 日本va欧美va瓶| 91美女在线视频| 欧美成人一区二区三区| 国产精品免费观看视频| 日韩**一区毛片| 91麻豆国产在线观看| 欧美精品一区视频| 亚洲电影一区二区| 日本在线不卡一区| 99久久免费视频.com| 精品少妇一区二区三区在线播放 | 五月激情综合婷婷| 激情欧美一区二区| 欧美视频一区二区| 国产日韩影视精品|