public class LabelPainterPredicates
extends java.lang.Object
LabelPainter, based on a LabelPainter.LabelPaintState.| Modifier and Type | Method and Description |
|---|---|
static GeneralLabelPainterPredicate |
create()
Returns a new
GeneralLabelPainterPredicate that allows setting
the painting conditions for the labels based on the size of the label
in world- and screen coordinates. |
static java.util.function.Predicate<LabelPainter.LabelPaintState> |
labelWidthAtLeast(double minimumLabelWidth)
Returns a predicate that causes labels to be painted when their
(untransformed) width is not smaller than the given minimum
|
static java.util.function.Predicate<LabelPainter.LabelPaintState> |
labelWidthAtMost(double maximumLabelWidth)
Returns a predicate that causes labels to be painted when their
(untransformed) width is not greater than the given maximum
|
static java.util.function.Predicate<LabelPainter.LabelPaintState> |
transformedLabelWidthAtLeast(double minimumTransformedLabelWidth)
Returns a predicate that causes labels to be painted when their
(transformed) width is at least the given minimum.
|
static java.util.function.Predicate<LabelPainter.LabelPaintState> |
transformedLabelWidthAtMost(double maximumTransformedLabelWidth)
Returns a predicate that causes labels to be painted when their
(transformed) width is at most the given maximum.
|
public static GeneralLabelPainterPredicate create()
GeneralLabelPainterPredicate that allows setting
the painting conditions for the labels based on the size of the label
in world- and screen coordinates.GeneralLabelPainterPredicatepublic static java.util.function.Predicate<LabelPainter.LabelPaintState> labelWidthAtLeast(double minimumLabelWidth)
minimumLabelWidth - The maximum label widthpublic static java.util.function.Predicate<LabelPainter.LabelPaintState> labelWidthAtMost(double maximumLabelWidth)
maximumLabelWidth - The maximum label widthpublic static java.util.function.Predicate<LabelPainter.LabelPaintState> transformedLabelWidthAtLeast(double minimumTransformedLabelWidth)
minimumTransformedLabelWidth - The minimum label widthpublic static java.util.function.Predicate<LabelPainter.LabelPaintState> transformedLabelWidthAtMost(double maximumTransformedLabelWidth)
maximumTransformedLabelWidth - The minimum label widthCopyright © 2019. All Rights Reserved.