Package com.luciad.view.lightspeed.style
Class TLspPinLineStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspLineStyle
com.luciad.view.lightspeed.style.TLspPinLineStyle
- All Implemented Interfaces:
ILspEffectsHintStyle
,ILspTexturedStyle
,ILspWorldElevationStyle
,ILspStyler
Style that defines a pin from an object's anchor point to its label.
By default, the pin is a 1-pixel black solid line.
Construction of a pin style is done through the
Builder
design pattern mechanism.- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TLspPinLineStyle.Builder<B extends TLspPinLineStyle.Builder<B>>
Builder for pin line styles.static enum
Possible positions for the end of the pin: the position where the pin connects to the label.Nested classes/interfaces inherited from class com.luciad.view.lightspeed.style.TLspLineStyle
TLspLineStyle.BlendOverlapMode, TLspLineStyle.DashPattern
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspEffectsHintStyle
ILspEffectsHintStyle.EffectsHint
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspTexturedStyle
ILspTexturedStyle.TextureCoordinatesMode
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspWorldElevationStyle
ILspWorldElevationStyle.ElevationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
TLspPinLineStyle
(TLspPinLineStyle.Builder aBuilder) Creates a new style with the properties that are set on the builder -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.boolean
Returns the end position of the pin: the position where the pin connects to the label.int
Returns the threshold (in pixels) at which the pin of a label becomes invisible.int
hashCode()
static TLspPinLineStyle.Builder
<?> Creates a new builder with the default values.Methods inherited from class com.luciad.view.lightspeed.style.TLspLineStyle
getBlendOverlap, getColor, getDashPattern, getEffectsHints, getElevationMode, getPixelOffset, getTexture, getTextureCoordinatesMode, getTextureInterpolationType, getTextureMatrixSFCT, getTextureObject, getWidth, isBlendOverlap, isRepeatTexture, isTransparent, toString
Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Constructor Details
-
TLspPinLineStyle
Creates a new style with the properties that are set on the builder- Parameters:
aBuilder
- a builder which will be used to initialize this style.
-
-
Method Details
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
asBuilder
Creates a new builder initialized with all the properties of this style.- Overrides:
asBuilder
in classTLspLineStyle
- Returns:
- the new builder.
-
getPinEndPosition
Returns the end position of the pin: the position where the pin connects to the label.- Returns:
- the end position of the pin.
-
getPinVisibilityThreshold
public int getPinVisibilityThreshold()Returns the threshold (in pixels) at which the pin of a label becomes invisible. SeeTLspPinLineStyle.Builder.pinVisibilityThreshold(int)
for more information.- Returns:
- the threshold (in pixels) at which the pin of a label becomes invisible.
- Since:
- 2019.0
-
equals
- Overrides:
equals
in classTLspLineStyle
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTLspLineStyle
-