Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org » jfree » report » style » [javadoc | source]
org.jfree.report.style
public final class: StyleKey [javadoc | source]
java.lang.Object
   org.jfree.report.style.StyleKey

All Implemented Interfaces:
    Cloneable, Serializable

A style key represents a (key, class) pair. Style keys are used to access style attributes defined in a BandStyleSheet or an ElementStyleSheet

Note that this class also defines a static Hashtable in which all defined keys are stored.

Field Summary
public final  String name    The name of the style key. 
public final  int identifier    A unique int-key for the stylekey. 
Method from org.jfree.report.style.StyleKey Summary:
clone,   equals,   getDefinedStyleKeyCount,   getDefinedStyleKeys,   getIdentifier,   getName,   getStyleKey,   getStyleKey,   getStyleKey,   getValueType,   hashCode,   isInheritable,   isTransient,   registerClass,   registerDefaults,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.style.StyleKey Detail:
 public Object clone() throws CloneNotSupportedException 
 public boolean equals(Object o) 
    Indicates whether some other object is "equal to" this one.
 public static int getDefinedStyleKeyCount() 
 public static synchronized StyleKey[] getDefinedStyleKeys() 
 public int getIdentifier() 
 public String getName() 
    Returns the name of the key.
 public static synchronized StyleKey getStyleKey(String name) 
    Returns the key with the specified name.
 public static StyleKey getStyleKey(String name,
    Class valueType) 
    Returns the key with the specified name. The given type is not checked against a possibly alredy defined definition, it is assumed that the type is only given for a new key definition.
 public static synchronized StyleKey getStyleKey(String name,
    Class valueType,
    boolean trans,
    boolean inheritable) 
    Returns the key with the specified name. The given type is not checked against a possibly alredy defined definition, it is assumed that the type is only given for a new key definition.
 public Class getValueType() 
    Returns the class of the value for this key.
 public int hashCode() 
    Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

 public boolean isInheritable() 
 public boolean isTransient() 
 public static synchronized  void registerClass(Class c) 
 public static synchronized  void registerDefaults() 
 public String toString() 
    Returns a string representation of the object.