mximage.java

来自「经典的java图像处理程序源码」· Java 代码 · 共 84 行

JAVA
84
字号
/** * $Id: mxImage.java,v 1.1 2008/06/16 17:46:40 gaudenz Exp $ * Copyright (c) 2007, Gaudenz Alder */package com.mxgraph.util;import java.io.Serializable;/** * Implements a 2-dimensional point with double precision coordinates. */public class mxImage implements Serializable, Cloneable{	/**	 * Holds the path or URL for the image.	 */	protected String src;	/**	 * Holds the image width and height.	 */	protected int width, height;	/**	 * Constructs a new point at (0, 0).	 */	public mxImage(String src, int width, int height)	{		this.src = src;		this.width = width;		this.height = height;	}	/**	 * @return the src	 */	public String getSrc()	{		return src;	}	/**	 * @param src the src to set	 */	public void setSrc(String src)	{		this.src = src;	}	/**	 * @return the width	 */	public int getWidth()	{		return width;	}	/**	 * @param width the width to set	 */	public void setWidth(int width)	{		this.width = width;	}	/**	 * @return the height	 */	public int getHeight()	{		return height;	}	/**	 * @param height the height to set	 */	public void setHeight(int height)	{		this.height = height;	}}

⌨️ 快捷键说明

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