See:
Description
| Interface Summary | |
|---|---|
| SynthConstants | Constants used by Synth. |
| Class Summary | |
|---|---|
| ColorType | A typesafe enumeration of colors that can be fetched from a style. |
| Region | A distinct rendering area of a Swing component. |
| SynthContext | An immutable transient object containing contextual information about
a Region. |
| SynthGraphicsUtils | Wrapper for primitive graphics calls. |
| SynthLookAndFeel | SynthLookAndFeel provides the basis for creating a customized look and feel. |
| SynthPainter | SynthPainter is used for painting portions of
JComponents. |
| SynthStyle | SynthStyle is a set of style properties. |
| SynthStyleFactory | Factory used for obtaining SynthStyles. |
Synth is a skinnable look and feel in which all painting is
delegated. Synth does not provide a default look. In
order to use Synth you need to specify a
file, or
provide a SynthStyleFactory. Both
configuration options require an
understanding of the synth architecture, which is described
below, as well as an understanding of Swing's architecture.
Each ComponentUI implementation in Synth associates
itself with one SynthStyle per Region, most
Components only have one Region and
therefor only one SynthStyle.
SynthStyle
is used to access all style related properties: fonts, colors
and other Component properties. In addition
SynthStyles are used to obtain
SynthPainters for painting the background, border,
focus and other portions of a Component. The ComponentUIs obtain
SynthStyles from a
SynthStyleFactory.
A SynthStyleFactory
can be provided directly by way of
SynthLookAndFeel.setStyleFactory(javax.swing.plaf.synth.SynthStyleFactory),
or indirectly by way of
SynthLookAndFeel.load(java.io.InputStream, java.lang.Class>). The
following example uses the SynthLookAndFeel.load()
method to configure a SynthLookAndFeel and sets it
as the current look and feel:
laf.load(MyClass.class.getResourceAsStream("laf.xml"), MyClass.class);
Many JComponents are broken down into smaller
pieces and identified by the type safe enumeration in
Region. For example, a JTabbedPane
consists of a Region for the
JTabbedPane (Region.TABBED_PANE), the content
area (Region.TABBED_PANE_CONTENT), the
area behind the tabs (Region.TABBED_PANE_TAB_AREA), and the
tabs (Region.TABBED_PANE_TAB). Each
Region of each
JComponent will have a
SynthStyle. This allows
you to customize individual pieces of each region of each
JComponent.
Many of the Synth methods take a SynthContext. This
is used to provide information about the current
Component and includes: the
SynthStyle associated with the current
Region, the state of the Component
as a bitmask (refer to SynthConstants for the valid
states), and a Region identifying the portion of
the Component being painted.
All text rendering by non-JTextComponents is
delegated to a SynthGraphicsUtils, which is
obtained using the SynthStyle method
SynthStyle.getGraphicsUtils(javax.swing.plaf.synth.SynthContext). You can
customize text rendering
by supplying your own SynthGraphicsUtils.
Unless otherwise specified null is not a legal value to any of
the methods defined in the synth package and if passed in will
result in a NullPointerException.
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)