<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">com.mxgraph.util.png.mxPngEncodeParam</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.util.png.mxPngEncodeParam.Palette</B>
</PRE>
<DL>
<DT><B>Enclosing class:</B><DD><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public static class <B>mxPngEncodeParam.Palette</B><DT>extends <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></DL>
<THALIGN="left"><B>Nested classes/interfaces inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Gray.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Gray</A>, <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Palette.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Palette</A>, <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.RGB.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.RGB</A></CODE></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.png.<AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
<DD>Suppresses the 'bKGD' chunk from being output.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#unsetBackground()">unsetBackground</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isBackgroundSet()"><!----></A><H3>
isBackgroundSet</H3>
<PRE>
public boolean <B>isBackgroundSet</B>()</PRE>
<DL>
<DD>Returns true if a 'bKGD' chunk will be output.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#isBackgroundSet()">isBackgroundSet</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setBitDepth(int)"><!----></A><H3>
setBitDepth</H3>
<PRE>
public void <B>setBitDepth</B>(int bitDepth)</PRE>
<DL>
<DD>Sets the desired bit depth for a palette image. The bit
depth must be one of 1, 2, 4, or 8, or else an
<code>IllegalArgumentException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setBitDepth(int)">setBitDepth</A></CODE> in class <CODE><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setPalette(int[])"><!----></A><H3>
setPalette</H3>
<PRE>
public void <B>setPalette</B>(int[] rgb)</PRE>
<DL>
<DD>Sets the RGB palette of the image to be encoded.
The <code>rgb</code> parameter contains alternating
R, G, B values for each color index used in the image.
The number of elements must be a multiple of 3 between
3 and 3*256.
<p> The 'PLTE' chunk will encode this information.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rgb</CODE> - An array of <code>int</code>s.</DL>
</DD>
</DL>
<HR>
<ANAME="getPalette()"><!----></A><H3>
getPalette</H3>
<PRE>
public int[] <B>getPalette</B>()</PRE>
<DL>
<DD>Returns the current RGB palette.
<p> If the palette has not previously been set, or has been
unset, an <code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>An array of <code>int</code>s.
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the palette is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetPalette()"><!----></A><H3>
unsetPalette</H3>
<PRE>
public void <B>unsetPalette</B>()</PRE>
<DL>
<DD>Suppresses the 'PLTE' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isPaletteSet()"><!----></A><H3>
isPaletteSet</H3>
<PRE>
public boolean <B>isPaletteSet</B>()</PRE>
<DL>
<DD>Returns true if a 'PLTE' chunk will be output.
public int <B>getBackgroundPaletteIndex</B>()</PRE>
<DL>
<DD>Returns the palette index of the suggested background color.
<p> If the background palette index has not previously been
set, or has been unset, an
<code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the palette index is not set.</DL>
public void <B>setPaletteTransparency</B>(byte[] alpha)</PRE>
<DL>
<DD>Sets the alpha values associated with each palette entry.
The <code>alpha</code> parameter should have as many entries
as there are RGB triples in the palette.
<p> The 'tRNS' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getPaletteTransparency()"><!----></A><H3>
getPaletteTransparency</H3>
<PRE>
public byte[] <B>getPaletteTransparency</B>()</PRE>
<DL>
<DD>Returns the alpha values associated with each palette entry.
<p> If the palette transparency has not previously been
set, or has been unset, an
<code>IllegalStateException</code> will be thrown.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the palette transparency is