org.eclipse.emf.emfstore.internal.server.model.versioning
Class ImageProxy

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.model.versioning.ImageProxy

public final class ImageProxy
extends Object

Proxy for an ImageData object in order to avoid depdendency to SWT.

Author:
emueller

Method Summary
static ImageProxy create()
          Creates an image proxy.
 int getBlueMask()
          Returns the blue mask for a Palette.
 byte[] getData()
           
 int getDepth()
           
 int getGreenMask()
          Returns the green mask for a Palette.
 int getHeight()
           
 int getRedMask()
          Returns the red mask for a Palette.
 int getScanlinePad()
           
 int getWidth()
           
 ImageProxy setBlueMask(int mask)
          Sets the blue mask for a Palette.
 ImageProxy setData(byte[] data)
          Sets the actual image data.
 ImageProxy setDepth(int depth)
          Sets the color depth.
 ImageProxy setGreenMask(int mask)
          Sets the green mask for a Palette.
 ImageProxy setHeight(int height)
          Sets the height of an image.
 ImageProxy setRedMask(int mask)
          Sets the red mask for a Palette.
 ImageProxy setScanlinePad(int scanlinePad)
          Sets the scanline pad.
 void setWidth(int width)
           
 ImageProxy setWitdh(int width)
          Sets the width of an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ImageProxy create()
Creates an image proxy.

Returns:
the created image proxy

setWitdh

public ImageProxy setWitdh(int width)
Sets the width of an image.

Parameters:
width - the width
Returns:
this ImageProxy

setHeight

public ImageProxy setHeight(int height)
Sets the height of an image.

Parameters:
height - the height
Returns:
this ImageProxy

setDepth

public ImageProxy setDepth(int depth)
Sets the color depth.

Parameters:
depth - the color depth
Returns:
this ImageProxy

setScanlinePad

public ImageProxy setScanlinePad(int scanlinePad)
Sets the scanline pad.

Parameters:
scanlinePad - the scanline pad
Returns:
this ImageProxy

setData

public ImageProxy setData(byte[] data)
Sets the actual image data.

Parameters:
data - the image data as a byte array
Returns:
this ImageProxy

getWidth

public int getWidth()
Returns:
the width

setWidth

public void setWidth(int width)
Parameters:
width - the width to set

getHeight

public int getHeight()
Returns:
the height

getData

public byte[] getData()
Returns:
the data

getDepth

public int getDepth()
Returns:
the depth

getScanlinePad

public int getScanlinePad()
Returns:
the scanlinePad

getRedMask

public int getRedMask()
Returns the red mask for a Palette.

Returns:
the red mask

getGreenMask

public int getGreenMask()
Returns the green mask for a Palette.

Returns:
the green mask

getBlueMask

public int getBlueMask()
Returns the blue mask for a Palette.

Returns:
the blue mask

setRedMask

public ImageProxy setRedMask(int mask)
Sets the red mask for a Palette.

Parameters:
mask - the red mask
Returns:
this ImageProxy

setGreenMask

public ImageProxy setGreenMask(int mask)
Sets the green mask for a Palette.

Parameters:
mask - the green mask
Returns:
this ImageProxy

setBlueMask

public ImageProxy setBlueMask(int mask)
Sets the blue mask for a Palette.

Parameters:
mask - the blue mask
Returns:
this ImageProxy


Copyright © 2016. All Rights Reserved.