Modifier and Type | Field and Description |
---|---|
static FillMode |
LINE |
static FillMode |
SEMI
Solid boundary, fill area coloured in with transparency.
|
static FillMode |
SOLID
Solid fill area, no boundary.
|
Constructor and Description |
---|
FillMode(String name,
double lineAlpha,
double fillAlpha,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final FillMode SOLID
public static final FillMode LINE
public static final FillMode SEMI
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 padCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.