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
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder class for creating pin styles that can be set up to labels, seeFeatureCanvas.LabelDrawCommand#pinStyle.static enumPossible positions for the end of the pin. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()Returns the location where the pin line connects to the label.Returns the line style used to paint the pin.doubleReturns the number of pixels that determine the visibility of a pin line.static PinStyle.BuilderReturns a new builder for creating aPinStyle.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein 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
-