|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectargutia.Argutia.Builder
@Immutable public static class Argutia.Builder
Classe regroupant les différents paramètres nécessaires à la création de l'interface graphique. Elle permet d'en simplifier l'initialisation et la réinitialisation lors de changements dans les préférences de l'onglet Configuration.
Nested Class Summary | |
---|---|
static class |
Argutia.Builder.Type
Énumération des différents types d'initialisation de l'interface graphique. |
Field Summary | |
---|---|
private int |
baseFontSize
Taille de base du texte. |
private Dimension |
dimension
Taille de la fenêtre principale. |
private Locale |
locale
Locale de l'interface graphique. |
private File |
openedFile
Fichier ouvert avant réinitialisation et donc à réouvrir. |
private Representations |
representations
Orthographe initiale des différentes unités syntaxiques configurables. |
private int |
tabToSelect
Indice de l'onglet à sélectionner. |
private Argutia.Builder.Type |
type
Type de création de l'interface. |
Constructor Summary | |
---|---|
Argutia.Builder()
Constructeur dédié au premier démarrage de l'application. |
|
Argutia.Builder(Argutia.Builder.Type type,
File openedFile)
Constructeur commun aux réinitialisations de type Argutia.Builder.Type.USER_CONFIG et
Argutia.Builder.Type.RESET . |
|
Argutia.Builder(int baseFontSize,
Locale locale,
File openedFile)
Constructeur dédié à une réinitialisation de type Argutia.Builder.Type.MANUAL . |
Method Summary | |
---|---|
int |
getBaseFontSize()
Retourne la taille du texte de base. |
Dimension |
getDimension()
Retourne la taille que doit avoir la fenêtre principale. |
Locale |
getLocale()
Retourne la locale. |
File |
getOpenedFile()
Retourne le Fichier à réouvrir. |
Representations |
getRepresentations()
Retourne l'orthographe initiale des différentes unités syntaxiques configurables sous forme d'une Representations . |
int |
getTabToSelect()
Retourne l'ndice de l'onglet à sélectionner. |
Argutia.Builder.Type |
getType()
Retourne le type d'initialisation à effectuer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int baseFontSize
getBaseFontSize()
private final Dimension dimension
getDimension()
private final Locale locale
Locale
de l'interface graphique.
getLocale()
private final File openedFile
getOpenedFile()
private final Representations representations
Representations
,
getRepresentations()
private final int tabToSelect
getTabToSelect()
private final Argutia.Builder.Type type
getType()
Constructor Detail |
---|
public Argutia.Builder()
Argutia.Builder.Type.FIRST
public Argutia.Builder(int baseFontSize,
Locale locale,
File openedFile)
Argutia.Builder.Type.MANUAL
.
baseFontSize
,
locale
,
openedFile
baseFontSize
- taille de base du texte.locale
- Locale
de l'interface graphique.openedFile
- fichier ouvert avant réinitialisation et donc à réouvrir.public Argutia.Builder(Argutia.Builder.Type type, File openedFile) throws IllegalArgumentException
Argutia.Builder.Type.USER_CONFIG
et
Argutia.Builder.Type.RESET
.
openedFile
type
- type de la construction. À choisir entre
Argutia.Builder.Type.USER_CONFIG
et Argutia.Builder.Type.RESET
.openedFile
- fichier ouvert avant réinitialisation et donc à réouvrir.
IllegalArgumentException
- si le type de la construction n'est ni
Argutia.Builder.Type.USER_CONFIG
, ni Argutia.Builder.Type.RESET
.Method Detail |
---|
public int getBaseFontSize()
baseFontSize
public Dimension getDimension()
dimension
public Locale getLocale()
locale
public File getOpenedFile()
openedFile
public Representations getRepresentations()
Representations
.
representations
Representations
.
public int getTabToSelect()
tabToSelect
public Argutia.Builder.Type getType()
type
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |