org.jfree.layouting.layouter.style.compiler
Class CompiledSelectorWeight
java.lang.Object
org.jfree.layouting.layouter.style.compiler.CompiledSelectorWeight
- Comparable
public class CompiledSelectorWeight
extends java.lang.Object
implements Comparable
This selector weight is computed over all CSS-Declaration rules
of an document. Lower weight rules get executed before all higher
ranking rules. The more specific a rule is, the later it gets
executed. This allows later rules to override previously defined
rules.
int | compareTo(Object o) - Compares this object with the specified object for order.
|
CompiledSelectorWeight
public CompiledSelectorWeight(SelectorWeight selectorWeight,
int fileOrder,
int selectorOrder)
compareTo
public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative
integer, zero, or a positive integer as this object is less than, equal to, or
greater than the specified object.
o
- the Object to be compared.
- a negative integer, zero, or a positive integer as this object is less than,
equal to, or greater than the specified object.