|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
net.sourceforge.steelme.SteelmeTheme
public class SteelmeTheme
A MetalTheme with persistence and public accessor methods.
| Constructor Summary | |
|---|---|
SteelmeTheme()
Creates a new SteelmeTheme instance which copies
the attributes of DefaultMetalTheme. |
|
SteelmeTheme(Color ip1,
Color ip2,
Color ip3,
Color is1,
Color is2,
Color is3,
Font iif,
Color it1,
Color it2,
Color iw,
Color ib)
Creates a new SteelmeTheme instance. |
|
SteelmeTheme(File themeFile)
Creates a new SteelmeTheme instance with
attributes loaded from the specified file. |
|
SteelmeTheme(InputStream stream)
pass an inputstream pointing to a properties file. |
|
SteelmeTheme(MetalTheme orig)
Creates a new SteelmeTheme instance which copies
the attributes of the given MetalTheme. |
|
| Method Summary | |
|---|---|
void |
applyTheme(Component who)
Applies this theme to the Root component of the given component. |
ColorUIResource |
getB()
Describe getB method here. |
protected ColorUIResource |
getBlack()
Describe getBlack method here. |
protected static String |
getColorString(Color color)
Convert a color to 3 integers separated by commas with values from 0..255 which represent it's red, green, and blue components. |
ColorUIResource |
getControlTextColor()
Describe getControlTextColor method here. |
FontUIResource |
getControlTextFont()
Describe getControlTextFont method here. |
ColorUIResource |
getHighlightedTextColor()
Describe getHighlightedTextColor method here. |
ColorUIResource |
getInactiveControlTextColor()
Describe getInactiveControlTextColor method here. |
ColorUIResource |
getInactiveSystemTextColor()
Describe getInactiveSystemTextColor method here. |
FontUIResource |
getMenuTextFont()
Describe getMenuTextFont method here. |
String |
getName()
Returns this theme's name. |
ColorUIResource |
getP1()
Describe getP1 method here. |
ColorUIResource |
getP2()
Describe getP2 method here. |
ColorUIResource |
getP3()
Describe getP3 method here. |
protected ColorUIResource |
getPrimary1()
Describe getPrimary1 method here. |
protected ColorUIResource |
getPrimary2()
Describe getPrimary2 method here. |
protected ColorUIResource |
getPrimary3()
Describe getPrimary3 method here. |
ColorUIResource |
getS1()
Describe getS1 method here. |
ColorUIResource |
getS2()
Describe getS2 method here. |
ColorUIResource |
getS3()
Describe getS3 method here. |
protected ColorUIResource |
getSecondary1()
Describe getSecondary1 method here. |
protected ColorUIResource |
getSecondary2()
Describe getSecondary2 method here. |
protected ColorUIResource |
getSecondary3()
Describe getSecondary3 method here. |
FontUIResource |
getSubTextFont()
Describe getSubTextFont method here. |
ColorUIResource |
getSystemTextColor()
Describe getSystemTextColor method here. |
FontUIResource |
getSystemTextFont()
Describe getSystemTextFont method here. |
ColorUIResource |
getT1()
Describe getT1 method here. |
ColorUIResource |
getT2()
Describe getT2 method here. |
ColorUIResource |
getUserTextColor()
Describe getUserTextColor method here. |
FontUIResource |
getUserTextFont()
Describe getUserTextFont method here. |
ColorUIResource |
getW()
Describe getW method here. |
protected ColorUIResource |
getWhite()
Describe getWhite method here. |
FontUIResource |
getWindowTitleFont()
Describe getWindowTitleFont method here. |
void |
save()
Saves the file to resources/themes/ThemeName.theme. |
void |
save(OutputStream stream)
Describe save method here. |
void |
setBlack(Color black)
Describe setBlack method here. |
void |
setFont(Font fnt)
Describe setFont method here. |
void |
setName(String name)
Sets this theme's name. |
void |
setPrimary1(Color x)
Describe setPrimary1 method here. |
void |
setPrimary2(Color x)
Describe setPrimary2 method here. |
void |
setPrimary3(Color x)
Describe setPrimary3 method here. |
void |
setSecondary1(Color x)
Describe setSecondary1 method here. |
void |
setSecondary2(Color x)
Describe setSecondary2 method here. |
void |
setSecondary3(Color x)
Describe setSecondary3 method here. |
void |
setTarget(Component target)
Sets the component to update when the theme is applied. |
void |
setText1(Color x)
Describe setText1 method here. |
void |
setText2(Color x)
Describe setText2 method here. |
void |
setWhite(Color white)
Describe setWhite method here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SteelmeTheme(Color ip1,
Color ip2,
Color ip3,
Color is1,
Color is2,
Color is3,
Font iif,
Color it1,
Color it2,
Color iw,
Color ib)
SteelmeTheme instance.
ip1 - a Color valueip2 - a Color valueip3 - a Color valueis1 - a Color valueis2 - a Color valueis3 - a Color valueiif - a Font valueit1 - a Color valueit2 - a Color valueiw - a Color valueib - a Color valuepublic SteelmeTheme()
SteelmeTheme instance which copies
the attributes of DefaultMetalTheme.
public SteelmeTheme(MetalTheme orig)
SteelmeTheme instance which copies
the attributes of the given MetalTheme.
orig - a MetalTheme valuepublic SteelmeTheme(File themeFile)
SteelmeTheme instance with
attributes loaded from the specified file.
themeFile - a File valuepublic SteelmeTheme(InputStream stream)
stream - an InputStream value| Method Detail |
|---|
public void applyTheme(Component who)
who - a Component valuepublic String getName()
getName in class DefaultMetalThemeString valuepublic void setName(String name)
n - a String valueprotected ColorUIResource getPrimary1()
getPrimary1 method here.
getPrimary1 in class DefaultMetalThemeColorUIResource valueprotected ColorUIResource getPrimary2()
getPrimary2 method here.
getPrimary2 in class DefaultMetalThemeColorUIResource valueprotected ColorUIResource getPrimary3()
getPrimary3 method here.
getPrimary3 in class DefaultMetalThemeColorUIResource valueprotected ColorUIResource getSecondary1()
getSecondary1 method here.
getSecondary1 in class DefaultMetalThemeColorUIResource valueprotected ColorUIResource getSecondary2()
getSecondary2 method here.
getSecondary2 in class DefaultMetalThemeColorUIResource valueprotected ColorUIResource getSecondary3()
getSecondary3 method here.
getSecondary3 in class DefaultMetalThemeColorUIResource valuepublic ColorUIResource getP1()
getP1 method here.
ColorUIResource valuepublic ColorUIResource getP2()
getP2 method here.
ColorUIResource valuepublic ColorUIResource getP3()
getP3 method here.
ColorUIResource valuepublic ColorUIResource getS1()
getS1 method here.
ColorUIResource valuepublic ColorUIResource getS2()
getS2 method here.
ColorUIResource valuepublic ColorUIResource getS3()
getS3 method here.
ColorUIResource valuepublic ColorUIResource getT1()
getT1 method here.
ColorUIResource valuepublic ColorUIResource getT2()
getT2 method here.
ColorUIResource valuepublic ColorUIResource getW()
getW method here.
ColorUIResource valuepublic ColorUIResource getB()
getB method here.
ColorUIResource valueprotected ColorUIResource getWhite()
getWhite method here.
getWhite in class MetalThemeColorUIResource valueprotected ColorUIResource getBlack()
getBlack method here.
getBlack in class MetalThemeColorUIResource valuepublic FontUIResource getControlTextFont()
getControlTextFont method here.
getControlTextFont in class DefaultMetalThemeFontUIResource valuepublic FontUIResource getMenuTextFont()
getMenuTextFont method here.
getMenuTextFont in class DefaultMetalThemeFontUIResource valuepublic FontUIResource getSubTextFont()
getSubTextFont method here.
getSubTextFont in class DefaultMetalThemeFontUIResource valuepublic FontUIResource getSystemTextFont()
getSystemTextFont method here.
getSystemTextFont in class DefaultMetalThemeFontUIResource valuepublic FontUIResource getUserTextFont()
getUserTextFont method here.
getUserTextFont in class DefaultMetalThemeFontUIResource valuepublic FontUIResource getWindowTitleFont()
getWindowTitleFont method here.
getWindowTitleFont in class DefaultMetalThemeFontUIResource valuepublic ColorUIResource getSystemTextColor()
getSystemTextColor method here.
getSystemTextColor in class MetalThemeColorUIResource valuepublic ColorUIResource getUserTextColor()
getUserTextColor method here.
getUserTextColor in class MetalThemeColorUIResource valuepublic ColorUIResource getControlTextColor()
getControlTextColor method here.
getControlTextColor in class MetalThemeColorUIResource valuepublic ColorUIResource getHighlightedTextColor()
getHighlightedTextColor method here.
getHighlightedTextColor in class MetalThemeColorUIResource valuepublic ColorUIResource getInactiveControlTextColor()
getInactiveControlTextColor method here.
getInactiveControlTextColor in class MetalThemeColorUIResource valuepublic ColorUIResource getInactiveSystemTextColor()
getInactiveSystemTextColor method here.
getInactiveSystemTextColor in class MetalThemeColorUIResource valuepublic void setPrimary1(Color x)
setPrimary1 method here.
x - a Color valuepublic void setPrimary2(Color x)
setPrimary2 method here.
x - a Color valuepublic void setPrimary3(Color x)
setPrimary3 method here.
x - a Color valuepublic void setSecondary1(Color x)
setSecondary1 method here.
x - a Color valuepublic void setSecondary2(Color x)
setSecondary2 method here.
x - a Color valuepublic void setSecondary3(Color x)
setSecondary3 method here.
x - a Color valuepublic void setText1(Color x)
setText1 method here.
x - a Color valuepublic void setText2(Color x)
setText2 method here.
x - a Color valuepublic void setWhite(Color white)
setWhite method here.
x - a Color valuepublic void setBlack(Color black)
setBlack method here.
x - a Color valuepublic void setFont(Font fnt)
setFont method here.
f - a Font valuepublic void save()
public void save(OutputStream stream)
save method here.
t - an OutputStream valueprotected static String getColorString(Color color)
c - a Color value
String valuepublic void setTarget(Component target)
cx - a Component value
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||