|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.FillMode
@Equality public class FillMode
Describes how a region above the axis is represented visually. It can be represented by a line, a filled region, or both. Both parts may be drawn with variable transparency.
Field Summary | |
---|---|
static FillMode |
LINE
|
static FillMode |
SEMI
Solid boundary, fill area coloured in with transparency. |
static FillMode |
SOLID
Solid fill area, no boundary. |
Constructor Summary | |
---|---|
FillMode(String name,
double lineAlpha,
double fillAlpha,
String description)
Constructor. |
Method Summary | |
---|---|
Icon |
createIcon(int[] data,
Color color,
Stroke stroke,
int pad)
Returns an icon representing this fill mode. |
boolean |
equals(Object o)
|
String |
getDescription()
Returns a short description for this mode. |
float |
getFillAlpha()
Returns the alpha value for filling the area. |
float |
getLineAlpha()
Returns the alpha value for drawing a line. |
String |
getName()
Returns the name for this mode. |
boolean |
hasFill()
Indicates whether the area is filled. |
int |
hashCode()
|
boolean |
hasLine()
Indicates whether a line is drawn. |
boolean |
isOpaque()
Indicates whether this mode represents opaque drawing. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final FillMode SOLID
public static final FillMode LINE
public static final FillMode SEMI
Constructor Detail |
---|
public FillMode(String name, double lineAlpha, double fillAlpha, String description)
name
- mode namelineAlpha
- alpha for line drawing (zero means no line)fillAlpha
- alpha for area filling (zero means no fill)description
- plain text descriptionMethod Detail |
---|
public String getName()
public String getDescription()
public float getLineAlpha()
public float getFillAlpha()
public boolean hasLine()
public boolean hasFill()
public boolean isOpaque()
public Icon createIcon(int[] data, Color color, Stroke stroke, int pad)
data
- Y data values as integer pixel levels above 0color
- base colourstroke
- line strokepad
- number of pixels on all sides to pad
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 |