热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.eclipse.swt.graphics.TextLayout.freeRuns()方法的使用及代码示例

本文整理了Java中org.eclipse.swt.graphics.TextLayout.freeRuns()方法的一些代码示例,展示了TextLayout.freeRuns()的具体用法。这些代码

本文整理了Java中org.eclipse.swt.graphics.TextLayout.freeRuns()方法的一些代码示例,展示了TextLayout.freeRuns()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextLayout.freeRuns()方法的具体详情如下:
包路径:org.eclipse.swt.graphics.TextLayout
类名称:TextLayout
方法名:freeRuns

TextLayout.freeRuns介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setIndentInPixels (int indent) {
if (indent <0) return;
if (this.indent == indent) return;
freeRuns();
this.indent = indent;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setWrapIndentInPixels (int wrapIndent) {
if (wrapIndent <0) return;
if (this.wrapIndent == wrapIndent) return;
freeRuns();
this.wrapIndent = wrapIndent;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setTabsInPixels (int[] tabs) {
if (Arrays.equals (this.tabs, tabs)) return;
freeRuns();
this.tabs = tabs;
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void destroy() {
freeRuns();
if (textStorage != null) textStorage.release();
textStorage = null;
layoutManager = null;
textCOntainer= null;
fOnt= null;
text = null;
styles = null;
segments = null;
segmentsChars = null;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void setWidthInPixels (int width) {
if (wrapWidth == width) return;
freeRuns();
wrapWidth = width;
setWidth();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void setWidthInPixels (int width) {
if (wrapWidth == width) return;
freeRuns();
wrapWidth = width;
setWidth();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void setWidthInPixels (int width) {
if (wrapWidth == width) return;
freeRuns();
wrapWidth = width;
setWidth();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setWidthInPixels (int width) {
if (width <-1 || width == 0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (this.wrapWidth == width) return;
freeRuns();
this.wrapWidth = width;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
* Sets the justification of the receiver. Note that the receiver's
* width must be set in order to use justification.
*
* @param justify new justify
*
* @exception SWTException


    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*
* @since 3.2
*/
public void setJustify (boolean justify) {
checkLayout();
if (this.justify == justify) return;
freeRuns();
this.justify = justify;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
* Sets the orientation of the receiver, which must be one
* of SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT.
*
* @param orientation new orientation style
*
* @exception SWTException


    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*/
public void setOrientation (int orientation) {
checkLayout();
int mask = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;
orientation &= mask;
if (orientation == 0) return;
if ((orientation & SWT.LEFT_TO_RIGHT) != 0) orientation = SWT.LEFT_TO_RIGHT;
if (this.orientation == orientation) return;
textDirection = this.orientation = orientation;
freeRuns();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
void destroy() {
fOnt= null;
text = null;
styles = null;
freeRuns();
segments = null;
segmentsChars = null;
if (layout != 0) OS.g_object_unref(layout);
layout = 0;
if (context != 0) OS.g_object_unref(context);
cOntext= 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
void destroy() {
fOnt= null;
text = null;
styles = null;
freeRuns();
segments = null;
segmentsChars = null;
if (layout != 0) OS.g_object_unref(layout);
layout = 0;
if (context != 0) OS.g_object_unref(context);
cOntext= 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
void destroy() {
fOnt= null;
text = null;
styles = null;
freeRuns();
segments = null;
segmentsChars = null;
if (layout != 0) OS.g_object_unref(layout);
layout = 0;
if (context != 0) OS.g_object_unref(context);
cOntext= 0;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void destroy () {
freeRuns();
fOnt= null;
text = null;
segmentsText = null;
tabs = null;
styles = null;
runs = null;
lineOffset = null;
lineY = null;
lineWidth = null;
segments = null;
segmentsChars = null;
if (mLangFontLink2 != 0) {
/* Release() */
OS.VtblCall(2, mLangFontLink2);
mLangFontLink2 = 0;
}
OS.OleUninitialize();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
* Sets the line spacing of the receiver. The line spacing
* is the space left between lines.
*
* @param spacing the new line spacing
*
* @exception IllegalArgumentException


    *
  • ERROR_INVALID_ARGUMENT - if the spacing is negative

  • *

* @exception SWTException

    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*/
public void setSpacing (int spacing) {
checkLayout();
if (spacing <0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (this.lineSpacingInPoints == spacing) return;
freeRuns();
this.lineSpacingInPoints = spacing;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
* Sets the ascent of the receiver. The ascent is distance in pixels
* from the baseline to the top of the line and it is applied to all
* lines. The default value is -1 which means that the
* ascent is calculated from the line fonts.
*
* @param ascent the new ascent
*
* @exception IllegalArgumentException


    *
  • ERROR_INVALID_ARGUMENT - if the ascent is less than -1

  • *

* @exception SWTException

    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*
* @see #setDescent(int)
* @see #getLineMetrics(int)
*/
public void setAscent (int ascent) {
checkLayout();
if (ascent <-1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (this.ascentInPoints == ascent) return;
freeRuns();
this.ascentInPoints = ascent;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
* Sets the descent of the receiver. The descent is distance in pixels
* from the baseline to the bottom of the line and it is applied to all
* lines. The default value is -1 which means that the
* descent is calculated from the line fonts.
*
* @param descent the new descent
*
* @exception IllegalArgumentException


    *
  • ERROR_INVALID_ARGUMENT - if the descent is less than -1

  • *

* @exception SWTException

    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*
* @see #setAscent(int)
* @see #getLineMetrics(int)
*/
public void setDescent (int descent) {
checkLayout();
if (descent <-1) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (this.descentInPoints == descent) return;
freeRuns();
this.descentInPoints = descent;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
* Sets the default font which will be used by the receiver
* to draw and measure text. If the
* argument is null, then a default font appropriate
* for the platform will be used instead. Note that a text
* style can override the default font.
*
* @param font the new font for the receiver, or null to indicate a default font
*
* @exception IllegalArgumentException


    *
  • ERROR_INVALID_ARGUMENT - if the font has been disposed

  • *

* @exception SWTException

    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*/
public void setFont (Font font) {
checkLayout();
if (font != null && font.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
Font oldFOnt= this.font;
if (oldFOnt== font) return;
this.fOnt= font;
if (oldFont != null && oldFont.equals(font)) return;
freeRuns();
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

/**
* Sets the wrap indent of the receiver. This indent is applied to all lines
* in the paragraph except the first line.
*
* @param wrapIndent new wrap indent
*
* @exception SWTException


    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*
* @see #setIndent(int)
*
* @since 3.6
*/
public void setWrapIndent (int wrapIndent) {
checkLayout ();
if (wrapIndent <0) return;
if (this.wrapIndent == wrapIndent) return;
NSAutoreleasePool pool = null;
if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
try {
freeRuns();
this.wrapIndent = wrapIndent;
} finally {
if (pool != null) pool.release();
}
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

/**
* Sets the line spacing of the receiver. The line spacing
* is the space left between lines.
*
* @param spacing the new line spacing
*
* @exception IllegalArgumentException


    *
  • ERROR_INVALID_ARGUMENT - if the spacing is negative

  • *

* @exception SWTException

    *
  • ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed

  • *

*/
public void setSpacing (int spacing) {
checkLayout();
if (spacing <0) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
if (this.spacing == spacing) return;
NSAutoreleasePool pool = null;
if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
try {
freeRuns();
this.spacing = spacing;
} finally {
if (pool != null) pool.release();
}
}

推荐阅读
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • Iamtryingtomakeaclassthatwillreadatextfileofnamesintoanarray,thenreturnthatarra ... [详细]
  • 向QTextEdit拖放文件的方法及实现步骤
    本文介绍了在使用QTextEdit时如何实现拖放文件的功能,包括相关的方法和实现步骤。通过重写dragEnterEvent和dropEvent函数,并结合QMimeData和QUrl等类,可以轻松实现向QTextEdit拖放文件的功能。详细的代码实现和说明可以参考本文提供的示例代码。 ... [详细]
  • Linux重启网络命令实例及关机和重启示例教程
    本文介绍了Linux系统中重启网络命令的实例,以及使用不同方式关机和重启系统的示例教程。包括使用图形界面和控制台访问系统的方法,以及使用shutdown命令进行系统关机和重启的句法和用法。 ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • 自动轮播,反转播放的ViewPagerAdapter的使用方法和效果展示
    本文介绍了如何使用自动轮播、反转播放的ViewPagerAdapter,并展示了其效果。该ViewPagerAdapter支持无限循环、触摸暂停、切换缩放等功能。同时提供了使用GIF.gif的示例和github地址。通过LoopFragmentPagerAdapter类的getActualCount、getActualItem和getActualPagerTitle方法可以实现自定义的循环效果和标题展示。 ... [详细]
  • CF:3D City Model(小思维)问题解析和代码实现
    本文通过解析CF:3D City Model问题,介绍了问题的背景和要求,并给出了相应的代码实现。该问题涉及到在一个矩形的网格上建造城市的情景,每个网格单元可以作为建筑的基础,建筑由多个立方体叠加而成。文章详细讲解了问题的解决思路,并给出了相应的代码实现供读者参考。 ... [详细]
  • CEPH LIO iSCSI Gateway及其使用参考文档
    本文介绍了CEPH LIO iSCSI Gateway以及使用该网关的参考文档,包括Ceph Block Device、CEPH ISCSI GATEWAY、USING AN ISCSI GATEWAY等。同时提供了多个参考链接,详细介绍了CEPH LIO iSCSI Gateway的配置和使用方法。 ... [详细]
  • Apache Shiro 身份验证绕过漏洞 (CVE202011989) 详细解析及防范措施
    本文详细解析了Apache Shiro 身份验证绕过漏洞 (CVE202011989) 的原理和影响,并提供了相应的防范措施。Apache Shiro 是一个强大且易用的Java安全框架,常用于执行身份验证、授权、密码和会话管理。在Apache Shiro 1.5.3之前的版本中,与Spring控制器一起使用时,存在特制请求可能导致身份验证绕过的漏洞。本文还介绍了该漏洞的具体细节,并给出了防范该漏洞的建议措施。 ... [详细]
  • 在Windows10系统上使用VMware创建CentOS虚拟机的详细步骤教程
    本文详细介绍了在Windows10系统上使用VMware创建CentOS虚拟机的步骤,包括准备条件、安装VMware、下载CentOS ISO文件、创建虚拟机并进行自定义配置、设置虚拟机的ISO与网络、进行安装和配置等。通过本文的指导,读者可以轻松地创建自己的CentOS虚拟机并进行相应的配置和操作。 ... [详细]
  • PeopleSoft安装镜像版本及导入语言包的方法
    本文介绍了PeopleSoft安装镜像的两个版本,分别是VirtualBox虚拟机版本和NativeOS版本,并详细说明了导入语言包的方法。对于Windows版本,可以通过psdmt.exe登录进入,并使用datamover脚本导入语言包。对于Linux版本,同样可以使用命令行方式执行datamover脚本导入语言包。导入语言包后,可以实现多种语言的登录。参考文献提供了相关链接以供深入了解。 ... [详细]
  • 如何使用PLEX播放组播、抓取信号源以及设置路由器
    本文介绍了如何使用PLEX播放组播、抓取信号源以及设置路由器。通过使用xTeve软件和M3U源,用户可以在PLEX上实现直播功能,并且可以自动匹配EPG信息和定时录制节目。同时,本文还提供了从华为itv盒子提取组播地址的方法以及如何在ASUS固件路由器上设置IPTV。在使用PLEX之前,建议先使用VLC测试是否可以正常播放UDPXY转发的iptv流。最后,本文还介绍了docker版xTeve的设置方法。 ... [详细]
  • jsappsugar,基于,js,语法,定义 ... [详细]
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • PG12新增的VACUUM命令的SKIP_LOCKED选项
    PG12版本的VACUUM命令新增了SKIP_LOCKED选项,该选项使得vacuum命令在遇到被lock住的table时可以跳过并被视为成功执行。之前的版本中,vacuum命令会一直处于等待状态。本文还提到了PostgreSQL 12.1版本的相关信息。 ... [详细]
author-avatar
杨barkema_252
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有