📄 view.html
字号:
<DD>Destroy the view and release any resources it used.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="update()"><!-- --></A><H3>
update</H3>
<PRE>
public void <B>update</B>()</PRE>
<DL>
<DD>Update view. Called by Frame or Document.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../jexi/core/Document.html" title="class in jexi.core">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Get the document.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The document object.</DL>
</DD>
</DL>
<HR>
<A NAME="setDocument(jexi.core.Document)"><!-- --></A><H3>
setDocument</H3>
<PRE>
public void <B>setDocument</B>(<A HREF="../../jexi/core/Document.html" title="class in jexi.core">Document</A> document)</PRE>
<DL>
<DD>Set the document. Called by Frame.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>document</CODE> - The document object.</DL>
</DD>
</DL>
<HR>
<A NAME="getWidth()"><!-- --></A><H3>
getWidth</H3>
<PRE>
public int <B>getWidth</B>()</PRE>
<DL>
<DD>Get the width of the view.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The width of the view.</DL>
</DD>
</DL>
<HR>
<A NAME="getHeight()"><!-- --></A><H3>
getHeight</H3>
<PRE>
public int <B>getHeight</B>()</PRE>
<DL>
<DD>Get the height of the view.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The height of the view.</DL>
</DD>
</DL>
<HR>
<A NAME="onSizeChanged(int, int)"><!-- --></A><H3>
onSizeChanged</H3>
<PRE>
public void <B>onSizeChanged</B>(int width, int height)</PRE>
<DL>
<DD>Set the new size when size changed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>width</CODE> - The new width of the view.<DD><CODE>height</CODE> - The new height of the view.</DL>
</DD>
</DL>
<HR>
<A NAME="getOffsetX()"><!-- --></A><H3>
getOffsetX</H3>
<PRE>
public int <B>getOffsetX</B>()</PRE>
<DL>
<DD>Get the offset (x, y) of the document.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The offset of x.</DL>
</DD>
</DL>
<HR>
<A NAME="getOffsetY()"><!-- --></A><H3>
getOffsetY</H3>
<PRE>
public int <B>getOffsetY</B>()</PRE>
<DL>
<DD>Get the offset (x, y) of the document.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The offset of y.</DL>
</DD>
</DL>
<HR>
<A NAME="setOffsetX(int)"><!-- --></A><H3>
setOffsetX</H3>
<PRE>
public void <B>setOffsetX</B>(int x)</PRE>
<DL>
<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 y)</PRE>
<DL>
<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="onDocumentSizeChanged()"><!-- --></A><H3>
onDocumentSizeChanged</H3>
<PRE>
public void <B>onDocumentSizeChanged</B>()</PRE>
<DL>
<DD>When document's size changed (Page added or removed, or Page size changed), document will invoke this method to notify view to adjust it's data. Then view's update() will be called later on.
<P>
<DD><DL>
</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 fontName, java.lang.Integer fontSize, java.lang.Boolean bold, java.lang.Boolean italic, java.lang.Boolean underlined, <A HREF="../../jexi/ui/Color.html" title="interface in jexi.ui">Color</A> color)</PRE>
<DL>
<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="onSetCaret(int, int, int)"><!-- --></A><H3>
onSetCaret</H3>
<PRE>
public void <B>onSetCaret</B>(int x, int y, int height)</PRE>
<DL>
<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="ensureCaretVisible()"><!-- --></A><H3>
ensureCaretVisible</H3>
<PRE>
public void <B>ensureCaretVisible</B>()</PRE>
<DL>
<DD>To ensure the caret is visible.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="onKeyPressed(char)"><!-- --></A><H3>
onKeyPressed</H3>
<PRE>
public void <B>onKeyPressed</B>(char c)</PRE>
<DL>
<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 keycode, boolean shift, boolean ctrl, boolean alt)</PRE>
<DL>
<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="onInsertPictureFromFile(java.lang.String)"><!-- --></A><H3>
onInsertPictureFromFile</H3>
<PRE>
public void <B>onInsertPictureFromFile</B>(java.lang.String filename)</PRE>
<DL>
<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>
<HR>
<A NAME="onMouseMove(int, int)"><!-- --></A><H3>
onMouseMove</H3>
<PRE>
public void <B>onMouseMove</B>(int x, int y)</PRE>
<DL>
<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 x, int 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 x, int 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 x, int 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 x, int 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 x, int y)</PRE>
<DL>
<DD><DL>
</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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/View.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../jexi/ui/TextView.html" title="class in jexi.ui"><B>PREV CLASS</B></A>
<A HREF="../../jexi/ui/ViewDecorator.html" title="class in jexi.ui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="View.html" target="_top"><B>NO FRAMES</B></A>
<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: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <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 + -