tabs.hair
Class HairColoredSample

java.lang.Object
  extended by tabs.hair.HairColoredSample

public class HairColoredSample
extends java.lang.Object

Instances of this class contains a small preview image with the hair color applied to this image and the hair color data used for creating the preview image


Constructor Summary
HairColoredSample(HairColorData hairColor, org.eclipse.swt.graphics.Image hairColorImage)
          Creates a new instance of this class given it's hair color data and the preview image that was created using the given hair color data
 
Method Summary
 HairColorData getHairColor()
          The hair color data used for creating the preview image
 org.eclipse.swt.graphics.Image getHairColorImage()
          The sample preview image created with this instance's hair color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HairColoredSample

public HairColoredSample(HairColorData hairColor,
                         org.eclipse.swt.graphics.Image hairColorImage)
Creates a new instance of this class given it's hair color data and the preview image that was created using the given hair color data

Parameters:
hairColor - the hair color data used for the preview image
hairColorImage - the preview image
Method Detail

getHairColor

public HairColorData getHairColor()
The hair color data used for creating the preview image

Returns:
the hair color

getHairColorImage

public org.eclipse.swt.graphics.Image getHairColorImage()
The sample preview image created with this instance's hair color

Returns:
a sample image