Modifier and Type | Field and Description |
---|---|
static LayerOpt |
NO_SPECIAL
Indicates layer with no known optimisation assumptions.
|
static LayerOpt |
OPAQUE
Indicates opaque multicoloured layer.
|
Constructor and Description |
---|
LayerOpt(Color singleColor,
boolean opaque)
Constructs a LayerOpt with explicit options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Color |
getSingleColor()
Returns a colour if the only painting done by this layer is
in a single colour.
|
int |
hashCode() |
boolean |
isOpaque()
Indicates whether it's safe to assume that all drawing is opaque.
|
String |
toString() |
public static LayerOpt OPAQUE
public static LayerOpt NO_SPECIAL
public LayerOpt(Color singleColor, boolean opaque)
singleColor
- colour if only one is used by the layer, else nullopaque
- true if only opaque pixels are generated by the layerpublic Color getSingleColor()
public boolean isOpaque()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.