Class UniformStyleCollection
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.util.codearea.UniformStyleCollection
-
-
Constructor Summary
Constructors Constructor Description UniformStyleCollection(Set<String> style, Collection<net.sourceforge.pmd.util.fxdesigner.util.codearea.NodeStyleSpan> ns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.fxmisc.richtext.model.StyleSpans<Collection<String>>
buildSpans()
static UniformStyleCollection
empty()
Returns an empty style collection.Set<String>
getStyle()
boolean
isEmpty()
UniformStyleCollection
merge(UniformStyleCollection collection)
org.fxmisc.richtext.model.StyleSpans<Collection<String>>
toSpans()
Overlays all the nodes in this collection into a single StyleSpans.
-
-
-
Constructor Detail
-
UniformStyleCollection
public UniformStyleCollection(Set<String> style, Collection<net.sourceforge.pmd.util.fxdesigner.util.codearea.NodeStyleSpan> ns)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
merge
public UniformStyleCollection merge(UniformStyleCollection collection)
-
toSpans
public org.fxmisc.richtext.model.StyleSpans<Collection<String>> toSpans()
Overlays all the nodes in this collection into a single StyleSpans. This algorithm makes the strong assumption that the nodes can be ordered as a tree, that is, given two nodes n and m, then one of the following holds true: - m and n are disjoint - m is entirely contained within n, or the reverse is true E.g. [ m ] but not [ m ] [ n ] [ n' ] [ n ] In other words: - the text bounds of a node contain the bounds of any of its descendants. - the text bounds of two siblings don't overlap
-
buildSpans
public org.fxmisc.richtext.model.StyleSpans<Collection<String>> buildSpans()
-
empty
public static UniformStyleCollection empty()
Returns an empty style collection.
-
-