<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 "><B>com.mxgraph.util.png.mxPngEncodeParam</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B><DD><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></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>mxPngEncodeParam</B><DT>extends <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></DL>
</PRE>
<P>
An instance of <code>ImageEncodeParam</code> for encoding images in
the PNG format.
<p><b> This class is not a committed part of the JAI API. It may
be removed or changed in future releases of JAI.</b>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Gray.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Gray</A></B></CODE>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.Palette.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.Palette</A></B></CODE>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.RGB.html"title="class in com.mxgraph.util.png">mxPngEncodeParam.RGB</A></B></CODE>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#addPrivateChunk(java.lang.String, byte[])">addPrivateChunk</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> type,
byte[] data)</CODE>
<BR>
Adds a private chunk, in binary form, to the list of chunks to
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<CODE>static <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#getDefaultEncodeParam(java.awt.image.RenderedImage)">getDefaultEncodeParam</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/RenderedImage.html?is-external=true"title="class or interface in java.awt.image">RenderedImage</A> im)</CODE>
<BR>
Returns an instance of <code>PNGEncodeParam.Palette</code>,
<code>PNGEncodeParam.Gray</code>, or
<code>PNGEncodeParam.RGB</code> appropriate for encoding
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setCompressedText(java.lang.String[])">setCompressedText</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] text)</CODE>
<BR>
Sets the text strings to be stored in compressed form with this
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setModificationTime(java.util.Date)">setModificationTime</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</A> modificationTime)</CODE>
<BR>
Sets the modification time, as a <code>Date</code>, to be
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setSuggestedPalette(com.mxgraph.util.png.mxPngSuggestedPaletteEntry[])">setSuggestedPalette</A></B>(<AHREF="../../../../com/mxgraph/util/png/mxPngSuggestedPaletteEntry.html"title="class in com.mxgraph.util.png">mxPngSuggestedPaletteEntry</A>[] palette)</CODE>
<BR>
Sets the suggested palette information to be stored with this
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html#setText(java.lang.String[])">setText</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] text)</CODE>
<BR>
Sets the textual data to be stored in uncompressed form with this
<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>
public static final int <B>INTENT_PERCEPTUAL</B></PRE>
<DL>
<DD>Constant for use with the sRGB chunk.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.INTENT_PERCEPTUAL">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="INTENT_RELATIVE"><!----></A><H3>
INTENT_RELATIVE</H3>
<PRE>
public static final int <B>INTENT_RELATIVE</B></PRE>
<DL>
<DD>Constant for use with the sRGB chunk.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.INTENT_RELATIVE">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="INTENT_SATURATION"><!----></A><H3>
INTENT_SATURATION</H3>
<PRE>
public static final int <B>INTENT_SATURATION</B></PRE>
<DL>
<DD>Constant for use with the sRGB chunk.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.INTENT_SATURATION">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="INTENT_ABSOLUTE"><!----></A><H3>
INTENT_ABSOLUTE</H3>
<PRE>
public static final int <B>INTENT_ABSOLUTE</B></PRE>
<DL>
<DD>Constant for use with the sRGB chunk.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.INTENT_ABSOLUTE">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="PNG_FILTER_NONE"><!----></A><H3>
PNG_FILTER_NONE</H3>
<PRE>
public static final int <B>PNG_FILTER_NONE</B></PRE>
<DL>
<DD>Constant for use in filtering.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.PNG_FILTER_NONE">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="PNG_FILTER_SUB"><!----></A><H3>
PNG_FILTER_SUB</H3>
<PRE>
public static final int <B>PNG_FILTER_SUB</B></PRE>
<DL>
<DD>Constant for use in filtering.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.PNG_FILTER_SUB">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="PNG_FILTER_UP"><!----></A><H3>
PNG_FILTER_UP</H3>
<PRE>
public static final int <B>PNG_FILTER_UP</B></PRE>
<DL>
<DD>Constant for use in filtering.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.PNG_FILTER_UP">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="PNG_FILTER_AVERAGE"><!----></A><H3>
PNG_FILTER_AVERAGE</H3>
<PRE>
public static final int <B>PNG_FILTER_AVERAGE</B></PRE>
<DL>
<DD>Constant for use in filtering.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.PNG_FILTER_AVERAGE">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="PNG_FILTER_PAETH"><!----></A><H3>
PNG_FILTER_PAETH</H3>
<PRE>
public static final int <B>PNG_FILTER_PAETH</B></PRE>
<DL>
<DD>Constant for use in filtering.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.png.mxPngEncodeParam.PNG_FILTER_PAETH">Constant Field Values</A></DL>
public static <AHREF="../../../../com/mxgraph/util/png/mxPngEncodeParam.html"title="class in com.mxgraph.util.png">mxPngEncodeParam</A><B>getDefaultEncodeParam</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/image/RenderedImage.html?is-external=true"title="class or interface in java.awt.image">RenderedImage</A> im)</PRE>
<DL>
<DD>Returns an instance of <code>PNGEncodeParam.Palette</code>,
<code>PNGEncodeParam.Gray</code>, or
<code>PNGEncodeParam.RGB</code> appropriate for encoding
the given image.
<p> If the image has an <code>IndexColorModel</code>, an
instance of <code>PNGEncodeParam.Palette</code> is returned.
Otherwise, if the image has 1 or 2 bands an instance of
<code>PNGEncodeParam.Gray</code> is returned. In all other
cases an instance of <code>PNGEncodeParam.RGB</code> is
returned.
<p> Note that this method does not provide any guarantee that
the given image will be successfully encoded by the PNG
encoder, as it only performs a very superficial analysis of
the image structure.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setBitDepth(int)"><!----></A><H3>
setBitDepth</H3>
<PRE>
public abstract void <B>setBitDepth</B>(int bitDepth)</PRE>
<DL>
<DD>Sets the desired bit depth of an image.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getBitDepth()"><!----></A><H3>
getBitDepth</H3>
<PRE>
public int <B>getBitDepth</B>()</PRE>
<DL>
<DD>Returns the desired bit depth for a grayscale image.
<p> If the bit depth 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 bit depth is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetBitDepth()"><!----></A><H3>
unsetBitDepth</H3>
<PRE>
public void <B>unsetBitDepth</B>()</PRE>
<DL>
<DD>Suppresses the setting of the bit depth of a grayscale image.
The depth of the encoded image will be inferred from the source
image bit depth, rounded up to the next power of 2 between 1
and 16.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setInterlacing(boolean)"><!----></A><H3>
setInterlacing</H3>
<PRE>
public void <B>setInterlacing</B>(boolean useInterlacing)</PRE>
<DL>
<DD>Turns Adam7 interlacing on or off.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getInterlacing()"><!----></A><H3>
getInterlacing</H3>
<PRE>
public boolean <B>getInterlacing</B>()</PRE>
<DL>
<DD>Returns <code>true</code> if Adam7 interlacing will be used.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="unsetBackground()"><!----></A><H3>
unsetBackground</H3>
<PRE>
public void <B>unsetBackground</B>()</PRE>
<DL>
<DD>Suppresses the 'bKGD' chunk from being output.
For API compatibility with JAI 1.0, the superclass
defines this method to throw a <code>RuntimeException</code>;
accordingly, subclasses must provide their own implementations.
<P>
<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.
For API compatibility with JAI 1.0, the superclass
defines this method to throw a <code>RuntimeException</code>;
accordingly, subclasses must provide their own implementations.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setChromaticity(float[])"><!----></A><H3>
setChromaticity</H3>
<PRE>
public void <B>setChromaticity</B>(float[] chromaticity)</PRE>
<DL>
<DD>Sets the white point and primary chromaticities in CIE (x, y)
space.
<p> The <code>chromaticity</code> parameter should be a
<code>float</code> array of length 8 containing the white point
X and Y, red X and Y, green X and Y, and blue X and Y values in
order.
<p> The 'cHRM' chunk will encode this information.
public void <B>setChromaticity</B>(float whitePointX,
float whitePointY,
float redX,
float redY,
float greenX,
float greenY,
float blueX,
float blueY)</PRE>
<DL>
<DD>A convenience method that calls the array version.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getChromaticity()"><!----></A><H3>
getChromaticity</H3>
<PRE>
public float[] <B>getChromaticity</B>()</PRE>
<DL>
<DD>Returns the white point and primary chromaticities in
CIE (x, y) space.
<p> See the documentation for the <code>setChromaticity</code>
method for the format of the returned data.
<p> If the chromaticity 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 chromaticity is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetChromaticity()"><!----></A><H3>
unsetChromaticity</H3>
<PRE>
public void <B>unsetChromaticity</B>()</PRE>
<DL>
<DD>Suppresses the 'cHRM' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isChromaticitySet()"><!----></A><H3>
isChromaticitySet</H3>
<PRE>
public boolean <B>isChromaticitySet</B>()</PRE>
<DL>
<DD>Returns true if a 'cHRM' chunk will be output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setGamma(float)"><!----></A><H3>
setGamma</H3>
<PRE>
public void <B>setGamma</B>(float gamma)</PRE>
<DL>
<DD>Sets the file gamma value for the image.
<p> The 'gAMA' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getGamma()"><!----></A><H3>
getGamma</H3>
<PRE>
public float <B>getGamma</B>()</PRE>
<DL>
<DD>Returns the file gamma value for the image.
<p> If the file gamma 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 gamma is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetGamma()"><!----></A><H3>
unsetGamma</H3>
<PRE>
public void <B>unsetGamma</B>()</PRE>
<DL>
<DD>Suppresses the 'gAMA' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isGammaSet()"><!----></A><H3>
isGammaSet</H3>
<PRE>
public boolean <B>isGammaSet</B>()</PRE>
<DL>
<DD>Returns true if a 'gAMA' chunk will be output.
public void <B>setPaletteHistogram</B>(int[] paletteHistogram)</PRE>
<DL>
<DD>Sets the palette histogram to be stored with this image.
The histogram consists of an array of integers, one per
palette entry.
<p> The 'hIST' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getPaletteHistogram()"><!----></A><H3>
getPaletteHistogram</H3>
<PRE>
public int[] <B>getPaletteHistogram</B>()</PRE>
<DL>
<DD>Returns the palette histogram to be stored with this image.
<p> If the histogram 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 histogram is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetPaletteHistogram()"><!----></A><H3>
unsetPaletteHistogram</H3>
<PRE>
public void <B>unsetPaletteHistogram</B>()</PRE>
<DL>
<DD>Suppresses the 'hIST' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isPaletteHistogramSet()"><!----></A><H3>
isPaletteHistogramSet</H3>
<PRE>
public boolean <B>isPaletteHistogramSet</B>()</PRE>
<DL>
<DD>Returns true if a 'hIST' chunk will be output.
public void <B>setICCProfileData</B>(byte[] ICCProfileData)</PRE>
<DL>
<DD>Sets the ICC profile data to be stored with this image.
The profile is represented in raw binary form.
<p> The 'iCCP' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getICCProfileData()"><!----></A><H3>
getICCProfileData</H3>
<PRE>
public byte[] <B>getICCProfileData</B>()</PRE>
<DL>
<DD>Returns the ICC profile data to be stored with this image.
<p> If the ICC profile 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 ICC profile is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetICCProfileData()"><!----></A><H3>
unsetICCProfileData</H3>
<PRE>
public void <B>unsetICCProfileData</B>()</PRE>
<DL>
<DD>Suppresses the 'iCCP' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isICCProfileDataSet()"><!----></A><H3>
isICCProfileDataSet</H3>
<PRE>
public boolean <B>isICCProfileDataSet</B>()</PRE>
<DL>
<DD>Returns true if a 'iCCP' chunk will be output.
public void <B>setPhysicalDimension</B>(int xPixelsPerUnit,
int yPixelsPerUnit,
int unitSpecifier)</PRE>
<DL>
<DD>A convenience method that calls the array version.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getPhysicalDimension()"><!----></A><H3>
getPhysicalDimension</H3>
<PRE>
public int[] <B>getPhysicalDimension</B>()</PRE>
<DL>
<DD>Returns the physical dimension information to be stored
with this image.
<p> If the physical dimension information 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 physical dimension information
is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetPhysicalDimension()"><!----></A><H3>
unsetPhysicalDimension</H3>
<PRE>
public void <B>unsetPhysicalDimension</B>()</PRE>
<DL>
<DD>Suppresses the 'pHYS' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isPhysicalDimensionSet()"><!----></A><H3>
isPhysicalDimensionSet</H3>
<PRE>
public boolean <B>isPhysicalDimensionSet</B>()</PRE>
<DL>
<DD>Returns true if a 'pHYS' chunk will be output.
public void <B>setSuggestedPalette</B>(<AHREF="../../../../com/mxgraph/util/png/mxPngSuggestedPaletteEntry.html"title="class in com.mxgraph.util.png">mxPngSuggestedPaletteEntry</A>[] palette)</PRE>
<DL>
<DD>Sets the suggested palette information to be stored with this
image. The information is passed to this method as an array of
<code>PNGSuggestedPaletteEntry</code> objects.
<p> The 'sPLT' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="unsetSuggestedPalette()"><!----></A><H3>
unsetSuggestedPalette</H3>
<PRE>
public void <B>unsetSuggestedPalette</B>()</PRE>
<DL>
<DD>Suppresses the 'sPLT' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isSuggestedPaletteSet()"><!----></A><H3>
isSuggestedPaletteSet</H3>
<PRE>
public boolean <B>isSuggestedPaletteSet</B>()</PRE>
<DL>
<DD>Returns true if a 'sPLT' chunk will be output.
public void <B>setSignificantBits</B>(int[] significantBits)</PRE>
<DL>
<DD>Sets the number of significant bits for each band of the image.
<p> The number of entries in the <code>significantBits</code>
array must be equal to the number of output bands in the image:
1 for a gray image, 2 for gray+alpha, 3 for index or truecolor,
and 4 for truecolor+alpha.
<p> The 'sBIT' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getSignificantBits()"><!----></A><H3>
getSignificantBits</H3>
<PRE>
public int[] <B>getSignificantBits</B>()</PRE>
<DL>
<DD>Returns the number of significant bits for each band of the image.
<p> If the significant bits values have not previously been
set, or have 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 significant bits values are
not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetSignificantBits()"><!----></A><H3>
unsetSignificantBits</H3>
<PRE>
public void <B>unsetSignificantBits</B>()</PRE>
<DL>
<DD>Suppresses the 'sBIT' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isSignificantBitsSet()"><!----></A><H3>
isSignificantBitsSet</H3>
<PRE>
public boolean <B>isSignificantBitsSet</B>()</PRE>
<DL>
<DD>Returns true if an 'sBIT' chunk will be output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="setSRGBIntent(int)"><!----></A><H3>
setSRGBIntent</H3>
<PRE>
public void <B>setSRGBIntent</B>(int SRGBIntent)</PRE>
<DL>
<DD>Sets the sRGB rendering intent to be stored with this image.
The legal values are 0 = Perceptual, 1 = Relative Colorimetric,
2 = Saturation, and 3 = Absolute Colorimetric. Refer to the
PNG specification for information on these values.
<p> The 'sRGB' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getSRGBIntent()"><!----></A><H3>
getSRGBIntent</H3>
<PRE>
public int <B>getSRGBIntent</B>()</PRE>
<DL>
<DD>Returns the sRGB rendering intent to be stored with this image.
<p> If the sRGB intent 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 sRGB intent is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetSRGBIntent()"><!----></A><H3>
unsetSRGBIntent</H3>
<PRE>
public void <B>unsetSRGBIntent</B>()</PRE>
<DL>
<DD>Suppresses the 'sRGB' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isSRGBIntentSet()"><!----></A><H3>
isSRGBIntentSet</H3>
<PRE>
public boolean <B>isSRGBIntentSet</B>()</PRE>
<DL>
<DD>Returns true if an 'sRGB' chunk will be output.
public void <B>setText</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] text)</PRE>
<DL>
<DD>Sets the textual data to be stored in uncompressed form with this
image. The data is passed to this method as an array of
<code>String</code>s.
<p> The 'tEXt' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getText()"><!----></A><H3>
getText</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] <B>getText</B>()</PRE>
<DL>
<DD>Returns the text strings to be stored in uncompressed form with this
image as an array of <code>String</code>s.
<p> If the text strings have not previously been set, or have 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 text strings are not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetText()"><!----></A><H3>
unsetText</H3>
<PRE>
public void <B>unsetText</B>()</PRE>
<DL>
<DD>Suppresses the 'tEXt' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isTextSet()"><!----></A><H3>
isTextSet</H3>
<PRE>
public boolean <B>isTextSet</B>()</PRE>
<DL>
<DD>Returns true if a 'tEXt' chunk will be output.
public void <B>setModificationTime</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</A> modificationTime)</PRE>
<DL>
<DD>Sets the modification time, as a <code>Date</code>, to be
stored with this image. The internal storage format will use
UTC regardless of how the <code>modificationTime</code>
parameter was created.
<p> The 'tIME' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getModificationTime()"><!----></A><H3>
getModificationTime</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</A><B>getModificationTime</B>()</PRE>
<DL>
<DD>Returns the modification time to be stored with this image.
<p> If the bit depth 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 bit depth is not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetModificationTime()"><!----></A><H3>
unsetModificationTime</H3>
<PRE>
public void <B>unsetModificationTime</B>()</PRE>
<DL>
<DD>Suppresses the 'tIME' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isModificationTimeSet()"><!----></A><H3>
isModificationTimeSet</H3>
<PRE>
public boolean <B>isModificationTimeSet</B>()</PRE>
<DL>
<DD>Returns true if a 'tIME' chunk will be output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="unsetTransparency()"><!----></A><H3>
unsetTransparency</H3>
<PRE>
public void <B>unsetTransparency</B>()</PRE>
<DL>
<DD>Suppresses the 'tRNS' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isTransparencySet()"><!----></A><H3>
isTransparencySet</H3>
<PRE>
public boolean <B>isTransparencySet</B>()</PRE>
<DL>
<DD>Returns true if a 'tRNS' chunk will be output.
public void <B>setCompressedText</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] text)</PRE>
<DL>
<DD>Sets the text strings to be stored in compressed form with this
image. The data is passed to this method as an array of
<code>String</code>s.
<p> The 'zTXt' chunk will encode this information.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getCompressedText()"><!----></A><H3>
getCompressedText</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>[] <B>getCompressedText</B>()</PRE>
<DL>
<DD>Returns the text strings to be stored in compressed form with
this image as an array of <code>String</code>s.
<p> If the compressed text strings have not previously been
set, or have 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 compressed text strings are
not set.</DL>
</DD>
</DL>
<HR>
<ANAME="unsetCompressedText()"><!----></A><H3>
unsetCompressedText</H3>
<PRE>
public void <B>unsetCompressedText</B>()</PRE>
<DL>
<DD>Suppresses the 'zTXt' chunk from being output.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="isCompressedTextSet()"><!----></A><H3>
isCompressedTextSet</H3>
<PRE>
public boolean <B>isCompressedTextSet</B>()</PRE>
<DL>
<DD>Returns true if a 'zTXT' chunk will be output.
public void <B>addPrivateChunk</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> type,
byte[] data)</PRE>
<DL>
<DD>Adds a private chunk, in binary form, to the list of chunks to
be stored with this image.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - a 4-character String giving the chunk type name.<DD><CODE>data</CODE> - an array of <code>byte</code>s containing the
chunk data.</DL>
</DD>
</DL>
<HR>
<ANAME="getNumPrivateChunks()"><!----></A><H3>
getNumPrivateChunks</H3>
<PRE>
public int <B>getNumPrivateChunks</B>()</PRE>
<DL>
<DD>Returns the number of private chunks to be written to the
output file.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getPrivateChunkType(int)"><!----></A><H3>
getPrivateChunkType</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>getPrivateChunkType</B>(int index)</PRE>
<DL>
<DD>Returns the type of the private chunk at a given index, as a
4-character <code>String</code>. The index must be smaller
than the return value of <code>getNumPrivateChunks</code>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getPrivateChunkData(int)"><!----></A><H3>
getPrivateChunkData</H3>
<PRE>
public byte[] <B>getPrivateChunkData</B>(int index)</PRE>
<DL>
<DD>Returns the data associated of the private chunk at a given
index, as an array of <code>byte</code>s. The index must be