Package com.luciad.view.lightspeed.style
Class TLspParameterizedRasterIconStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspParameterizedRasterIconStyle
- All Implemented Interfaces:
ILspStyler
Style used to visualize multi-dimensional (parameterized) raster data as a flat icon (also known as a point sprite).
This style can for example be used to label an image containing temperature values, or to label a multi-band image containing the x- and y- components of wind speed. For example:
Construction of an icon style is done through the Builder
design
pattern mechanism.
- Since:
- 2013.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for parameterized icon styles. -
Constructor Summary
ModifierConstructorDescriptionprotected
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 halo color of multi-valued raster icons.float
Returns the halo thickness of multi-valued raster icons in pixels.getIcon()
Returns the icon to use for multi-valued raster data (if any).int
Returns the grid spacing of multi-valued raster icons (if any), expressed in pixels.int
hashCode()
boolean
Determines whether this style is transparent.static TLspParameterizedRasterIconStyle.Builder
<?> Creates a new builder with the default values.toString()
Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Constructor Details
-
TLspParameterizedRasterIconStyle
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. -
getIcon
Returns the icon to use for multi-valued raster data (if any). The specified icon will be painted at regular grid locations in the view.- Returns:
- the icon to use
-
getSpacing
public int getSpacing()Returns the grid spacing of multi-valued raster icons (if any), expressed in pixels.- Returns:
- the icon spacing, or -1 if a default should be chosen
-
getHaloColor
Returns the halo color of multi-valued raster icons. This property is only used if the halo thickness is larger than0
.- Returns:
- the halo color
-
getHaloThickness
public float getHaloThickness()Returns the halo thickness of multi-valued raster icons in pixels.- Returns:
- the thickness in pixels (zero if no halo should be visible)
-
isTransparent
public boolean isTransparent()Description copied from class:ALspStyle
Determines whether this style is transparent. Shapes that are transparent can be painted in a different paint phase than shapes that are not transparent.- Specified by:
isTransparent
in classALspStyle
- Returns:
- whether or not this style is transparent
-
equals
-
hashCode
public int hashCode() -
toString
-