Framework Serveur J2EE ACube V2.7.4
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

acube.framework.clavierVirtuel
Classe GestionnaireImage
java.lang.Object
  acube.framework.clavierVirtuel.GestionnaireImage

public class GestionnaireImage
hérite de Object
Projet Clavier Vituel. Classe utilisée pour la génération du clavier virtuel.
Version:
2.6.1

Sommaire des Attributs
static final int
CIRCLE_DIGIT_HEIGHT
CIRCLE_DIGIT_HEIGHT height of keypad's digit for the CIRCLE style
static final int
CIRCLE_DIGIT_WIDTH
CIRCLE_DIGIT_WIDTH width of keypad's digit for the CIRCLE style
static final int
CIRCLE_HEIGHT
CIRCLE_HEIGHT height of keypad for the CIRCLE style
private static final String
CIRCLE_PREFIX
CIRCLE_PREFIX the prefix for the CIRCLE style pictures
static final int
CIRCLE_WIDTH
CIRCLE_WIDTH width of keypad for the CIRCLE style
private static final String
EXTENTION_FILE
EXTENTION_FILE the extention of pictures files
private static final String
IMAGES_REPOSITORY
IMAGES_REPOSITORY the image repository
private static final String[]
LIST_ICONS
LIST_ICONS the list of icons available
static final int
RECT_DIGIT_HEIGHT
RECT_DIGIT_HEIGHT height of keypad's digit for the RECT style
static final int
RECT_DIGIT_WIDTH
RECT_DIGIT_WIDTH width of keypad's digit for the RECT style
static final int
RECT_HEIGHT
RECT_HEIGHT height of keypad for the RECT style
private static final String
RECT_PREFIX
RECT_PREFIX the prefix for the RECT style pictures
static final int
RECT_WIDTH
RECT_WIDTH width of keypad for the RECT style
static final int
STYLE_CIRCLE
Style par défaut
static final int
STYLE_RECT
STYLE_RECT the STYLE_RECT
private static final String
SUFFIX_BACKGROUND
SUFFIX_BACKGROUND the background image for the RECT style
Sommaire des Constructeurs
Sommaire des Méthodes
byte[]
createImage(String key, int style, int nbIcons)
Create an image from the key the style and the number of icons.
static int[]
genererMapTouchesLibres(List listIcons, int nbIcons)
Return a list that contains all position of empty places.
static List
getListIcons(int nbIcons, int width)
Return the tab contains the icon that will be use in the virtual keypad.
static int
getMarge(int width, int nbColumns, int digitWidth)
Return the marge of the picture.
static int
getNumberColumnsKeyPad(int nbIcons)
Calcul of the number of columns of the keypad
static String
getPrefixFromStyle(int style)
Return the prefix of picture for the style in parameters
Méthodes héritées de la classe java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Détail des Attributs
STYLE_CIRCLE
public static final int STYLE_CIRCLE
Style par défaut

CIRCLE_WIDTH
public static final int CIRCLE_WIDTH
CIRCLE_WIDTH width of keypad for the CIRCLE style

CIRCLE_HEIGHT
public static final int CIRCLE_HEIGHT
CIRCLE_HEIGHT height of keypad for the CIRCLE style

CIRCLE_DIGIT_WIDTH
public static final int CIRCLE_DIGIT_WIDTH
CIRCLE_DIGIT_WIDTH width of keypad's digit for the CIRCLE style

CIRCLE_DIGIT_HEIGHT
public static final int CIRCLE_DIGIT_HEIGHT
CIRCLE_DIGIT_HEIGHT height of keypad's digit for the CIRCLE style

STYLE_RECT
public static final int STYLE_RECT
STYLE_RECT the STYLE_RECT

RECT_WIDTH
public static final int RECT_WIDTH
RECT_WIDTH width of keypad for the RECT style

RECT_HEIGHT
public static final int RECT_HEIGHT
RECT_HEIGHT height of keypad for the RECT style

RECT_DIGIT_WIDTH
public static final int RECT_DIGIT_WIDTH
RECT_DIGIT_WIDTH width of keypad's digit for the RECT style

RECT_DIGIT_HEIGHT
public static final int RECT_DIGIT_HEIGHT
RECT_DIGIT_HEIGHT height of keypad's digit for the RECT style

IMAGES_REPOSITORY
private static final String IMAGES_REPOSITORY
IMAGES_REPOSITORY the image repository

LIST_ICONS
private static final String[] LIST_ICONS
LIST_ICONS the list of icons available

SUFFIX_BACKGROUND
private static final String SUFFIX_BACKGROUND
SUFFIX_BACKGROUND the background image for the RECT style

EXTENTION_FILE
private static final String EXTENTION_FILE
EXTENTION_FILE the extention of pictures files

CIRCLE_PREFIX
private static final String CIRCLE_PREFIX
CIRCLE_PREFIX the prefix for the CIRCLE style pictures

RECT_PREFIX
private static final String RECT_PREFIX
RECT_PREFIX the prefix for the RECT style pictures
Détail des Constructeurs
GestionnaireImage
public GestionnaireImage()
Détail des méthodes
createImage
public byte[] createImage(String key,
                          int style,
                          int nbIcons)
                   throws IOException
Create an image from the key the style and the number of icons.
Paramètres:
key - key of the keypad
style - style of the keypad
nbIcons - number of icons in the keypad
Retours:
image
Exceptions:
IOException - if one picture is not found

getPrefixFromStyle
public static String getPrefixFromStyle(int style)
Return the prefix of picture for the style in parameters
Paramètres:
style - the style of the keypad
Retours:
the prefix of pictures

getListIcons
public static List getListIcons(int nbIcons,
                                int width)
Return the tab contains the icon that will be use in the virtual keypad. This tab is intialised with the number of icons to display in the keypad. The order of the icons is random.
Paramètres:
nbIcons - the number of digit to display in the keypad
width - width of the keypad
Retours:
List of icons to use

getNumberColumnsKeyPad
public static int getNumberColumnsKeyPad(int nbIcons)
Calcul of the number of columns of the keypad
Paramètres:
nbIcons - the number of icons to display
Retours:
the number of columns of the keypad

getMarge
public static int getMarge(int width,
                           int nbColumns,
                           int digitWidth)
Return the marge of the picture. It return the width of the empty space between 2 digit.
Paramètres:
width - width of the picture
nbColumns - number of column in the picture
digitWidth - width of the digit
Retours:
the marge

genererMapTouchesLibres
public static int[] genererMapTouchesLibres(List listIcons,
                                            int nbIcons)
Return a list that contains all position of empty places.
Paramètres:
listIcons - list of icons to display
nbIcons - number of icons to display
Retours:
positions of empty places

Framework Serveur J2EE ACube V2.7.4
CLASSE PRECEDANTE CLASSE SUIVANTE
SOMMAIRE: ATTR CONSTR METH DETAIL: ATTR CONSTR METH

Version 2.7.4 du 10/07/2009 / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.
Documentation generated by DocFlex