tabs.hair
Class HairStyleData

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

public final class HairStyleData
extends java.lang.Object

Instances of this class represent a hair style image read from a XML file


Constructor Summary
HairStyleData(java.lang.String hairStyleName, java.lang.String ownerName, java.lang.String gender, java.lang.String hairType, org.eclipse.swt.graphics.Image thumbnail, java.io.File hairStyleFile)
          Creates a new instance of this class given all the hairstyle data
 
Method Summary
 java.lang.String getGender()
          Whether if this hair is for: male female
 java.io.File getHairStyleFile()
          The file that was used to create this hair style data
 java.lang.String getHairStyleName()
          The name of this hair style
 java.lang.String getHairType()
          The untranslated code for the type of the hair
 java.lang.String getOwnerName()
          The name of the owner of this hair
 org.eclipse.swt.graphics.Image getThumbnail()
          A thumbnail containing this hair style which may differ from the original large hair image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HairStyleData

public HairStyleData(java.lang.String hairStyleName,
                     java.lang.String ownerName,
                     java.lang.String gender,
                     java.lang.String hairType,
                     org.eclipse.swt.graphics.Image thumbnail,
                     java.io.File hairStyleFile)
Creates a new instance of this class given all the hairstyle data

Parameters:
hairStyleName - the hair style's name
ownerName - the owner's name
gender - the owner's gender
hairType - the untranslated code for the type of the hair
thumbnail - a small thumbnail with the hair style
hairStyleFile - the file with all the hair style data
Method Detail

getHairStyleFile

public java.io.File getHairStyleFile()
The file that was used to create this hair style data

Returns:
the file that was used to create this hair style data

getThumbnail

public org.eclipse.swt.graphics.Image getThumbnail()
A thumbnail containing this hair style which may differ from the original large hair image

Returns:
thumbnail image of the hair

getGender

public java.lang.String getGender()
Whether if this hair is for:

Returns:
a string representation of the gender

getHairStyleName

public java.lang.String getHairStyleName()
The name of this hair style

Returns:
the name of this hair style

getHairType

public java.lang.String getHairType()
The untranslated code for the type of the hair

Returns:
the untranslated code for the type of the hair

getOwnerName

public java.lang.String getOwnerName()
The name of the owner of this hair

Returns:
the name of the owner of this hair