java.applet

java.awt

java.awt.color

java.awt.datatransfer

java.awt.dnd

java.awt.event

java.awt.font

java.awt.geom

java.awt.im

java.awt.im.spi

java.awt.image

java.awt.image.renderable

java.awt.print

java.beans

java.beans.beancontext

java.io

java.lang

java.lang.annotation

java.lang.instrument

java.lang.management

java.lang.ref

java.lang.reflect

java.math

java.net

java.nio

java.nio.channels

java.nio.channels.spi

java.nio.charset

java.nio.charset.spi

java.rmi

java.rmi.activation

java.rmi.dgc

java.rmi.registry

java.rmi.server

java.security

java.security.acl

java.security.cert

java.security.interfaces

java.security.spec

java.sql

java.text

java.util

java.util.concurrent

java.util.concurrent.atomic

java.util.concurrent.locks

java.util.jar

java.util.logging

java.util.prefs

java.util.regex

java.util.zip

javax.accessibility

javax.activity

javax.crypto

javax.crypto.interfaces

javax.crypto.spec

javax.imageio

javax.imageio.event

javax.imageio.metadata

javax.imageio.plugins.bmp

javax.imageio.plugins.jpeg

javax.imageio.spi

javax.imageio.stream

javax.management

javax.management.loading

javax.management.modelmbean

javax.management.monitor

javax.management.openmbean

javax.management.relation

javax.management.remote

javax.management.remote.rmi

javax.management.timer

javax.naming

javax.naming.directory

javax.naming.event

javax.naming.ldap

javax.naming.spi

javax.net

javax.net.ssl

javax.print

javax.print.attribute

javax.print.attribute.standard

javax.print.event

javax.rmi

javax.rmi.CORBA

javax.rmi.ssl

javax.security.auth

javax.security.auth.callback

javax.security.auth.kerberos

javax.security.auth.login

javax.security.auth.spi

javax.security.auth.x500

javax.security.cert

javax.security.sasl

javax.sound.midi

javax.sound.midi.spi

javax.sound.sampled

javax.sound.sampled.spi

javax.sql

javax.sql.rowset

javax.sql.rowset.serial

javax.sql.rowset.spi

javax.swing

javax.swing.border

javax.swing.colorchooser

javax.swing.event

javax.swing.filechooser

javax.swing.plaf

javax.swing.plaf.basic

javax.swing.plaf.metal

javax.swing.plaf.multi

javax.swing.plaf.synth

javax.swing.table

javax.swing.text

javax.swing.text

javax.swing.text.parser

javax.swing.text.rtf

javax.swing.tree

javax.swing.undo

javax.transaction

javax.transaction.xa

javax.xml

javax.xml.datatype

javax.xml.namespace

javax.xml.parsers

javax.xml.transform

javax.xml.transform.dom

javax.xml.transform.sax

javax.xml.transform.stream

javax.xml.validation

javax.xml.xpath

org.ietf.jgss

org.omg.CORBA

org.omg.CORBA_2_3

org.omg.CORBA_2_3.portable

org.omg.CORBA.DynAnyPackage

org.omg.CORBA.ORBPackage

org.omg.CORBA.portable

org.omg.CORBA.TypeCodePackage

org.omg.CosNaming

org.omg.CosNaming.NamingContextExtPackage

org.omg.CosNaming.NamingContextPackage

org.omg.Dynamic

org.omg.DynamicAny

org.omg.DynamicAny.DynAnyFactoryPackage

org.omg.DynamicAny.DynAnyPackage

org.omg.IOP

org.omg.IOP.CodecFactoryPackage

org.omg.IOP.CodecPackage

org.omg.Messaging

org.omg.PortableInterceptor

org.omg.PortableInterceptor.ORBInitInfoPackage

org.omg.PortableServer

org.omg.PortableServer.CurrentPackage

org.omg.PortableServer.POAManagerPackage

org.omg.PortableServer.POAPackage

org.omg.PortableServer.portable

org.omg.PortableServer.ServantLocatorPackage

org.omg.SendingContext

org.omg.stub.java.rmi

org.w3c.dom

org.w3c.dom.bootstrap

org.w3c.dom.events

org.w3c.dom.ls

org.xml.sax

org.xml.sax.ext

org.xml.sax.helpers

allclasses-frame

allclasses-noframe

constant-values

deprecated-list

help-doc

JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.metal
类 OceanTheme

java.lang.Object
  继承者 javax.swing.plaf.metal.MetalTheme
      继承者 javax.swing.plaf.metal.DefaultMetalTheme
          继承者 javax.swing.plaf.metal.OceanTheme

public class OceanTheme
extends DefaultMetalTheme

此类使用 MetalLookAndFeel 为应用程序提供更新外观。Metal 外观的设计人员可能通过使用将来的新主题来尽量保持默认外观的更新。所以,开发人员应该在希望自定义 "Ocean" 外观时直接使用此类,或强迫它使用当前主题即可,不用顾及将来的更新。

从以下版本开始:
1.5
另请参见:
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)

构造方法摘要
OceanTheme()
          构造一个 OceanTheme 实例
 
方法摘要
 void addCustomEntriesToTable(UIDefaults table)
          将此主题的自定义条目添加到默认表中。
protected  ColorUIResource getBlack()
          返回 Metal 外观应该用作 "Black" 的颜色。
 ColorUIResource getControlTextColor()
          返回 Metal 外观应该用作控件默认颜色的颜色。
 ColorUIResource getDesktopColor()
          返回 Metal 外观应该用作桌面背景色的颜色。
 ColorUIResource getInactiveControlTextColor()
          返回 Metal 外观应该用作非活动控件的默认颜色的颜色。
 ColorUIResource getMenuDisabledForeground()
          返回 Metal 外观应该用作禁用菜单项的前景色的颜色。
 String getName()
          返回此主题的名称,即 "Ocean"。
protected  ColorUIResource getPrimary1()
          返回 Metal 外观应该用作 "Primary 1" 的颜色。
protected  ColorUIResource getPrimary2()
          返回 Metal 外观应该用作 "Primary 2" 的颜色。
protected  ColorUIResource getPrimary3()
          返回 Metal 外观应该用作 "Primary 3" 的颜色。
protected  ColorUIResource getSecondary1()
          返回 Metal 外观应该用作 "Secondary 1" 的颜色。
protected  ColorUIResource getSecondary2()
          返回 Metal 外观应该用作 "Secondary 2" 的颜色。
protected  ColorUIResource getSecondary3()
          返回 Metal 外观应该用作 "Secondary 3" 的颜色。
 
从类 javax.swing.plaf.metal.DefaultMetalTheme 继承的方法
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont
 
从类 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

OceanTheme

public OceanTheme()
构造一个 OceanTheme 实例

方法详细信息

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)
将此主题的自定义条目添加到默认表中。

覆盖:
MetalTheme 中的 addCustomEntriesToTable
参数:
table - 非 null 的默认表
抛出:
NullPointerException - 如果该参数为 null

getName

public String getName()
返回此主题的名称,即 "Ocean"。

覆盖:
DefaultMetalTheme 中的 getName
返回:
"Ocean"

getPrimary1

protected ColorUIResource getPrimary1()
返回 Metal 外观应该用作 "Primary 1" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getPrimary1
返回:
"Primary 1" 颜色。

getPrimary2

protected ColorUIResource getPrimary2()
返回 Metal 外观应该用作 "Primary 2" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getPrimary2
返回:
"Primary 2" 颜色。

getPrimary3

protected ColorUIResource getPrimary3()
返回 Metal 外观应该用作 "Primary 3" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getPrimary3
返回:
"Primary 3" 颜色。

getSecondary1

protected ColorUIResource getSecondary1()
返回 Metal 外观应该用作 "Secondary 1" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getSecondary1
返回:
"Secondary 1" 颜色。

getSecondary2

protected ColorUIResource getSecondary2()
返回 Metal 外观应该用作 "Secondary 2" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getSecondary2
返回:
"Secondary 2" 颜色。

getSecondary3

protected ColorUIResource getSecondary3()
返回 Metal 外观应该用作 "Secondary 3" 的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
DefaultMetalTheme 中的 getSecondary3
返回:
"Secondary 3" 颜色。

getBlack

protected ColorUIResource getBlack()
返回 Metal 外观应该用作 "Black" 的颜色。在此颜色合适时外观将用其进行绘制。此颜色没必要与典型的黑色概念同步,也不必用于所有黑色的项。

覆盖:
MetalTheme 中的 getBlack
返回:
"Black" 颜色。

getDesktopColor

public ColorUIResource getDesktopColor()
返回 Metal 外观应该用作桌面背景色的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
MetalTheme 中的 getDesktopColor
返回:
"Desktop" 颜色。

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()
返回 Metal 外观应该用作非活动控件的默认颜色的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
MetalTheme 中的 getInactiveControlTextColor
返回:
"Inactive Control Text" 颜色。

getControlTextColor

public ColorUIResource getControlTextColor()
返回 Metal 外观应该用作控件默认颜色的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
MetalTheme 中的 getControlTextColor
返回:
"Control Text" 颜色。

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()
返回 Metal 外观应该用作禁用菜单项的前景色的颜色。在此颜色合适时外观将用其进行绘制。

覆盖:
MetalTheme 中的 getMenuDisabledForeground
返回:
"Menu Disabled Foreground" 颜色。

JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策