public final class GeneralLabelPainterPredicate extends java.lang.Object implements java.util.function.Predicate<LabelPainter.LabelPaintState>
LabelPainter
in order to determine whether a label should be painted. It allows
setting the minimum and maximum valid size for the label, in world and
in screen coordinates, respectively.| Constructor and Description |
|---|
GeneralLabelPainterPredicate()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMaximumScreenHeight()
Return the maximum height that the label may have, in screen coordinates
|
double |
getMaximumScreenWidth()
Return the maximum width that the label may have, in screen coordinates
|
double |
getMaximumWorldHeight()
Return the maximum height that the label may have, in world coordinates
|
double |
getMaximumWorldWidth()
Return the maximum width that the label may have, in world coordinates
|
double |
getMinimumScreenHeight()
Return the minimum height that the label may have, in screen coordinates
|
double |
getMinimumScreenWidth()
Return the minimum width that the label may have, in screen coordinates
|
double |
getMinimumWorldHeight()
Return the minimum height that the label may have, in world coordinates
|
double |
getMinimumWorldWidth()
Return the minimum width that the label may have, in world coordinates
|
void |
setMaximumScreenHeight(double maximumScreenHeight)
Set the maximum height that the label may have, in screen coordinates
|
void |
setMaximumScreenWidth(double maximumScreenWidth)
Set the maximum width that the label may have, in screen coordinates
|
void |
setMaximumWorldHeight(double maximumWorldHeight)
Set the maximum height that the label may have, in world coordinates
|
void |
setMaximumWorldWidth(double maximumWorldWidth)
Set the maximum width that the label may have, in world coordinates
|
void |
setMinimumScreenHeight(double minimumScreenHeight)
Set the minimum height that the label may have, in screen coordinates
|
void |
setMinimumScreenWidth(double minimumScreenWidth)
Set the minimum width that the label may have, in screen coordinates
|
void |
setMinimumWorldHeight(double minimumWorldHeight)
Set the minimum height that the label may have, in world coordinates
|
void |
setMinimumWorldWidth(double minimumWorldWidth)
Set the minimum width that the label may have, in world coordinates
|
boolean |
test(LabelPainter.LabelPaintState labelPaintState) |
public GeneralLabelPainterPredicate()
Double.NEGATIVE_INFINITY
and Double.POSITIVE_INFINITY, respectively, causing all
labels to be painted.public double getMinimumWorldWidth()
public void setMinimumWorldWidth(double minimumWorldWidth)
minimumWorldWidth - The widthpublic double getMaximumWorldWidth()
public void setMaximumWorldWidth(double maximumWorldWidth)
maximumWorldWidth - The widthpublic double getMinimumWorldHeight()
public void setMinimumWorldHeight(double minimumWorldHeight)
minimumWorldHeight - The widthpublic double getMaximumWorldHeight()
public void setMaximumWorldHeight(double maximumWorldHeight)
maximumWorldHeight - The widthpublic double getMinimumScreenWidth()
public void setMinimumScreenWidth(double minimumScreenWidth)
minimumScreenWidth - The widthpublic double getMaximumScreenWidth()
public void setMaximumScreenWidth(double maximumScreenWidth)
maximumScreenWidth - The widthpublic double getMinimumScreenHeight()
public void setMinimumScreenHeight(double minimumScreenHeight)
minimumScreenHeight - The widthpublic double getMaximumScreenHeight()
public void setMaximumScreenHeight(double maximumScreenHeight)
maximumScreenHeight - The widthpublic boolean test(LabelPainter.LabelPaintState labelPaintState)
test in interface java.util.function.Predicate<LabelPainter.LabelPaintState>Copyright © 2019. All Rights Reserved.