⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipaintpropertyeditor.java

📁 SWT_designer安装软件
💻 JAVA
字号:
package com.swtdesigner.api.swt.property.editor;

import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;

/**
 * Property editor that paints property value itself.
 * 
 * @author scheglov_ke
 */
public interface IPaintPropertyEditor extends IPropertyEditor {
	/**
	 * Designer calls this method to paint value of property in property table.
	 * 
	 * @param gc the graphics context
	 * @param bounds the bounds in which editor should paint
	 * @param focused that flag that tells if property is selected in table, you can for example use different backgound to show this.
	 */
	void paint(GC gc, Rectangle bounds, boolean focused);
	/**
	 * Returns image that should be displayed on button.
	 */
	Image getButtonImage();
	/**
	 * Designer calls this method when user clicks on button.
	 * You can show here dialog using Shell returned by property editor site.
	 */
	boolean onButtonClick();
}

⌨️ 快捷键说明

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