Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ncsa.horizon.awt.color.DirectColorModelData

java.lang.Object
  |
  +--ncsa.horizon.awt.color.DirectColorModelData

public class DirectColorModelData
extends java.lang.Object
implements ColorModelData
a container for serializing a DirectColorModel

See Also:
ColorModelData, Serialized Form

Constructor Summary
DirectColorModelData(int bits, int rmask, int gmask, int bmask, int amask)
          save the data for creating a DirectColorModel
DirectColorModelData(int bits, int rmask, int gmask, int bmask)
          save the data for creating a DirectColorModel
DirectColorModelData(java.awt.image.DirectColorModel dcm)
          save the data for duplicating a given DirectColorModel
 
Method Summary
java.awt.image.ColorModel createColorModel()
           
int getAlphMask()
          return the mask used on pixel values to get the alpha component
int getBlueMask()
          return the mask used on pixel values to get the blue component
int getGreenMask()
          return the mask used on pixel values to get the green component
int getPixelSize()
          return the size of each pixel
int getRedMask()
          return the mask used on pixel values to get the red component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

DirectColorModelData

public DirectColorModelData(int bits,
                            int rmask,
                            int gmask,
                            int bmask,
                            int amask)
save the data for creating a DirectColorModel

DirectColorModelData

public DirectColorModelData(int bits,
                            int rmask,
                            int gmask,
                            int bmask)
save the data for creating a DirectColorModel

DirectColorModelData

public DirectColorModelData(java.awt.image.DirectColorModel dcm)
save the data for duplicating a given DirectColorModel
Method Detail

getPixelSize

public int getPixelSize()
return the size of each pixel

getRedMask

public int getRedMask()
return the mask used on pixel values to get the red component

getGreenMask

public int getGreenMask()
return the mask used on pixel values to get the green component

getBlueMask

public int getBlueMask()
return the mask used on pixel values to get the blue component

getAlphMask

public int getAlphMask()
return the mask used on pixel values to get the alpha component

createColorModel

public java.awt.image.ColorModel createColorModel()
Description copied from interface:
create a new ColorModel instance from the data stored in this class.
Specified by:
createColorModel in interface ColorModelData

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD