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
-
Method Summary
Modifier and TypeMethodDescriptionCopies all properties from the given style.build()
Constructs a label style with the set parameters.distanceFormat
(Format aDistanceFormat) Sets theFormat
used 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 theFormat
used to convert measured distances to strings for presentation to the user. The value that the controller supplies to theFormat
is adouble
representing a distance in meters.TLcdDistanceFormat
is a convenientFormat
implementation for use with this controller.- Parameters:
aDistanceFormat
- the distance format- Returns:
- this
-
all
Copies all properties from the given style.- Overrides:
all
in 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:
build
in classALspLabelTextProviderStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>
- Returns:
- the new label style
-