private static final class SelectorPartitioning.Partition
extends java.lang.Object
Rules are added to the last Slot or to the Partition. If there is a selector #c { -fx-fill: red; }, then the selector will be added to the Partition for #c. If the selector were for A.b#c, then selector would be added to the slot for '.b' which is in the slot for A in partion #c.
When Node is matched, it picks up the Selectors from the Partition and Slot as the graph is traversed.
Modifier and Type | Field and Description |
---|---|
private SelectorPartitioning.PartitionKey |
key |
private java.util.List<Selector> |
selectors |
private java.util.Map<SelectorPartitioning.PartitionKey,SelectorPartitioning.Slot> |
slots |
Modifier | Constructor and Description |
---|---|
private |
Partition(SelectorPartitioning.PartitionKey key) |
Modifier and Type | Method and Description |
---|---|
private void |
addSelector(Selector pair) |
private SelectorPartitioning.Slot |
partition(SelectorPartitioning.PartitionKey id,
java.util.Map<SelectorPartitioning.PartitionKey,SelectorPartitioning.Partition> map)
This routine finds the slot corresponding to the PartitionKey,
creating a Partition and Slot if necessary.
|
private final SelectorPartitioning.PartitionKey key
private final java.util.Map<SelectorPartitioning.PartitionKey,SelectorPartitioning.Slot> slots
private java.util.List<Selector> selectors
private Partition(SelectorPartitioning.PartitionKey key)
private void addSelector(Selector pair)
private SelectorPartitioning.Slot partition(SelectorPartitioning.PartitionKey id, java.util.Map<SelectorPartitioning.PartitionKey,SelectorPartitioning.Partition> map)