Class LayerOpt
java.lang.Object
uk.ac.starlink.ttools.plot2.LayerOpt
-
Field Details
-
OPAQUE
Indicates opaque multicoloured layer. -
NO_SPECIAL
Indicates layer with no known optimisation assumptions.
-
-
Constructor Details
-
LayerOpt
Constructs a LayerOpt with explicit options.- Parameters:
singleColor- colour if only one is used by the layer, else nullopaque- true if only opaque pixels are generated by the layer
-
-
Method Details
-
getSingleColor
Returns a colour if the only painting done by this layer is in a single colour. Different alphas are permitted, but not different RGB values.- Returns:
- single colour, or null
-
isOpaque
public boolean isOpaque()Indicates whether it's safe to assume that all drawing is opaque.- Returns:
- true if no transparency is used
-
hashCode
-
equals
-
toString
-