资源简介

代码片段和文件信息
package com.swtdesigner;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.CoolBar;
import org.eclipse.swt.widgets.CoolItem;
import org.eclipse.swt.widgets.Display;
/**
* Utility class for managing OS resources associated with SWT controls such as
* colors fonts images etc.
*
* !!! IMPORTANT !!! Application code must explicitly invoke the dispose()
* method to release the operating system resources managed by cached objects
* when those objects and OS resources are no longer needed (e.g. on
* application shutdown)
*
* This class may be freely distributed as part of any application or plugin.
*
* Copyright (c) 2003 - 2005 Instantiations Inc.
All Rights Reserved
*
* @author scheglov_ke
* @author Dan Rubel
*/
public class SWTResourceManager {
/**
* Dispose of cached objects and their underlying OS resources. This should
* only be called when the cached objects are no longer needed (e.g. on
* application shutdown)
*/
public static void dispose() {
disposeColors();
disposeFonts();
disposeImages();
disposeCursors();
}
//////////////////////////////
// Color support
//////////////////////////////
/**
* Maps RGB values to colors
*/
private static HashMap m_ColorMap = new HashMap();
/**
* Returns the system color matching the specific ID
* @param systemColorID int The ID value for the color
* @return Color The system color matching the specific ID
*/
public static Color getColor(int systemColorID) {
Display display = Display.getCurrent();
return display.getSystemColor(systemColorID);
}
/**
* Returns a color given its red green and blue component values
* @param r int The red component of the color
* @param g int The green component of the color
* @param b int The blue component of the color
* @return Color The color matching the given red green and blue componet values
*/
public static Color getColor(int r int g int b) {
return getColor(new RGB(r g b));
}
/**
* Returns a color given its RGB value
* @param rgb RGB The RGB value of the color
* @return Color The color matching the RGB value
*/
public static Color getColor(RGB rgb) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2351 2008-01-14 09:08 大学课表管理系统1\.classpath
文件 393 2008-01-06 23:56 大学课表管理系统1\.project
文件 1310720 2008-12-29 17:35 大学课表管理系统1\ArrangeCourseSys_Data.MDF
文件 1048576 2008-12-29 17:35 大学课表管理系统1\ArrangeCourseSys_Log.LDF
文件 857 2008-01-16 17:29 大学课表管理系统1\bin\com\swtdesigner\SWTResourceManager$1.class
文件 12990 2008-01-16 17:29 大学课表管理系统1\bin\com\swtdesigner\SWTResourceManager.class
文件 3519 2008-01-16 17:29 大学课表管理系统1\bin\dbController\AdjustController.class
文件 2373 2008-01-16 19:29 大学课表管理系统1\bin\dbController\AllClassViewController.class
文件 4940 2008-01-16 19:32 大学课表管理系统1\bin\dbController\ArrangeCourseMainCopy.class
文件 2218 2008-01-16 19:36 大学课表管理系统1\bin\dbController\ClassTab1Ctrl.class
文件 1330 2008-01-16 19:37 大学课表管理系统1\bin\dbController\CourseBean.class
文件 2548 2008-05-19 23:13 大学课表管理系统1\bin\dbController\courseController.class
文件 1204 2008-01-16 17:29 大学课表管理系统1\bin\dbController\DBcon.class
文件 5325 2008-01-16 19:47 大学课表管理系统1\bin\dbController\RoomInfoController.class
文件 1582 2008-01-16 19:48 大学课表管理系统1\bin\dbController\ScheduleDel.class
文件 8650 2008-01-16 19:57 大学课表管理系统1\bin\dbController\ScheduleTabController.class
文件 1169 2008-01-16 19:58 大学课表管理系统1\bin\dbController\StuScheduleBean.class
文件 1183 2008-01-16 20:00 大学课表管理系统1\bin\dbController\TeacherBean.class
文件 1182 2008-01-16 20:01 大学课表管理系统1\bin\dbController\TeacherScheduleBean.class
文件 4249 2008-01-16 20:07 大学课表管理系统1\bin\dbController\TeacherTabController.class
文件 1079 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$1.class
文件 683 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$10.class
文件 3354 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$2.class
文件 1003 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$3.class
文件 3358 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$4.class
文件 1003 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$5.class
文件 2353 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$6.class
文件 2008 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$7.class
文件 627 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$8.class
文件 2015 2008-01-16 18:55 大学课表管理系统1\bin\userUI\AdjustUI$9.class
............此处省略53个文件信息
- 上一篇:虚拟现实源程序代码虚拟现实代码
- 下一篇:the ISwR package
相关资源
- 酒店管理系统基于Qt Creator5)
- 设备管理系统源码
- 基于ACCESS的生产管理信息系统.mdb
- layui后台管理模板
- 联想扬天电脑用户手册
- 三星笔记本电源管理软件 v2.1.4.3 官方
- CAD中插入带坐标的正射影像——Inse
- 益和注册机
- ManageEngine_OpManager_12.3安装手册+管理员
- Python全栈学习笔记面向对象大作业:
- TCL-S1916 ,1924交换机管理程序
- 一个超简单的企业管理系统(带ACCE
- PowerBuilder*图书馆管理系统*需求分析
- Linux任务管理器
- 数据库课设:图书管理系统报告
- 用汇编实现的学生成绩档案管理系统
- 教室管理系统.rar
- 基于MVC模式的会员管理系统
- 学生信息管理系统源码
- about 论坛信息管理系统
- 合同管理系统的源代码(附数据库)
- 保险公司管理系统(前台界面)
- ps插件管家—有效管理插件
- Pb开发的酒店住宿管理系统
- ado数据库MFC图书管理系统vs2010
- 先进先出库存管理excel表格.rar
- 家校通
- 在线题库管理
- 村居人口信息管理系统
- 数据库VFP课程设计
评论
共有 条评论