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

📄 matrix.html

📁 学习JAVA的很好的JAVA包和文档包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the width of the matrix.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#registerNatives()">registerNatives</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="height"><!-- --></A><H3>height</H3><PRE>protected int <B>height</B></PRE><DL></DL><HR><A NAME="width"><!-- --></A><H3>width</H3><PRE>protected int <B>width</B></PRE><DL></DL><HR><A NAME="rows"><!-- --></A><H3>rows</H3><PRE>protected <A HREF="../structure/Vector.html">Vector</A> <B>rows</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Matrix()"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>()</PRE><DL><DD>Construct an empty matrix.</DL><HR><A NAME="Matrix(int, int)"><!-- --></A><H3>Matrix</H3><PRE>public <B>Matrix</B>(int&nbsp;h,              int&nbsp;w)</PRE><DL><DD>Constructs a matrix such that all values are null.<DD><DL><DT><B>Parameters:</B><DD><CODE>h</CODE> - Height of the matrix.<DD><CODE>w</CODE> - Width of the matrix.</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="get(int, int)"><!-- --></A><H3>get</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>get</B>(int&nbsp;row,                  int&nbsp;col)</PRE><DL><DD>Fetch an element from the matrix.<DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - The row of the element<DD><CODE>col</CODE> - The column of the element<DT><B>Precondition:</B><DD>0 <= row < height(), 0 <= col < width()<br><DT><B>Postcondition:</B><DD>returns object at (row, col)<br><DT><B>Returns:</B><DD>Object located at matrix position (row, col)</DL></DD></DL><HR><A NAME="set(int, int, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(int&nbsp;row,                int&nbsp;col,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;value)</PRE><DL><DD>Change the value at location (row, col)<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The new Object reference (possibly null).<DD><CODE>row</CODE> - The row of the value to be changed.<DD><CODE>col</CODE> - The column of the value to be changed.<DT><B>Precondition:</B><DD>0 <= row < height(), 0 <= col < width()<br><DT><B>Postcondition:</B><DD>changes location (row, col) to value<br></DL></DD></DL><HR><A NAME="addRow(int)"><!-- --></A><H3>addRow</H3><PRE>public void <B>addRow</B>(int&nbsp;r)</PRE><DL><DD>Add a new row, whose index will be r.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The index of the  newly inserted row.<DT><B>Precondition:</B><DD>0 <= r < height()<br><DT><B>Postcondition:</B><DD>inserts row of null values to be row r<br></DL></DD></DL><HR><A NAME="addCol(int)"><!-- --></A><H3>addCol</H3><PRE>public void <B>addCol</B>(int&nbsp;c)</PRE><DL><DD>Add a new column, whose index will be c.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - The index of the newly inserted column.<DT><B>Precondition:</B><DD>0 <= c < width()<br><DT><B>Postcondition:</B><DD>inserts column of null values to be column c<br></DL></DD></DL><HR><A NAME="removeRow(int)"><!-- --></A><H3>removeRow</H3><PRE>public <A HREF="../structure/Vector.html">Vector</A> <B>removeRow</B>(int&nbsp;r)</PRE><DL><DD>Remove the row whose index is r. The row is returned as a vector.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The index of the to-be-removed row.<DT><B>Precondition:</B><DD>0 <= r < height()<br><DT><B>Postcondition:</B><DD>removes row r and returns it as a Vector<DT><B>Returns:</B><DD>A vector of values once in the row.</DL></DD></DL><HR><A NAME="removeCol(int)"><!-- --></A><H3>removeCol</H3><PRE>public <A HREF="../structure/Vector.html">Vector</A> <B>removeCol</B>(int&nbsp;c)</PRE><DL><DD>Remove a column, whose index is c.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - The index of the column to be removed.<DT><B>Precondition:</B><DD>0 <= c < width<br><DT><B>Postcondition:</B><DD>removes column c and returns it as a vector<br><DT><B>Returns:</B><DD>A vector of the values removed.</DL></DD></DL><HR><A NAME="width()"><!-- --></A><H3>width</H3><PRE>public int <B>width</B>()</PRE><DL><DD>Return the width of the matrix.<DD><DL><DT><B>Postcondition:</B><DD>returns number of columns in matrix<br><DT><B>Returns:</B><DD>The number of columns in the matrix.</DL></DD></DL><HR><A NAME="height()"><!-- --></A><H3>height</H3><PRE>public int <B>height</B>()</PRE><DL><DD>Return the height of the matrix.<DD><DL><DT><B>Postcondition:</B><DD>returns number of rows in matrix<br><DT><B>Returns:</B><DD>The number of rows in the matrix.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Construct a string representation of the matrix.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>returns string description of matrix.<br><DT><B>Returns:</B><DD>A string, representing the matrix.</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="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="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-all.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><a href=../copyright.html target=_top>&copy; 1998-2002 McGraw-Hill</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../structure/MapList.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../structure/NaturalComparator.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="Matrix.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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