JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class SwingColor

java.lang.Object
  extended by java.awt.Color
      extended by com.jformdesigner.model.SwingColor
All Implemented Interfaces:
SwingResource, java.awt.Paint, java.awt.Transparency, java.io.Serializable

public class SwingColor
extends java.awt.Color
implements SwingResource

Used to specify colors from the Swing color palette. Invokes UIManager.getColor(key) to get the real color.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
SwingColor(java.lang.String key)
          Constructs a color from the Swing color palette.
SwingColor(java.lang.String key, java.awt.Color color)
          For internal use only.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether another object is equal to this object.
 java.lang.String getKey()
          Returns The name of the Swing color.
 int hashCode()
          Returns the hash code for this object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwingColor

public SwingColor(java.lang.String key)
Constructs a color from the Swing color palette.

Parameters:
key - The name of the Swing color.

SwingColor

public SwingColor(java.lang.String key,
                  java.awt.Color color)
For internal use only.

Method Detail

getKey

public java.lang.String getKey()
Returns The name of the Swing color.


equals

public boolean equals(java.lang.Object obj)
Determines whether another object is equal to this object.

Overrides:
equals in class java.awt.Color

hashCode

public int hashCode()
Returns the hash code for this object.

Overrides:
hashCode in class java.awt.Color

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.awt.Color

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.