Class CURImageReader


  • public final class CURImageReader
    extends com.twelvemonkeys.imageio.ImageReaderBase
    ImageReader for Microsoft Windows CUR (cursor) format.
    Version:
    $Id: CURImageReader.java,v 1.0 Apr 20, 2009 11:54:28 AM haraldk Exp$
    Author:
    Harald Kuhr, last modified by $Author: haraldk$
    See Also:
    ICOImageReader
    • Field Summary

      • Fields inherited from class com.twelvemonkeys.imageio.ImageReaderBase

        imageInput
      • Fields inherited from class javax.imageio.ImageReader

        availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        CURImageReader()  
      protected CURImageReader​(javax.imageio.spi.ImageReaderSpi pProvider)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight​(int pImageIndex)  
      java.awt.Point getHotSpot​(int pImageIndex)
      Returns the hot spot location for the cursor.
      java.util.Iterator<javax.imageio.ImageTypeSpecifier> getImageTypes​(int pImageIndex)  
      int getNumImages​(boolean allowSearch)  
      int getWidth​(int pImageIndex)  
      static void main​(java.lang.String[] pArgs)  
      java.awt.image.BufferedImage read​(int pImageIndex, javax.imageio.ImageReadParam pParam)  
      protected void resetMembers()  
      • Methods inherited from class com.twelvemonkeys.imageio.ImageReaderBase

        assertInput, checkBounds, dispose, fakeAOI, fakeSubsampling, getDestination, getImageMetadata, getStreamMetadata, hasExplicitDestination, reset, setInput, showIt
      • Methods inherited from class javax.imageio.ImageReader

        abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDefaultReadParam, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CURImageReader

        public CURImageReader()
      • CURImageReader

        protected CURImageReader​(javax.imageio.spi.ImageReaderSpi pProvider)
    • Method Detail

      • getHotSpot

        public final java.awt.Point getHotSpot​(int pImageIndex)
                                        throws java.io.IOException
        Returns the hot spot location for the cursor.
        Parameters:
        pImageIndex - the index of the cursor in the current input.
        Returns:
        the hot spot location for the cursor
        Throws:
        java.io.IOException - if an I/O exception occurs during reading of image meta data
        java.lang.IndexOutOfBoundsException - if pImageIndex is less than 0 or greater than/equal to the number of cursors in the file
      • resetMembers

        protected void resetMembers()
        Specified by:
        resetMembers in class com.twelvemonkeys.imageio.ImageReaderBase
      • getImageTypes

        public java.util.Iterator<javax.imageio.ImageTypeSpecifier> getImageTypes​(int pImageIndex)
                                                                           throws java.io.IOException
        Specified by:
        getImageTypes in class javax.imageio.ImageReader
        Throws:
        java.io.IOException
      • getNumImages

        public int getNumImages​(boolean allowSearch)
                         throws java.io.IOException
        Overrides:
        getNumImages in class com.twelvemonkeys.imageio.ImageReaderBase
        Throws:
        java.io.IOException
      • getWidth

        public int getWidth​(int pImageIndex)
                     throws java.io.IOException
        Specified by:
        getWidth in class javax.imageio.ImageReader
        Throws:
        java.io.IOException
      • getHeight

        public int getHeight​(int pImageIndex)
                      throws java.io.IOException
        Specified by:
        getHeight in class javax.imageio.ImageReader
        Throws:
        java.io.IOException
      • read

        public java.awt.image.BufferedImage read​(int pImageIndex,
                                                 javax.imageio.ImageReadParam pParam)
                                          throws java.io.IOException
        Specified by:
        read in class javax.imageio.ImageReader
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] pArgs)
                         throws java.io.IOException
        Throws:
        java.io.IOException