本文整理了Java中org.eclipse.swt.graphics.RGB.toString
方法的一些代码示例,展示了RGB.toString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RGB.toString
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.RGB
类名称:RGB
方法名:toString
[英]Returns a string containing a concise, human-readable description of the receiver.
[中]
代码示例来源:origin: org.apache.directory.studio/ldapbrowser.common
/**
* Use this method to get SWT colors. A ColorRegistry is used to manage
* the RGB->Color mapping.
* <p>
* Note: Don't dispose the returned color. It is disposed automatically
* when the plugin is stopped.
*
* @param rgb
* the rgb color data
* @return The SWT Color
*/
public Color getColor( RGB rgb )
{
if ( !colorRegistry.hasValueFor( rgb.toString() ) )
{
colorRegistry.put( rgb.toString(), rgb );
}
return colorRegistry.get( rgb.toString() );
}
代码示例来源:origin: org.apache.directory.studio/ldifeditor
/**
* Use this method to get SWT colors. A ColorRegistry is used to manage
* the RGB->Color mapping.
* <p>
* Note: Don't dispose the returned color. It is disposed automatically
* when the plugin is stopped.
*
* @param rgb
* the rgb color data
* @return The SWT Color
*/
public Color getColor( RGB rgb )
{
if ( !colorRegistry.hasValueFor( rgb.toString() ) )
{
colorRegistry.put( rgb.toString(), rgb );
}
return colorRegistry.get( rgb.toString() );
}
内容来源于网络,如有侵权,请联系作者删除!