public enum Fill extends Enum<Fill> implements IsFill
Enum Constant and Description |
---|
end
Fill the area from the top X axis
|
nofill
Does not fill any area
|
origin
Fill the area from 0 axis to top or bottom, depending on value.
Default. |
start
Fill the area from the bottom X axis
|
Modifier and Type | Method and Description |
---|---|
static IsFill |
getFill(int index)
Returns a fill, based on absolute dataset index, using the passed index.
|
static IsFill |
getFill(String index)
Returns a fill, based on relative dataset index, using the passed index.
If the passed argument is not a relative dataset index, checks if is predefined fill. |
FillingMode |
getMode()
Returns the type of filling.
|
String |
getValue()
Returns the value as string (valid ONLY for relative dataset index and predefined), otherwise
UndefinedValues.STRING . |
int |
getValueAsInt()
Returns the value as integer (valid ONLY for absolute dataset index), otherwise
UndefinedValues.INTEGER . |
static boolean |
isPredefined(IsFill fill)
Checks if the fill passed by argument is a predefined fill, the returns
true . |
static Fill |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fill[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fill start
public static final Fill end
public static final Fill origin
public static final Fill nofill
public static Fill[] values()
for (Fill c : Fill.values()) System.out.println(c);
public static Fill valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic FillingMode getMode()
IsFill
public int getValueAsInt()
IsFill
UndefinedValues.INTEGER
.getValueAsInt
in interface IsFill
UndefinedValues.INTEGER
.public String getValue()
IsFill
UndefinedValues.STRING
.getValue
in interface IsFill
UndefinedValues.STRING
.public static boolean isPredefined(IsFill fill)
true
.fill
- fill instancetrue
if the fill passed by argument is a predefined fill otherwise false
.public static IsFill getFill(int index)
index
- absolute dataset index to use for fillingpublic static IsFill getFill(String index)
index
- relative dataset index to use for filling