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

📄 databuffershort.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DataBufferShort(int)"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(int&nbsp;size)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with a single bank and the specified size.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - The size of the <CODE>DataBuffer</CODE>.</DL></DD></DL><HR><A NAME="DataBufferShort(int, int)"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(int&nbsp;size,                       int&nbsp;numBanks)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with the specified number of banks all of which are the specified size.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - The size of the banks in the <CODE>DataBuffer</CODE>.<DD><CODE>numBanks</CODE> - The number of banks in the a<CODE>DataBuffer</CODE>.</DL></DD></DL><HR><A NAME="DataBufferShort(short[], int)"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(short[]&nbsp;dataArray,                       int&nbsp;size)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with a single bank using the specified array. Only the first <CODE>size</CODE> elements should be used by accessors of this <CODE>DataBuffer</CODE>.  <CODE>dataArray</CODE> must be large enough to hold <CODE>size</CODE> elements.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataArray</CODE> - The short array for the <CODE>DataBuffer</CODE>.<DD><CODE>size</CODE> - The size of the <CODE>DataBuffer</CODE> bank.</DL></DD></DL><HR><A NAME="DataBufferShort(short[], int, int)"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(short[]&nbsp;dataArray,                       int&nbsp;size,                       int&nbsp;offset)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with a single bank using the specified array, size, and offset.  <CODE>dataArray</CODE> must have at least <CODE>offset</CODE> + <CODE>size</CODE> elements.  Only elements <CODE>offset</CODE>  through <CODE>offset</CODE> + <CODE>size</CODE> - 1 should be used by accessors of this <CODE>DataBuffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataArray</CODE> - The short array for the <CODE>DataBuffer</CODE>.<DD><CODE>size</CODE> - The size of the <CODE>DataBuffer</CODE> bank.<DD><CODE>offset</CODE> - The offset into the <CODE>dataArray</CODE>.</DL></DD></DL><HR><A NAME="DataBufferShort(short[][], int)"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(short[][]&nbsp;dataArray,                       int&nbsp;size)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with the specified arrays. The number of banks will be equal to <CODE>dataArray.length</CODE>. Only the first <CODE>size</CODE> elements of each array should be used by accessors of this <CODE>DataBuffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataArray</CODE> - The short arrays for the <CODE>DataBuffer</CODE>.<DD><CODE>size</CODE> - The size of the banks in the <CODE>DataBuffer</CODE>.</DL></DD></DL><HR><A NAME="DataBufferShort(short[][], int, int[])"><!-- --></A><H3>DataBufferShort</H3><PRE>public <B>DataBufferShort</B>(short[][]&nbsp;dataArray,                       int&nbsp;size,                       int[]&nbsp;offsets)</PRE><DL><DD>Constructs a short-based <CODE>DataBuffer</CODE> with the specified arrays, size, and offsets. The number of banks is equal to <CODE>dataArray.length</CODE>.  Each array must be at least as large as <CODE>size</CODE> + the corresponding offset.   There must be an entry in the offset array for each <CODE>dataArray</CODE> entry.  For each bank, only elements <CODE>offset</CODE> through  <CODE>offset</CODE> + <CODE>size</CODE> - 1 should be used by accessors of this <CODE>DataBuffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataArray</CODE> - The short arrays for the <CODE>DataBuffer</CODE>.<DD><CODE>size</CODE> - The size of the banks in the <CODE>DataBuffer</CODE>.<DD><CODE>offsets</CODE> - The offsets into each array.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public short[] <B>getData</B>()</PRE><DL><DD>Returns the default (first) byte data array.<DD><DL><DT><B>Returns:</B><DD>The first short data array.</DL></DD></DL><HR><A NAME="getData(int)"><!-- --></A><H3>getData</H3><PRE>public short[] <B>getData</B>(int&nbsp;bank)</PRE><DL><DD>Returns the data array for the specified bank.<DD><DL><DT><B>Parameters:</B><DD><CODE>bank</CODE> - The bank whose data array you want to get.<DT><B>Returns:</B><DD>The data array for the specified bank.</DL></DD></DL><HR><A NAME="getBankData()"><!-- --></A><H3>getBankData</H3><PRE>public short[][] <B>getBankData</B>()</PRE><DL><DD>Returns the data arrays for all banks.<DD><DL><DT><B>Returns:</B><DD>All of the data arrays.</DL></DD></DL><HR><A NAME="getElem(int)"><!-- --></A><H3>getElem</H3><PRE>public int <B>getElem</B>(int&nbsp;i)</PRE><DL><DD>Returns the requested data array element from the first (default) bank.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/DataBuffer.html#getElem(int)">getElem</A></CODE> in class <CODE><A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The data array element you want to get.<DT><B>Returns:</B><DD>The requested data array element as an integer.</DL></DD></DL><HR><A NAME="getElem(int, int)"><!-- --></A><H3>getElem</H3><PRE>public int <B>getElem</B>(int&nbsp;bank,                   int&nbsp;i)</PRE><DL><DD>Returns the requested data array element from the specified bank<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/DataBuffer.html#getElem(int, int)">getElem</A></CODE> in class <CODE><A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bank</CODE> - The bank from which you want to get a data array element.<DD><CODE>i</CODE> - The data array element you want to get.<DT><B>Returns:</B><DD>The requested data array element as an integer.</DL></DD></DL><HR><A NAME="setElem(int, int)"><!-- --></A><H3>setElem</H3><PRE>public void <B>setElem</B>(int&nbsp;i,                    int&nbsp;val)</PRE><DL><DD>Sets the requested data array element in the first (default) bank to the specified value.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/DataBuffer.html#setElem(int, int)">setElem</A></CODE> in class <CODE><A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The data array element you want to set.<DD><CODE>val</CODE> - The integer value to which you want to set the data array element.</DL></DD></DL><HR><A NAME="setElem(int, int, int)"><!-- --></A><H3>setElem</H3><PRE>public void <B>setElem</B>(int&nbsp;bank,                    int&nbsp;i,                    int&nbsp;val)</PRE><DL><DD>Sets the requested data array element in the specified bank from the given integer.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/image/DataBuffer.html#setElem(int, int, int)">setElem</A></CODE> in class <CODE><A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bank</CODE> - The bank in which you want to set the data array element.<DD><CODE>i</CODE> - The data array element you want to set.<DD><CODE>val</CODE> - The integer value to which you want to set the specified data array element.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/DataBufferShort.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/image/DataBufferInt.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/image/DataBufferUShort.html"><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="DataBufferShort.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.awt.image.DataBuffer">FIELD</A>&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><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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