graphicstab.java

来自「一个简单的UNCODE 码生成程序」· Java 代码 · 共 68 行

JAVA
68
字号
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.swt.examples.graphics;

import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;

public abstract class GraphicsTab {
	
GraphicsExample example;

public GraphicsTab(GraphicsExample example) {
	this.example = example;
}

/** 
 * Creates the widgets used to control the drawing.
 */
public void createControlPanel(Composite parent) {
}

/** 
 * Disposes resources created by the receiver.
 */
public void dispose() {
}

/** 
 * Answer the receiver's name.
 */
public abstract String getText();

/** 
 * Answer the receiver's category.
 */
public String getCategory() {
	return GraphicsExample.getResourceString("Misc"); //$NON-NLS-1$
}

/** 
 * Answer whether the receiver is animated or not. 
 */
public boolean isAnimated() {
	return false;
}

/** 
 * Advance the animation. 
 */
public void next(int width, int height) {	
}

/** 
 * Paint the receiver into the specified GC. 
 */
public void paint(GC gc, int width, int height) {
}

}

⌨️ 快捷键说明

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