📄 photoimagedata.html
字号:
equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> o)</PRE><DL><DD>True if the given object is a PhotoImageData object representing the same image.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</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></DL></DD></DL><HR><A NAME="getData(int, net.spy.photo.PhotoDimensions)"><!-- --></A><H3>getData</H3><PRE>public static <A HREF="../../../net/spy/photo/PhotoImageData.html">PhotoImageData</A> <B>getData</B>(int id, <A HREF="../../../net/spy/photo/PhotoDimensions.html">PhotoDimensions</A> maxDims) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></PRE><DL><DD>Get the data for the given ID and calculate the scaled image size down to fit within the provided dimensions.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></CODE></DL></DD></DL><HR><A NAME="getData(int)"><!-- --></A><H3>getData</H3><PRE>public static <A HREF="../../../net/spy/photo/PhotoImageData.html">PhotoImageData</A> <B>getData</B>(int id) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></PRE><DL><DD>Get the data for the given ID.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></CODE></DL></DD></DL><HR><A NAME="getKeywords()"><!-- --></A><H3>getKeywords</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getKeywords</B>()</PRE><DL><DD>Get the keywords for this photo.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDescr()"><!-- --></A><H3>getDescr</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getDescr</B>()</PRE><DL><DD>Get the description of this photo.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCatId()"><!-- --></A><H3>getCatId</H3><PRE>public int <B>getCatId</B>()</PRE><DL><DD>Get the category ID of this photo.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public int <B>getSize</B>()</PRE><DL><DD>Get the size (in bytes) of this photo.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDimensions()"><!-- --></A><H3>getDimensions</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoDimensions.html">PhotoDimensions</A> <B>getDimensions</B>()</PRE><DL><DD>Get the dimensions of this image.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTnDims()"><!-- --></A><H3>getTnDims</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoDimensions.html">PhotoDimensions</A> <B>getTnDims</B>()</PRE><DL><DD>Get the dimensions of this image's thumbnail.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getScaledDims()"><!-- --></A><H3>getScaledDims</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoDimensions.html">PhotoDimensions</A> <B>getScaledDims</B>()</PRE><DL><DD>Get the dimensions of this image scaled for viewing.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAddedBy()"><!-- --></A><H3>getAddedBy</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> <B>getAddedBy</B>()</PRE><DL><DD>Get the PhotoUser object representing the user who added this photo.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTimestamp()"><!-- --></A><H3>getTimestamp</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getTimestamp</B>()</PRE><DL><DD>Get the timestamp this photo was added (currently as a String until I sort out my JDBC driver problem).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getCatName()"><!-- --></A><H3>getCatName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getCatName</B>()</PRE><DL><DD>Get the name of the category containing this image.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTaken()"><!-- --></A><H3>getTaken</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getTaken</B>()</PRE><DL><DD>Get the date this photo was taken.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getId()"><!-- --></A><H3>getId</H3><PRE>public int <B>getId</B>()</PRE><DL><DD>Get the ID of this image.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setSearchId(int)"><!-- --></A><H3>setSearchId</H3><PRE>public void <B>setSearchId</B>(int searchId)</PRE><DL><DD>Set the search ID if this is used in a search result.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSearchId()"><!-- --></A><H3>getSearchId</H3><PRE>public int <B>getSearchId</B>()</PRE><DL><DD>Get the search result ID.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>-1 if this was not used in a search.</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=3 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> </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/PhotoImageData.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-all.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="../../../net/spy/photo/PhotoImage.html"><B>PREV CLASS</B></A> <A HREF="../../../net/spy/photo/PhotoImageHelper.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> <A HREF="PhotoImageData.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -