Package g3.project.graphics
Interface Props
-
- All Known Implementing Classes:
StrokeProps
,VisualProps
public interface Props
- Author:
- Group 3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getDefaultProps()
Get default properties.java.util.Optional<java.lang.Object>
getProp(java.lang.String prop)
Get a property.java.util.Map<java.lang.String,java.lang.Object>
getProps()
Get all current props.java.util.Map<java.lang.String,java.lang.String>
getPropsNames()
Get property friendly names.java.util.Map<java.lang.String,java.lang.Class>
getPropsTypes()
Get property types.
-
-
-
Method Detail
-
getDefaultProps
java.util.Map<java.lang.String,java.lang.Object> getDefaultProps()
Get default properties.- Returns:
- Default properties map.
-
getPropsTypes
java.util.Map<java.lang.String,java.lang.Class> getPropsTypes()
Get property types.- Returns:
- Map of properties to types.
-
getPropsNames
java.util.Map<java.lang.String,java.lang.String> getPropsNames()
Get property friendly names.- Returns:
- Map of properties to names.
-
getProp
java.util.Optional<java.lang.Object> getProp(java.lang.String prop)
Get a property.- Parameters:
prop
- Property.- Returns:
- Value, or default value. Empty if invalid property.
-
getProps
java.util.Map<java.lang.String,java.lang.Object> getProps()
Get all current props.- Returns:
- current Props.
-
-