@Equality public class FillMode extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static FillMode |
LINE |
|
static FillMode |
SEMI |
Solid boundary, fill area coloured in with transparency.
|
static FillMode |
SOLID |
Solid fill area, no boundary.
|
Constructor | Description |
---|---|
FillMode(java.lang.String name,
double lineAlpha,
double fillAlpha,
java.lang.String description) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
javax.swing.Icon |
createIcon(int[] data,
java.awt.Color color,
java.awt.Stroke stroke,
int pad) |
Returns an icon representing this fill mode.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
toString() |
public static final FillMode SOLID
public static final FillMode LINE
public static final FillMode SEMI
public FillMode(java.lang.String name, double lineAlpha, double fillAlpha, java.lang.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 descriptionpublic java.lang.String getName()
public java.lang.String getDescription()
public float getLineAlpha()
public float getFillAlpha()
public boolean hasLine()
public boolean hasFill()
public boolean isOpaque()
public javax.swing.Icon createIcon(int[] data, java.awt.Color color, java.awt.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 padpublic 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.