API java : OceanTheme


javax.swing.plaf.metal
Class OceanTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
          extended by javax.swing.plaf.metal.OceanTheme

public class OceanTheme
extends DefaultMetalTheme

This class provides an updated look for applications using MetalLookAndFeel. The designers of the Metal Look and Feel strive to keep the default look up to date, possibly through the use of new themes in the future. Therefore, developers should only use this class directly when they wish to customize the "Ocean" look, or force it to be the current theme, regardless of future updates.

Since:
1.5
See Also:
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)

Constructor Summary
OceanTheme()
          Construct an instance of OceanTheme
 
Method Summary
 voidaddCustomEntriesToTable(UIDefaults table)
          Add this theme's custom entries to the defaults table.
protected  ColorUIResourcegetBlack()
          Return the color that the Metal Look and Feel should use as "Black".
 ColorUIResourcegetControlTextColor()
          Return the color that the Metal Look and Feel should use as the default color for controls.
 ColorUIResourcegetDesktopColor()
          Return the color that the Metal Look and Feel should use for the desktop background.
 ColorUIResourcegetInactiveControlTextColor()
          Return the color that the Metal Look and Feel should use as the default color for inactive controls.
 ColorUIResourcegetMenuDisabledForeground()
          Return the color that the Metal Look and Feel should use as the foreground color for disabled menu items.
 StringgetName()
          Return the name of this theme, "Ocean".
protected  ColorUIResourcegetPrimary1()
          Return the color that the Metal Look and Feel should use as "Primary 1".
protected  ColorUIResourcegetPrimary2()
          Return the color that the Metal Look and Feel should use as "Primary 2".
protected  ColorUIResourcegetPrimary3()
          Return the color that the Metal Look and Feel should use as "Primary 3".
protected  ColorUIResourcegetSecondary1()
          Return the color that the Metal Look and Feel should use as "Secondary 1".
protected  ColorUIResourcegetSecondary2()
          Return the color that the Metal Look and Feel should use as "Secondary 2".
protected  ColorUIResourcegetSecondary3()
          Return the color that the Metal Look and Feel should use as "Secondary 3".
 
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getFocusColor, getHighlightedTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OceanTheme

public OceanTheme()
Construct an instance of OceanTheme

Method Detail

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
Add this theme's custom entries to the defaults table.

Overrides:
addCustomEntriesToTable in class MetalTheme
Parameters:
table - the defaults table, non-null
Throws:
NullPointerException - if the parameter is null

getName

public String getName()
Return the name of this theme, "Ocean".

Overrides:
getName in class DefaultMetalTheme
Returns:
"Ocean"

getPrimary1

protected ColorUIResource getPrimary1()
Return the color that the Metal Look and Feel should use as "Primary 1". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary1 in class DefaultMetalTheme
Returns:
the "Primary 1" color.

getPrimary2

protected ColorUIResource getPrimary2()
Return the color that the Metal Look and Feel should use as "Primary 2". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary2 in class DefaultMetalTheme
Returns:
the "Primary 2" color.

getPrimary3

protected ColorUIResource getPrimary3()
Return the color that the Metal Look and Feel should use as "Primary 3". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getPrimary3 in class DefaultMetalTheme
Returns:
the "Primary 3" color.

getSecondary1

protected ColorUIResource getSecondary1()
Return the color that the Metal Look and Feel should use as "Secondary 1". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary1 in class DefaultMetalTheme
Returns:
the "Secondary 1" color.

getSecondary2

protected ColorUIResource getSecondary2()
Return the color that the Metal Look and Feel should use as "Secondary 2". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary2 in class DefaultMetalTheme
Returns:
the "Secondary 2" color.

getSecondary3

protected ColorUIResource getSecondary3()
Return the color that the Metal Look and Feel should use as "Secondary 3". The Look and Feel will use this color in painting as it sees fit.

Overrides:
getSecondary3 in class DefaultMetalTheme
Returns:
the "Secondary 3" color.

getBlack

protected ColorUIResource getBlack()
Return the color that the Metal Look and Feel should use as "Black". The Look and Feel will use this color in painting as it sees fit. This color does not necessarily synch up with the typical concept of black, nor is it necessarily used for all black items.

Overrides:
getBlack in class MetalTheme
Returns:
the "Black" color.

getDesktopColor

public ColorUIResource getDesktopColor()
Return the color that the Metal Look and Feel should use for the desktop background. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getDesktopColor in class MetalTheme
Returns:
the "Desktop" color.

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
Return the color that the Metal Look and Feel should use as the default color for inactive controls. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getInactiveControlTextColor in class MetalTheme
Returns:
the "Inactive Control Text" color.

getControlTextColor

public ColorUIResource getControlTextColor()
Return the color that the Metal Look and Feel should use as the default color for controls. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getControlTextColor in class MetalTheme
Returns:
the "Control Text" color.

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
Return the color that the Metal Look and Feel should use as the foreground color for disabled menu items. The Look and Feel will use this color in painting as it sees fit.

Overrides:
getMenuDisabledForeground in class MetalTheme
Returns:
the "Menu Disabled Foreground" color.

Ces informations proviennent du site de http://java.sun.com

Remarques

Contenu

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 :

Quels sont les motivations de cette démarche?

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.

Réseaux sociaux

Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.

 

Nuage de mots clés

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.

 

Astuce pour imprimer les couleurs des cellules de tableaux : http://www.gaudry.be/ast-rf-450.html
Aucun commentaire pour cette page

© Ce document issu de l′infobrol est enregistré sous le certificat Cyber PrInterDeposit Digital Numbertection. Enregistrement IDDN n° 5329-2849
Document créé le 30/08/06 20:40, dernière modification le Vendredi 17 Juin 2011, 12:12
Source du document imprimé : http://www.gaudry.be/java-api-rf-javax/swing/plaf/metal/OceanTheme.html Document affiché 1 fois ce mois de Juin.
St.Gaudry©07.01.02
Outils (masquer)
||
Recherche (afficher)
Recherche :

Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
15832 documents
452 astuces.
549 niouzes.
3099 definitions.
447 membres.
8115 messages.

Document genere en :
0,35 seconde

Mises à jour :
Mises à jour du site
Citation (masquer)
Mieux vaut étudier que jeûner tout un jour et veiller toute une nuit pour méditer en vain.

Confucius
 
l'infobrol
Nous sommes le Samedi 02 Juin 2012, 08:34, toutes les heures sont au format GMT+1.00 Heure, heure d'été (+1)