package org.helioviewer.viewmodel.imagedata;

import org.helioviewer.viewmodel.imageformat.ImageFormat;
import org.helioviewer.viewmodel.imagetransport.ImageTransport;

/**
 * Basic representation of an image handled by the view chain.
 * 
 * <p>
 * Within the view chain, the image data is given from view to view as an
 * ImageData object. The object provides only methods to read informations, such
 * as dimensions and pixel data. To write data, a new ImageData object has to be
 * created.
 * 
 * @author Ludwig Schmidt
 * @author Markus Langenberg
 * 
 */
public interface ImageData {

    /**
     * Returns the width of the image
     * 
     * @return width of the image
     */
    public int getWidth();

    /**
     * Returns the height of the image
     * 
     * @return height of the image
     */
    public int getHeight();

    /**
     * Returns an object to read the pixel data
     * 
     * @return object to read pixels
     */
    public ImageTransport getImageTransport();

    /**
     * Returns an object to get informations about the image format
     * 
     * @return object containing informations about the image format
     */
    public ImageFormat getImageFormat();

    /**
     * Returns the color mask which should be used when drawing the image.
     * 
     * @return the color mask which should be used when drawing the image.
     */
    public ColorMask getColorMask();
}

package org.helioviewer.viewmodel.imagedata;

import org.helioviewer.viewmodel.imageformat.ImageFormat;
import org.helioviewer.viewmodel.imagetransport.ImageTransport;

/**
 * Basic representation of an image handled by the view chain.
 * 
 * <p>
 * Within the view chain, the image data is given from view to view as an
 * ImageData object. The object provides only methods to read informations, such
 * as dimensions and pixel data. To write data, a new ImageData object has to be
 * created.
 * 
 * @author Ludwig Schmidt
 * @author Markus Langenberg
 * 
 */
public interface ImageData {

    /**
     * Returns the width of the image
     * 
     * @return width of the image
     */
    public int getWidth();

    /**
     * Returns the height of the image
     * 
     * @return height of the image
     */
    public int getHeight();

    /**
     * Returns an object to read the pixel data
     * 
     * @return object to read pixels
     */
    public ImageTransport getImageTransport();

    /**
     * Returns an object to get informations about the image format
     * 
     * @return object containing informations about the image format
     */
    public ImageFormat getImageFormat();

    /**
     * Returns the color mask which should be used when drawing the image.
     * 
     * @return the color mask which should be used when drawing the image.
     */
    public ColorMask getColorMask();
    
    public long getDateMillis();
    public void setDateMillis(long dateMillis);

}

Make the image data date aware
Make the image data date aware

git-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@959 b4e469a2-07ce-4b26-9273-4d7d95a670c7
