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

📄 row.html

📁 Java开发图文混排的编辑器文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:

<A NAME="Row(jexi.core.Paragraph, int, int)"><!-- --></A><H3>
Row</H3>
<PRE>
public <B>Row</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;paragraph,           int&nbsp;startIndex,           int&nbsp;endIndex)</PRE>
<DL>
<DD>Create a new Row object specified by the parameters.
<P>
<DT><B>Parameters:</B><DD><CODE>paragraph</CODE> - The parent paragraph it belongs to.<DD><CODE>startIndex</CODE> - The start index of the child glyph.<DD><CODE>endIndex</CODE> - The end index of the child glyph.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="add(int, jexi.core.Glyph)"><!-- --></A><H3>
add</H3>
<PRE>
public void <B>add</B>(int&nbsp;index,                <A HREF="../../jexi/core/Glyph.html" title="interface in jexi.core">Glyph</A>&nbsp;g)</PRE>
<DL>
<DD>Physical glyph that used to display do NOT support add(), remove() operations.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="remove(jexi.core.Glyph)"><!-- --></A><H3>
remove</H3>
<PRE>
public void <B>remove</B>(<A HREF="../../jexi/core/Glyph.html" title="interface in jexi.core">Glyph</A>&nbsp;g)</PRE>
<DL>
<DD>Physical glyph that used to display do NOT support add(), remove() operations.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getParagraph()"><!-- --></A><H3>
getParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>getParagraph</B>()</PRE>
<DL>
<DD>Get the paragraph this row belongs to.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Paragraph that this row belongs to.</DL>
</DD>
</DL>
<HR>

<A NAME="child(int)"><!-- --></A><H3>
child</H3>
<PRE>
public <A HREF="../../jexi/core/Glyph.html" title="interface in jexi.core">Glyph</A> <B>child</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the specified glyph in its child list. <br>  <b>NOTE</b>: The Row object doesn't store any glyph object  by itself. Instead it can access the children it contains  by member variable "paragraph" indirectly.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the glyph.<DT><B>Returns:</B><DD>The specified glyph.</DL>
</DD>
</DL>
<HR>

<A NAME="isFirst()"><!-- --></A><H3>
isFirst</H3>
<PRE>
public boolean <B>isFirst</B>()</PRE>
<DL>
<DD>To test the row is the first row in the paragraph.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if this row is the first row.</DL>
</DD>
</DL>
<HR>

<A NAME="isLast()"><!-- --></A><H3>
isLast</H3>
<PRE>
public boolean <B>isLast</B>()</PRE>
<DL>
<DD>To test the row is the last row in the paragraph.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if this row is the last row.</DL>
</DD>
</DL>
<HR>

<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public int <B>size</B>()</PRE>
<DL>
<DD>Get the count of the child glyphs.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The count of its children.</DL>
</DD>
</DL>
<HR>

<A NAME="height()"><!-- --></A><H3>
height</H3>
<PRE>
public int <B>height</B>()</PRE>
<DL>
<DD>A Row's height is important to format page. so we should  cache the height.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../jexi/core/Glyph.html#height()"><CODE>Glyph.height()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="width()"><!-- --></A><H3>
width</H3>
<PRE>
public int <B>width</B>()</PRE>
<DL>
<DD>Get the width of the row. The width of the first row may be  differ the other rows, so we pass the parameter 'this' to  let the paragraph to detect if the row is the first row.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../jexi/core/Glyph.html#width()"><CODE>Glyph.width()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="contains(int)"><!-- --></A><H3>
contains</H3>
<PRE>
public boolean <B>contains</B>(int&nbsp;index)</PRE>
<DL>
<DD>If this row contains the specified glyph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The glyph index.<DT><B>Returns:</B><DD>True if it contains.</DL>
</DD>
</DL>
<HR>

<A NAME="draw(jexi.ui.Graphics, int, int)"><!-- --></A><H3>
draw</H3>
<PRE>
public void <B>draw</B>(<A HREF="../../jexi/ui/Graphics.html" title="interface in jexi.ui">Graphics</A>&nbsp;g,                 int&nbsp;selStart,                 int&nbsp;selEnd)</PRE>
<DL>
<DD>Draw a row of glyphs.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getStartIndex()"><!-- --></A><H3>
getStartIndex</H3>
<PRE>
public int <B>getStartIndex</B>()</PRE>
<DL>
<DD>Get the start index of the row.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The start index.</DL>
</DD>
</DL>
<HR>

<A NAME="getEndIndex()"><!-- --></A><H3>
getEndIndex</H3>
<PRE>
public int <B>getEndIndex</B>()</PRE>
<DL>
<DD>Get the end index of the row.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The end index.</DL>
</DD>
</DL>
<HR>

<A NAME="debug()"><!-- --></A><H3>
debug</H3>
<PRE>
public void <B>debug</B>()</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>&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/Row.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/core/Position.html" title="class in jexi.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../jexi/core/Selection.html" title="class in jexi.core"><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>  &nbsp;
&nbsp;<A HREF="Row.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 + -