@Equality public class LayerOpt extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static LayerOpt |
NO_SPECIAL |
Indicates layer with no known optimisation assumptions.
|
static LayerOpt |
OPAQUE |
Indicates opaque multicoloured layer.
|
Constructor | Description |
---|---|
LayerOpt(java.awt.Color singleColor,
boolean opaque) |
Constructs a LayerOpt with explicit options.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.awt.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.
|
java.lang.String |
toString() |
public static LayerOpt OPAQUE
public static LayerOpt NO_SPECIAL
public LayerOpt(java.awt.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 java.awt.Color getSingleColor()
public boolean isOpaque()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.