|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.LayerOpt
@Equality public class LayerOpt
Defines characteristics of a plot layer that may enable plotting optimisations.
Field Summary | |
---|---|
static LayerOpt |
NO_SPECIAL
Indicates layer with no known optimisation assumptions. |
static LayerOpt |
OPAQUE
Indicates opaque multicoloured layer. |
Constructor Summary | |
---|---|
LayerOpt(Color singleColor,
boolean opaque)
Constructs a LayerOpt with explicit options. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static LayerOpt OPAQUE
public static LayerOpt NO_SPECIAL
Constructor Detail |
---|
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 layerMethod Detail |
---|
public Color getSingleColor()
public boolean isOpaque()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |