Package com.luciad.view.lightspeed.style
Class TLspLabelOpacityStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.view.lightspeed.style.TLspLabelOpacityStyle
- All Implemented Interfaces:
ILspStyler
Style that can be used to modify the opacity and modulation color of a label.
- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for label opacity styles. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.boolean
getColor()
Gets the modulation color.float
Returns the opacity of this style.int
hashCode()
boolean
Determines whether this style is transparent.static TLspLabelOpacityStyle.Builder
<?> Creates a new builder with the default values.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
-
Constructor Details
-
TLspLabelOpacityStyle
-
-
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. -
getColor
Gets the modulation color. For example using a label with gray-scale colors and a red modulation color will result in a label painted with red hues.- Returns:
- the modulation color
-
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
-
getOpacity
public float getOpacity()Returns the opacity of this style.- Returns:
- the opacity of this style.
-
equals
-
hashCode
public int hashCode()
-