krysalis-jplugin/src/java/org/krysalis/swingx/laf/metal SimpleMetalTheme.java,NONE,1.1
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/krysalis-jplugin/src/java/org/krysalis/swingx/laf/metal In directory sc8-pr-cvs1:/tmp/cvs-serv24886/src/java/org/krysalis/swingx/laf/metal Added Files: SimpleMetalTheme.java Log Message: refactoring swingx.swing.* packages to swingx.* --- NEW FILE: SimpleMetalTheme.java --- /***************************************************************************** * Copyright (C) The Krysalis project. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Krysalis Software * * License version 1.1_01, a copy of which has been included with this * * distribution in the LICENSE file. * *****************************************************************************/ package org.krysalis.swingx.laf.metal; import java.awt.Color; import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.metal.DefaultMetalTheme; /** *@author <a href="mailto:[email protected]">Nicola Ken Barozzi</a> *@created June 20, 2001 *@version 1.0 */ public class SimpleMetalTheme extends DefaultMetalTheme { //Sfondo barre di scorrimento private ColorUIResource primary2 = super.getPrimary2(); //Barre di scorrimento scuro private ColorUIResource primary1 = super.getPrimary1(); //Barre di scorrimento chiaro private ColorUIResource primary3 = super.getPrimary3(); //Sfondo private ColorUIResource secondary3 = super.getSecondary3(); //Contorno private ColorUIResource secondary1 = super.getSecondary1(); //Ombra private ColorUIResource secondary2 = super.getSecondary2(); /** * Constructor for the SimpleMetalTheme object */ public SimpleMetalTheme() { } /** * new methods******** * *@param c The new primary1 value */ public void setPrimary1(String c) { primary1 = new ColorUIResource(Color.decode(c)); } /** * Sets the primary2 attribute of the SimpleMetalTheme object * *@param c The new primary2 value */ public void setPrimary2(String c) { primary2 = new ColorUIResource(Color.decode(c)); } /** * Sets the primary3 attribute of the SimpleMetalTheme object * *@param c The new primary3 value */ public void setPrimary3(String c) { primary3 = new ColorUIResource(Color.decode(c)); } /** * Sets the secondary1 attribute of the SimpleMetalTheme object * *@param c The new secondary1 value */ public void setSecondary1(String c) { secondary1 = new ColorUIResource(Color.decode(c)); } /** * Sets the secondary2 attribute of the SimpleMetalTheme object * *@param c The new secondary2 value */ public void setSecondary2(String c) { secondary2 = new ColorUIResource(Color.decode(c)); } /** * Sets the secondary3 attribute of the SimpleMetalTheme object * *@param c The new secondary3 value */ public void setSecondary3(String c) { secondary3 = new ColorUIResource(Color.decode(c)); } /** * Gets the name attribute of the SimpleMetalTheme object * *@return The name value */ public String getName() { return "SimpleMetalTheme"; } /** * MetalTheme methods************ * *@return The primary1 value */ public ColorUIResource getPrimary1() { return primary1; } /** * Gets the primary2 attribute of the SimpleMetalTheme object * *@return The primary2 value */ public ColorUIResource getPrimary2() { return primary2; } /** * Gets the primary3 attribute of the SimpleMetalTheme object * *@return The primary3 value */ public ColorUIResource getPrimary3() { return primary3; } /** * Gets the secondary1 attribute of the SimpleMetalTheme object * *@return The secondary1 value */ public ColorUIResource getSecondary1() { return secondary1; } /** * Gets the secondary2 attribute of the SimpleMetalTheme object * *@return The secondary2 value */ public ColorUIResource getSecondary2() { return secondary2; } /** * Gets the secondary3 attribute of the SimpleMetalTheme object * *@return The secondary3 value */ public ColorUIResource getSecondary3() { return secondary3; } } ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf