OceanTheme
OceanTheme
MetalLookAndFeel의 기본 테마예요. Metal Look and Feel의 디자이너들은 향후 새 테마를 사용해 기본 모양을 최신 상태로 유지하려고 노력해요. 따라서 개발자들은 "Ocean" 모양을 커스터마이즈하거나, 향후 업데이트와 관계없이 강제로 현재 테마로 만들고 싶을 때만 이 클래스를 직접 사용해야 해요.
OceanTheme이 반환하는 모든 색상은 완전히 불투명해요.
본문
OceanTheme은 메탈 Look and Feel의 기본 테마 구현이에요. MetalTheme을 상속하며, 메탈 특유의 파란색 계열 primary/secondary 색상을 정의해요.
대표적인 시그니처는 다음과 같아요.
public OceanTheme()
public void addCustomEntriesToTable(UIDefaults table)
public String getName()
protected ColorUIResource getPrimary1()
protected ColorUIResource getPrimary2()
protected ColorUIResource getPrimary3()
protected ColorUIResource getSecondary1()
protected ColorUIResource getSecondary2()
protected ColorUIResource getSecondary3()
protected ColorUIResource getBlack()
public ColorUIResource getDesktopColor()
public ColorUIResource getInactiveControlTextColor()
public ColorUIResource getControlTextColor()
public ColorUIResource getMenuDisabledForeground()
주요 메서드의 동작을 살펴볼게요.
getName()— 이 테마의 이름인"Ocean"을 반환해요.getPrimary1()— rgb hex 값이0x6382BF인 색상을 반환해요.getPrimary2()— rgb hex 값이0xA3B8CC인 색상을 반환해요.getPrimary3()— rgb hex 값이0xB8CFE5인 색상을 반환해요.getSecondary1()— rgb hex 값이0x7A8A99인 색상을 반환해요.getSecondary2()— rgb hex 값이0xB8CFE5인 색상을 반환해요.getSecondary3()— rgb hex 값이0xEEEEEE인 색상을 반환해요.getBlack()— rgb hex 값이0x333333인 색상을 반환해요.getDesktopColor()— rgb hex 값이0xFFFFFF인 색상을 반환해요.getInactiveControlTextColor()— rgb hex 값이0x999999인 색상을 반환해요.getControlTextColor()— rgb hex 값이0x333333인 색상을 반환해요.getMenuDisabledForeground()— rgb hex 값이0x999999인 색상을 반환해요.