Package org.geotools.api.style
Interface Font.Style
-
- Enclosing interface:
- Font
public static interface Font.Style
Enumeration of allow font-style values.This is a way to document the constants allowable for the setStyle method
enum Style2 implements Literal { NORMAL("normal"), ITALIC("italic"), OBLIQUE("oblique");
final String literal; final static int count=0; private Style2(String constant) { literal = constant; } public Object accept(ExpressionVisitor visitor, Object extraData) { return visitor.visit( this, extraData ); } public Object evaluate(Object object) { return literal; } public
T evaluate(Object object, Class context) { // return Converters.convert(literal, context); if( context.isInstance( literal) ){ return context.cast(literal); } return null; } public Object getValue() { return literal; } }
-
-
Field Detail
-
NORMAL
static final String NORMAL
- See Also:
- Constant Field Values
-
ITALIC
static final String ITALIC
- See Also:
- Constant Field Values
-
OBLIQUE
static final String OBLIQUE
- See Also:
- Constant Field Values
-
-