public static class TLspIndexColorModelStyle.Builder<B extends TLspIndexColorModelStyle.Builder<B>> extends ALspStyle.Builder<B>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aIndexColorModelStyle)
Sets this builder's properties to the given style's properties.
|
TLspIndexColorModelStyle |
build()
Constructs an index color model style with the set properties.
|
B |
defaultColorModel(float aAlpha)
Convenience method to set the color model to the default color
model with colors having the given alpha value.
|
B |
indexColorModel(IndexColorModel aIndexColorModel)
Sets the index color model.
|
B |
layer(int aLayer)
Sets the layer this style belongs to.
|
B |
scaleFactor(float aScaleFactor)
Sets a scale factor with which values are multiplied prior to looking
them up in the color model.
|
B |
transparent(boolean aTransparent)
Sets whether the color model used by this style uses transparent colors.
|
equals, hashCode
public B layer(int aLayer)
aLayer
- the layerthis
public B transparent(boolean aTransparent)
aTransparent
- true if the color model is transparent, false otherwisethis
public B indexColorModel(IndexColorModel aIndexColorModel)
aIndexColorModel
- the index color modelpublic B defaultColorModel(float aAlpha)
aAlpha
- the alpha value for the colors in the index color modelthis
public B scaleFactor(float aScaleFactor)
aScaleFactor
- the scale factorpublic B all(ALspStyle aIndexColorModelStyle)
all
in class ALspStyle.Builder<B extends TLspIndexColorModelStyle.Builder<B>>
aIndexColorModelStyle
- the style to copythis
public TLspIndexColorModelStyle build()
build
in class ALspStyle.Builder<B extends TLspIndexColorModelStyle.Builder<B>>