📄 palettefactory.html
字号:
<P><DD><DL><DT><B>Returns:</B><DD>The list of available palette name, or if this method is unable to fetch this information.</DL></DD></DL><HR><A NAME="getColors(java.lang.String)"><!-- --></A><H3>getColors</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>[] <B>getColors</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Load colors from a definition file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The palette's name to load. This name doesn't need to contains a path or an extension. Path and extension are set according value specified at construction time.<DT><B>Returns:</B><DD>The set of colors, or if the set was not found.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs during reading.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/IIOException.html" title="class or interface in javax.imageio">IIOException</A></CODE> - if an error occurs during parsing.</DL></DD></DL><HR><A NAME="getColors(java.net.URL)"><!-- --></A><H3>getColors</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html" title="class or interface in java.awt">Color</A>[] <B>getColors</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/net/URL.html" title="class or interface in java.net">URL</A> url) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Deprecated.</B> <I>This method should not be defined here since is all about name relative to a directory specified at construction time. If a user wants the functionality provided by this method, he should consider creating a new instance of .</I><P><DD>Load colors from an URL.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The palette's URL.<DT><B>Returns:</B><DD>The set of colors, or if the set was not found.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs during reading.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/IIOException.html" title="class or interface in javax.imageio">IIOException</A></CODE> - if an error occurs during parsing.</DL></DD></DL><HR><A NAME="getIndexColorModel(java.lang.String)"><!-- --></A><H3>getIndexColorModel</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">IndexColorModel</A> <B>getIndexColorModel</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Load an index color model from a definition file. The returned model will use index from 0 to 255 inclusive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The palette's name to load. This name doesn't need to contains a path or an extension. Path and extension are set according value specified at construction time.<DT><B>Returns:</B><DD>The index color model, or if the palettes was not found.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs during reading.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/IIOException.html" title="class or interface in javax.imageio">IIOException</A></CODE> - if an error occurs during parsing.</DL></DD></DL><HR><A NAME="getIndexColorModel(java.lang.String, int, int)"><!-- --></A><H3>getIndexColorModel</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/IndexColorModel.html" title="class or interface in java.awt.image">IndexColorModel</A> <B>getIndexColorModel</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, int lower, int upper) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Load an index color model from a definition file. The returned model will use index from inclusive to exclusive. Other index will have a transparent color.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The palette's name to load. This name doesn't need to contains a path or an extension. Path and extension are set according value specified at construction time.<DD><CODE>lower</CODE> - Palette's lower index (inclusive).<DD><CODE>upper</CODE> - Palette's upper index (exclusive).<DT><B>Returns:</B><DD>The index color model, or if the palettes was not found.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an error occurs during reading.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/imageio/IIOException.html" title="class or interface in javax.imageio">IIOException</A></CODE> - if an error occurs during parsing.<DT><B>Since:</B></DT> <DD>2.3</DD></DL></DD></DL><HR><A NAME="getImage(java.lang.String, java.awt.Dimension)"><!-- --></A><H3>getImage</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/image/RenderedImage.html" title="class or interface in java.awt.image">RenderedImage</A> <B>getImage</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dimension.html" title="class or interface in java.awt">Dimension</A> size) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Returns the specified color palette as an image of the specified size.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The palette's name to load. This name doesn't need to contains a path or an extension. Path and extension are set according value specified at construction time.<DD><CODE>size</CODE> - The image size. The palette will be vertical if <code>size.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dimension.html#height" title="class or interface in java.awt">height</A></code> > <code>size.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dimension.html#width" title="class or interface in java.awt">width </A></code><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DT><B>Since:</B></DT> <DD>2.3</DD></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/PaletteFactory.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="../../../../org/geotools/image/io/IIOReadProgressAdapter.html" title="class in org.geotools.image.io"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/image/io/RawBinaryImageReader.html" title="class in org.geotools.image.io"><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="PaletteFactory.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 | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright © 1996-2007 <a href="http://www.geotools.org">Geotools</a>. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -