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

📄 swttextview.html

📁 Java开发图文混排的编辑器文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
setOffsetX</H3>
<PRE>
public void <B>setOffsetX</B>(int&nbsp;x)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>Set the new offset of x.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The offset of x.</DL>
</DD>
</DL>
<HR>

<A NAME="setOffsetY(int)"><!-- --></A><H3>
setOffsetY</H3>
<PRE>
public void <B>setOffsetY</B>(int&nbsp;y)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>Set the new offset of y.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>y</CODE> - The offset of y.</DL>
</DD>
</DL>
<HR>

<A NAME="transX(int)"><!-- --></A><H3>
transX</H3>
<PRE>
public int <B>transX</B>(int&nbsp;x)</PRE>
<DL>
<DD>Translate the point of view to point of document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The point x.<DT><B>Returns:</B><DD>The point of document.</DL>
</DD>
</DL>
<HR>

<A NAME="transY(int)"><!-- --></A><H3>
transY</H3>
<PRE>
public int <B>transY</B>(int&nbsp;y)</PRE>
<DL>
<DD>Translate the point of view to point of document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>y</CODE> - The point y.<DT><B>Returns:</B><DD>The point of document.</DL>
</DD>
</DL>
<HR>

<A NAME="onMouseMove(int, int)"><!-- --></A><H3>
onMouseMove</H3>
<PRE>
public void <B>onMouseMove</B>(int&nbsp;x,                        int&nbsp;y)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>The mouse move event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - Point x.<DD><CODE>y</CODE> - Point y.</DL>
</DD>
</DL>
<HR>

<A NAME="onLButtonDown(int, int)"><!-- --></A><H3>
onLButtonDown</H3>
<PRE>
public void <B>onLButtonDown</B>(int&nbsp;x,                          int&nbsp;y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="onLButtonUp(int, int)"><!-- --></A><H3>
onLButtonUp</H3>
<PRE>
public void <B>onLButtonUp</B>(int&nbsp;x,                        int&nbsp;y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="onRButtonDown(int, int)"><!-- --></A><H3>
onRButtonDown</H3>
<PRE>
public void <B>onRButtonDown</B>(int&nbsp;x,                          int&nbsp;y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="onRButtonUp(int, int)"><!-- --></A><H3>
onRButtonUp</H3>
<PRE>
public void <B>onRButtonUp</B>(int&nbsp;x,                        int&nbsp;y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="onLButtonDblClick(int, int)"><!-- --></A><H3>
onLButtonDblClick</H3>
<PRE>
public void <B>onLButtonDblClick</B>(int&nbsp;x,                              int&nbsp;y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="onSetCaret(int, int, int)"><!-- --></A><H3>
onSetCaret</H3>
<PRE>
public void <B>onSetCaret</B>(int&nbsp;x,                       int&nbsp;y,                       int&nbsp;height)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>Caret2 must reset to the new point with new height.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The point x.<DD><CODE>y</CODE> - The point y.<DD><CODE>height</CODE> - The height of the caret.</DL>
</DD>
</DL>
<HR>

<A NAME="onKeyPressed(char)"><!-- --></A><H3>
onKeyPressed</H3>
<PRE>
public void <B>onKeyPressed</B>(char&nbsp;c)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>User pressed a key that can be displayed. <br> <b>NOTE</b>: This event will not be triggered if function keys  are pressed such as "Ctrl+?", "F1-F12", "Home", etc.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - The char value represent the key.</DL>
</DD>
</DL>
<HR>

<A NAME="onFunctionKeyPressed(int, boolean, boolean, boolean)"><!-- --></A><H3>
onFunctionKeyPressed</H3>
<PRE>
public void <B>onFunctionKeyPressed</B>(int&nbsp;keycode,                                 boolean&nbsp;shift,                                 boolean&nbsp;ctrl,                                 boolean&nbsp;alt)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>User pressed a function key such as "Enter", "Right",  "F1", "Home", etc.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>keycode</CODE> - The keycode.<DD><CODE>shift</CODE> - The shift key is pressed or not.<DD><CODE>ctrl</CODE> - The ctrl key is pressed or not.<DD><CODE>alt</CODE> - The alt key is pressed or not.</DL>
</DD>
</DL>
<HR>

<A NAME="onFormatChanged(java.lang.String, java.lang.Integer, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, jexi.ui.Color)"><!-- --></A><H3>
onFormatChanged</H3>
<PRE>
public void <B>onFormatChanged</B>(java.lang.String&nbsp;fontName,                            java.lang.Integer&nbsp;fontSize,                            java.lang.Boolean&nbsp;bold,                            java.lang.Boolean&nbsp;italic,                            java.lang.Boolean&nbsp;underlined,                            <A HREF="../../../jexi/ui/Color.html" title="interface in jexi.ui">Color</A>&nbsp;color)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>When user changed the font name of the selected text.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fontName</CODE> - The font name, or null if ignore.<DD><CODE>fontSize</CODE> - The font size, or null if ignore.<DD><CODE>bold</CODE> - The bold attribute, or null if ignore.<DD><CODE>italic</CODE> - The italic attribute, or null if ignore.<DD><CODE>underlined</CODE> - The underlined attribute, or null if ignore.<DD><CODE>color</CODE> - The color, or null if ignore.</DL>
</DD>
</DL>
<HR>

<A NAME="onInsertPictureFromFile(java.lang.String)"><!-- --></A><H3>
onInsertPictureFromFile</H3>
<PRE>
public void <B>onInsertPictureFromFile</B>(java.lang.String&nbsp;filename)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../jexi/ui/View.html" title="interface in jexi.ui">View</A></CODE></B></DD>
<DD>User want to insert a picture from file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - The picture file.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SWTTextView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../jexi/ui/swt/SWTScrollableViewDecorator.html" title="class in jexi.ui.swt"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SWTTextView.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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