Package com.luciad.view.lightspeed.style
Class TLspParameterizedRasterIconStyle.Builder<B extends TLspParameterizedRasterIconStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLspParameterizedRasterIconStyle.Builder<B>
- Enclosing class:
TLspParameterizedRasterIconStyle
public static class TLspParameterizedRasterIconStyle.Builder<B extends TLspParameterizedRasterIconStyle.Builder<B>>
extends ALspStyle.Builder<B>
Builder for parameterized icon styles.
The default icon style has a 1 pixel wide white halo color.
Use the
icon(com.luciad.format.raster.ILcdParameterizedIcon)
method to set a valid icon.- Since:
- 2013.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.build()
Builds the style with the set parameters.Sets the halo color of multi-valued raster icons.haloThickness
(float aHaloThickness) Sets the halo thickness of multi-valued raster icons in pixels.icon
(ILcdParameterizedIcon aIcon) Sets the icon to use for multi-valued rasters (if any).spacing
(int aIconSpacing) Sets the grid spacing of multi-valued raster icons (if any), expressed in pixels.toString()
Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spacing
Sets the grid spacing of multi-valued raster icons (if any), expressed in pixels.- Parameters:
aIconSpacing
- the icon spacing, or -1 if a default should be chosen- Returns:
this
- See Also:
-
icon
Sets the icon to use for multi-valued rasters (if any).
The specified icon will be painted at regular grid locations in the view.- Parameters:
aIcon
- the icon to use, or null for a default icon- Returns:
this
- See Also:
-
haloThickness
Sets the halo thickness of multi-valued raster icons in pixels. Set to zero if no halo should be visible.By default, the halo thickness is
1
.- Parameters:
aHaloThickness
- the thickness in pixels- Returns:
this
- See Also:
-
haloColor
Sets the halo color of multi-valued raster icons. This property is only used if the halo thickness is larger than0
.By default, the halo color is
Color.white
.- Parameters:
aHaloColor
- the halo color- Returns:
this
- Throws:
IllegalArgumentException
-if aHaloColor==null
- See Also:
-
all
Description copied from class:ALspStyle.Builder
Sets all parameters on the builder based on the given style. This is useful for example to create a new style that has almost all properties equal to another style.- Specified by:
all
in classALspStyle.Builder<B extends TLspParameterizedRasterIconStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-
build
Description copied from class:ALspStyle.Builder
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends TLspParameterizedRasterIconStyle.Builder<B>>
- Returns:
- the resulting style
-
toString
-