|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.plaf.metal.MetalTheme
|
+--javax.swing.plaf.metal.DefaultMetalTheme
|
+--com.ondelette.servlet.laf.PropertiesMetalTheme
This class allows you to load a theme from a file. It uses the standard Java Properties file format. To create a theme you provide a text file which contains tags corresponding to colors of the theme along with a value for that color. For example: name=My Ugly Theme primary1=255,0,0 primary2=0,255,0 primary3=0,0,255 This class only loads colors from the properties file, but it could easily be extended to load fonts - or even icons.
| Constructor Summary | |
PropertiesMetalTheme(java.io.InputStream stream)
pass an inputstream pointing to a properties file. |
|
| Method Summary | |
protected javax.swing.plaf.ColorUIResource |
getBlack()
Gets the black attribute of the PropertiesMetalTheme object |
java.lang.String |
getName()
Gets the name attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getPrimary1()
Gets the primary1 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getPrimary2()
Gets the primary2 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getPrimary3()
Gets the primary3 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getSecondary1()
Gets the secondary1 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getSecondary2()
Gets the secondary2 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getSecondary3()
Gets the secondary3 attribute of the PropertiesMetalTheme object |
protected javax.swing.plaf.ColorUIResource |
getWhite()
Gets the white attribute of the PropertiesMetalTheme object |
| Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme |
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont |
| Methods inherited from class javax.swing.plaf.metal.MetalTheme |
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, 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 |
public PropertiesMetalTheme(java.io.InputStream stream)
stream - | Method Detail |
public java.lang.String getName()
getName in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getPrimary1()
getPrimary1 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getPrimary2()
getPrimary2 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getPrimary3()
getPrimary3 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getSecondary1()
getSecondary1 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getSecondary2()
getSecondary2 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getSecondary3()
getSecondary3 in class javax.swing.plaf.metal.DefaultMetalThemeprotected javax.swing.plaf.ColorUIResource getBlack()
getBlack in class javax.swing.plaf.metal.MetalThemeprotected javax.swing.plaf.ColorUIResource getWhite()
getWhite in class javax.swing.plaf.metal.MetalTheme
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||