org.jfree.layouting.input.style
Class StyleKey
java.lang.Object
org.jfree.layouting.input.style.StyleKey
- Cloneable, Serializable
public final class StyleKey
extends java.lang.Object
implements Serializable, Cloneable
Creation-Date: 26.10.2005, 14:05:23
StyleKey(String name, boolean trans, boolean inherited, int index, int validity) - Creates a new style key.
|
Object | clone()
|
boolean | equals(Object o) - Indicates whether some other object is "equal to" this one.
|
int | getIndex()
|
String | getName() - Returns the name of the key.
|
int | hashCode() - Returns a hash code value for the object.
|
boolean | isInherited()
|
boolean | isTransient() - Checks, whether this stylekey denotes a temporary computation result.
|
boolean | isValidOn(int mask)
|
String | toString() - Returns a string representation of the object.
|
ALWAYS
public static final int ALWAYS
All_ELEMENTS
public static final int All_ELEMENTS
BLOCK_ELEMENTS
public static final int BLOCK_ELEMENTS
COUNTERS
public static final int COUNTERS
DOM_ELEMENTS
public static final int DOM_ELEMENTS
FOOTNOTE_AREA
public static final int FOOTNOTE_AREA
INLINE_ELEMENTS
public static final int INLINE_ELEMENTS
MARGINS
public static final int MARGINS
PAGE_CONTEXT
public static final int PAGE_CONTEXT
PSEUDO_AFTER
public static final int PSEUDO_AFTER
PSEUDO_ALTERNATE
public static final int PSEUDO_ALTERNATE
PSEUDO_BEFORE
public static final int PSEUDO_BEFORE
PSEUDO_FIRST_LETTER
public static final int PSEUDO_FIRST_LETTER
PSEUDO_FIRST_LINE
public static final int PSEUDO_FIRST_LINE
PSEUDO_LINEMARKER
public static final int PSEUDO_LINEMARKER
PSEUDO_MARKER
public static final int PSEUDO_MARKER
PSEUDO_OTHER
public static final int PSEUDO_OTHER
index
public final int index
The index is implicitly defined when the key is registered. Do not rely
on that index for long term persitence.
StyleKey
protected StyleKey(String name,
boolean trans,
boolean inherited,
int index,
int validity)
Creates a new style key.
name
- the name (never null).
clone
public Object clone()
throws CloneNotSupportedException
equals
public boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
o
- the reference object with which to compare.
true
if this object is the same as the obj argument;
false
otherwise.
getIndex
public int getIndex()
getName
public String getName()
Returns the name of the key.
hashCode
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
.
- a hash code value for this object.
isInherited
public boolean isInherited()
isTransient
public boolean isTransient()
Checks, whether this stylekey denotes a temporary computation result.
- true, if the key is transient, false otherwise.
isValidOn
public boolean isValidOn(int mask)
toString
public String toString()
Returns a string representation of the object.
- a string representation of the object.