Package g3.project.graphics
Class FontProps
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.Object>
-
- g3.project.graphics.FontProps
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
public class FontProps extends java.util.HashMap<java.lang.String,java.lang.Object>
- Author:
- Group 3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALIGNMENT
protected static java.lang.Class
ALIGNMENT_TYPE
static java.lang.String
BOLD
protected static java.lang.Class
BOLD_TYPE
static java.lang.String
COLOUR
protected static java.lang.Class
COLOUR_TYPE
static java.lang.String
FONT
protected static java.lang.Class
FONT_TYPE
static java.lang.String
IT
protected static java.lang.Class
IT_TYPE
static java.util.Map<java.lang.String,java.lang.Object>
PROP_DEFAULTS
Contains default values for known props.static java.util.Map<java.lang.String,java.lang.Class>
PROPS_MAP
Contains known props and their classes.static java.lang.String
SIZE
protected static java.lang.Class
SIZE_TYPE
static java.lang.String
US
protected static java.lang.Class
US_TYPE
static java.lang.String
VALIGNMENT
protected static java.lang.Class
VALIGNMENT_TYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Object>
getProp(java.lang.String prop)
Return value of specified property.java.lang.String
toCSS()
Get the JFX CSS for these properties.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
US
public static final java.lang.String US
- See Also:
- Constant Field Values
-
US_TYPE
protected static final java.lang.Class US_TYPE
-
IT
public static final java.lang.String IT
- See Also:
- Constant Field Values
-
IT_TYPE
protected static final java.lang.Class IT_TYPE
-
BOLD
public static final java.lang.String BOLD
- See Also:
- Constant Field Values
-
BOLD_TYPE
protected static final java.lang.Class BOLD_TYPE
-
SIZE
public static final java.lang.String SIZE
- See Also:
- Constant Field Values
-
SIZE_TYPE
protected static final java.lang.Class SIZE_TYPE
-
FONT
public static final java.lang.String FONT
- See Also:
- Constant Field Values
-
FONT_TYPE
protected static final java.lang.Class FONT_TYPE
-
COLOUR
public static final java.lang.String COLOUR
- See Also:
- Constant Field Values
-
COLOUR_TYPE
protected static final java.lang.Class COLOUR_TYPE
-
ALIGNMENT
public static final java.lang.String ALIGNMENT
- See Also:
- Constant Field Values
-
ALIGNMENT_TYPE
protected static final java.lang.Class ALIGNMENT_TYPE
-
VALIGNMENT
public static final java.lang.String VALIGNMENT
- See Also:
- Constant Field Values
-
VALIGNMENT_TYPE
protected static final java.lang.Class VALIGNMENT_TYPE
-
PROPS_MAP
public static final java.util.Map<java.lang.String,java.lang.Class> PROPS_MAP
Contains known props and their classes.
-
PROP_DEFAULTS
public static final java.util.Map<java.lang.String,java.lang.Object> PROP_DEFAULTS
Contains default values for known props.
-
-
Method Detail
-
getProp
public final java.util.Optional<java.lang.Object> getProp(java.lang.String prop)
Return value of specified property.- Parameters:
prop
- Property to get.- Returns:
- Maybe property. Empty if invalid.
-
toCSS
public java.lang.String toCSS()
Get the JFX CSS for these properties.- Returns:
- CSS String.
-
-