core
Class Loader

java.lang.Object
  extended by core.Loader

public class Loader
extends java.lang.Object

Instances of this class loads all the necessary files and set's the needed variables that are going to be used by the application


Field Summary
static java.util.ArrayList<HairColoredSample> hairColorImages
          hair color images loaded from XML file, to be used by ColorChooserButton
static java.util.ArrayList<HairStyleData> hairThumbnail
          hair thumbnail's loaded from XML files, to be used by HairButton
 
Constructor Summary
Loader()
           
 
Method Summary
static java.awt.Composite getCompositeFor(int blendingMode)
          Return the composite for the desired blending mode.
static java.util.ResourceBundle getMessages()
          Method that returns the messages that are to be used by the entire GUI
static void main(java.lang.String[] args)
           
static java.lang.String printTime(long start, long end)
          used to print to terminal the difference between the end and start time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hairThumbnail

public static final java.util.ArrayList<HairStyleData> hairThumbnail
hair thumbnail's loaded from XML files, to be used by HairButton


hairColorImages

public static final java.util.ArrayList<HairColoredSample> hairColorImages
hair color images loaded from XML file, to be used by ColorChooserButton

Constructor Detail

Loader

public Loader()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the application's arguments

getCompositeFor

public static java.awt.Composite getCompositeFor(int blendingMode)
Return the composite for the desired blending mode. In case that no composite is found a null value is returned.

Parameters:
blendingMode - the desired blending mode
Returns:
the composite for the blending mode or a null value

getMessages

public static java.util.ResourceBundle getMessages()
Method that returns the messages that are to be used by the entire GUI

Returns:
the messages

printTime

public static java.lang.String printTime(long start,
                                         long end)
used to print to terminal the difference between the end and start time