Package org.jfree.layouting.input.style
Class StyleKey
- java.lang.Object
-
- org.jfree.layouting.input.style.StyleKey
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class StyleKey extends java.lang.Object implements java.io.Serializable, java.lang.CloneableCreation-Date: 26.10.2005, 14:05:23- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intAll_ELEMENTSstatic intALWAYSstatic intBLOCK_ELEMENTSstatic intCOUNTERSstatic intDOM_ELEMENTSstatic intFOOTNOTE_AREAintindexThe index is implicitly defined when the key is registered.static intINLINE_ELEMENTSstatic intMARGINSstatic intPAGE_CONTEXTstatic intPSEUDO_AFTERstatic intPSEUDO_ALTERNATEstatic intPSEUDO_BEFOREstatic intPSEUDO_FIRST_LETTERstatic intPSEUDO_FIRST_LINEstatic intPSEUDO_LINEMARKERstatic intPSEUDO_MARKERstatic intPSEUDO_OTHER
-
Constructor Summary
Constructors Modifier Constructor Description protectedStyleKey(java.lang.String name, boolean trans, boolean inherited, int index, int validity)Creates a new style key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.intgetIndex()java.lang.StringgetName()Returns the name of the key.inthashCode()Returns a hash code value for the object.booleanisInherited()booleanisTransient()Checks, whether this stylekey denotes a temporary computation result.booleanisValidOn(int mask)java.lang.StringtoString()Returns a string representation of the object.
-
-
-
Field Detail
-
ALWAYS
public static final int ALWAYS
- See Also:
- Constant Field Values
-
INLINE_ELEMENTS
public static final int INLINE_ELEMENTS
- See Also:
- Constant Field Values
-
BLOCK_ELEMENTS
public static final int BLOCK_ELEMENTS
- See Also:
- Constant Field Values
-
DOM_ELEMENTS
public static final int DOM_ELEMENTS
- See Also:
- Constant Field Values
-
All_ELEMENTS
public static final int All_ELEMENTS
- See Also:
- Constant Field Values
-
PSEUDO_BEFORE
public static final int PSEUDO_BEFORE
- See Also:
- Constant Field Values
-
PSEUDO_AFTER
public static final int PSEUDO_AFTER
- See Also:
- Constant Field Values
-
PSEUDO_ALTERNATE
public static final int PSEUDO_ALTERNATE
- See Also:
- Constant Field Values
-
PSEUDO_MARKER
public static final int PSEUDO_MARKER
- See Also:
- Constant Field Values
-
PSEUDO_LINEMARKER
public static final int PSEUDO_LINEMARKER
- See Also:
- Constant Field Values
-
PSEUDO_FIRST_LETTER
public static final int PSEUDO_FIRST_LETTER
- See Also:
- Constant Field Values
-
PSEUDO_FIRST_LINE
public static final int PSEUDO_FIRST_LINE
- See Also:
- Constant Field Values
-
PSEUDO_OTHER
public static final int PSEUDO_OTHER
- See Also:
- Constant Field Values
-
MARGINS
public static final int MARGINS
- See Also:
- Constant Field Values
-
FOOTNOTE_AREA
public static final int FOOTNOTE_AREA
- See Also:
- Constant Field Values
-
PAGE_CONTEXT
public static final int PAGE_CONTEXT
- See Also:
- Constant Field Values
-
COUNTERS
public static final int COUNTERS
- See Also:
- Constant Field Values
-
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.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the key.- Returns:
- the name.
-
getIndex
public int getIndex()
-
isValidOn
public boolean isValidOn(int mask)
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.
-
isInherited
public boolean isInherited()
-
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 byjava.util.Hashtable.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this object.
-
isTransient
public boolean isTransient()
Checks, whether this stylekey denotes a temporary computation result.- Returns:
- true, if the key is transient, false otherwise.
-
toString
public java.lang.String toString()
Returns a string representation of the object.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the object.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-