Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.faces.FaceImagesUtils Class Reference

Utility class for creating FaceImages instances. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.faces.FaceImagesUtils:

Static Public Member Functions

static FaceImages newEmptyFaceImages ()
 Creates a new FaceImages instance consisting of empty images. More...
 
static FaceImages newFaceImages (@NotNull final ImageIcon originalImageIcon)
 Creates a new FaceImages instance from an "original" face; the "scaled" and "magic map" sized images are calculated. More...
 

Private Member Functions

 FaceImagesUtils ()
 Private constructor to prevent instantiation. More...
 

Detailed Description

Utility class for creating FaceImages instances.

Author
Andreas Kirschbaum

Definition at line 35 of file FaceImagesUtils.java.

Constructor & Destructor Documentation

◆ FaceImagesUtils()

com.realtime.crossfire.jxclient.faces.FaceImagesUtils.FaceImagesUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 40 of file FaceImagesUtils.java.

Member Function Documentation

◆ newEmptyFaceImages()

static FaceImages com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newEmptyFaceImages ( )
static

Creates a new FaceImages instance consisting of empty images.

Returns
the face images instance

Definition at line 61 of file FaceImagesUtils.java.

References com.realtime.crossfire.jxclient.faces.Face.SQUARE_SIZE.

Referenced by com.realtime.crossfire.jxclient.faces.DefaultFacesManager.DefaultFacesManager().

+ Here is the caller graph for this function:

◆ newFaceImages()

static FaceImages com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newFaceImages ( @NotNull final ImageIcon  originalImageIcon)
static

Creates a new FaceImages instance from an "original" face; the "scaled" and "magic map" sized images are calculated.

Parameters
originalImageIconthe original face
Returns
the face images instance

Definition at line 50 of file FaceImagesUtils.java.

References com.realtime.crossfire.jxclient.faces.ImageScale8d.getScaledImage(), and com.realtime.crossfire.jxclient.faces.ImageScale2x.getScaledImage().

Referenced by com.realtime.crossfire.jxclient.faces.DefaultFacesManager.DefaultFacesManager(), com.realtime.crossfire.jxclient.map.MapUpdaterStateTest.defineFace(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseList(), and com.realtime.crossfire.jxclient.faces.AskfaceFaceQueue.processFaceData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: