Package com.luciad.layers.styles
Class PinStyle
java.lang.Object
com.luciad.layers.styles.PinStyle
- All Implemented Interfaces:
AutoCloseable
This class contains styling properties that can be used to configure pins for labels, see
FeatureCanvas.LabelDrawCommand#pinStyle
.
You can create instances of this class using PinStyle#newBuilder
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder class for creating pin styles that can be set up to labels, seeFeatureCanvas.LabelDrawCommand#pinStyle
.static enum
Possible positions for the end of the pin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the location where the pin line connects to the label.Returns the line style used to paint the pin.double
Returns the number of pixels that determine the visibility of a pin line.static PinStyle.Builder
Returns a new builder for creating aPinStyle
.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Returns a new builder for creating aPinStyle
.- Returns:
- a new builder for creating a
PinStyle
.
-
getEndPosition
Returns the location where the pin line connects to the label.- Returns:
- the location where the pin line connects to the label.
-
getVisibilityThreshold
public double getVisibilityThreshold()Returns the number of pixels that determine the visibility of a pin line.If the pin line length is smaller than this value, it will be discarded.
- Returns:
- the number of pixels that determine the visibility of a pin line.
-
getLineStyle
Returns the line style used to paint the pin.- Returns:
- the line style used to paint the pin
-
asBuilder
-