public static class TLspRulerDistanceFormatStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>> extends ALspLabelTextProviderStyle.Builder<B>
TLspRulerDistanceFormatStyle.newBuilder()
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Copies all properties from the given style.
|
TLspRulerDistanceFormatStyle |
build()
Constructs a label style with the set parameters.
|
B |
distanceFormat(Format aDistanceFormat)
Sets the
Format used to convert measured distances to strings
for presentation to the user. |
equals, hashCode
public B distanceFormat(Format aDistanceFormat)
Format
used to convert measured distances to strings
for presentation to the user. The value that the controller supplies to
the Format
is a double
representing a distance
in meters. TLcdDistanceFormat
is a convenient
Format
implementation for use with this controller.aDistanceFormat
- the distance formatpublic B all(ALspStyle aStyle)
all
in class ALspLabelTextProviderStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>
aStyle
- the style to copythis
public TLspRulerDistanceFormatStyle build()
build
in class ALspLabelTextProviderStyle.Builder<B extends TLspRulerDistanceFormatStyle.Builder<B>>