Class TLspRulerDistanceFormatStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.painter.label.style.ALspLabelTextProviderStyle.Builder<B>
com.luciad.view.lightspeed.controller.ruler.TLspRulerDistanceFormatStyle.Builder<B>
- Direct Known Subclasses:
TLspRulerSegmentLabelContentStyle.Builder
- Enclosing class:
TLspRulerDistanceFormatStyle
public static class TLspRulerDistanceFormatStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>
extends ALspLabelTextProviderStyle.Builder<B>
Builder for the ruler distance format style styles.
- Since:
- 2012.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCopies all properties from the given style.build()Constructs a label style with the set parameters.distanceFormat(Format aDistanceFormat) Sets theFormatused to convert measured distances to strings for presentation to the user.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
distanceFormat
Sets theFormatused to convert measured distances to strings for presentation to the user. The value that the controller supplies to theFormatis adoublerepresenting a distance in meters.TLcdDistanceFormatis a convenientFormatimplementation for use with this controller.- Parameters:
aDistanceFormat- the distance format- Returns:
- this
-
all
Copies all properties from the given style.- Overrides:
allin classALspLabelTextProviderStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>- Parameters:
aStyle- the style to copy- Returns:
this
-
build
Constructs a label style with the set parameters.- Specified by:
buildin classALspLabelTextProviderStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>- Returns:
- the new label style
-