public class Alpha extends Factor<Alpha>
Segment
represents the alpha value of a color what is its opacity. A value of 0
stands for fully transparent (color not visible), while 1.0
stands for a regular color (color
fully visible). An alpha value of 0.5
will be 50% transparent so you can see the color but the
background shines through.Color.getAlpha()
,
GenericColor.getAlpha()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Alpha |
OPAQUE
The maximum
Alpha value for full opaque (no transparency). |
private static long |
serialVersionUID
UID for serialization.
|
Modifier | Constructor and Description |
---|---|
protected |
Alpha()
The constructor for de-serialization in GWT.
|
|
Alpha(double value)
The constructor.
|
|
Alpha(Double value)
The constructor.
|
|
Alpha(int byteValue)
The constructor.
|
|
Alpha(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Alpha |
newInstance(double value)
Creates a new instance with the given value.
|
getMaximumValue, getValueAsByte, getValueAsFactor, toStringAsByte
decrease, getMinimumValue, increase, invert
getValueAsPercent, toStringAsFactor, toStringAsPercent
getValue
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
private static final long serialVersionUID
protected Alpha()
public Alpha(double value)
value
- is the value
.public Alpha(String value)
public Alpha(int byteValue)
byteValue
- is the value given as byte
.protected Alpha newInstance(double value)
newInstance
in class AbstractDoubleSegment<Alpha>
value
- is the value
.Copyright © 2001–2014 mmm-Team. All rights reserved.